Files
openwrt/target/Config.in
T
Daniel Golle e23f575e4d build: add ATOMIC64_DEPENDS
Packages that use 64-bit atomics carry open-coded architecture lists
such as +(arm||armeb||mips||mipsel||powerpc):libatomic. Those lists
drift (ruby still names arc), over-include ARMv6K and ARMv7 targets
whose compiler inlines 64-bit atomics via ldrexd/strexd, and
under-include ARMv5 in other packages. Add HAS_ATOMIC64, selected on
the architectures where GCC emits 64-bit atomics inline (all 64-bit
ones, x86 via cmpxchg8b, ARMv6K and ARMv7), and ATOMIC64_DEPENDS as
the single dependency expression to use instead. The condition is one
negated symbol because the Depends: evaluator in package-pack.mk only
handles flat conjunctions and disjunctions. 16-byte and size-generic
atomics need libatomic on every architecture and keep a plain
+libatomic dependency.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-13 20:46:35 +01:00

230 lines
2.6 KiB
Plaintext

source "tmp/.config-target.in"
# Kernel/Hardware features
config HAS_TESTING_KERNEL
bool
config HAS_SPE_FPU
depends on powerpc
select HAS_FPU
bool
config HAS_FPU
bool
config HAS_DT_OVERLAY_SUPPORT
bool
config AUDIO_SUPPORT
bool
config GPIO_SUPPORT
bool
config PCI_SUPPORT
select AUDIO_SUPPORT
bool
config PCIE_SUPPORT
bool
config PCMCIA_SUPPORT
bool
config PINCTRL_SUPPORT
bool
config PWM_SUPPORT
bool
config USB_SUPPORT
select AUDIO_SUPPORT
bool
config USB_GADGET_SUPPORT
bool
config RTC_SUPPORT
bool
config BIG_ENDIAN
bool
config USES_PM
bool
config USES_DEVICETREE
bool
config USES_INITRAMFS
bool
config USES_SEPARATE_INITRAMFS
bool
config USES_SQUASHFS
bool
config USES_JFFS2
bool
config USES_JFFS2_NAND
bool
config USES_EXT4
bool
config USES_EROFS
bool
config USES_TARGZ
bool
config USES_CPIOGZ
bool
config USES_MINOR
bool
config USES_UBIFS
bool
select NAND_SUPPORT
config LOW_MEMORY_FOOTPRINT
bool
config SMALL_FLASH
bool
config NOMMU
bool
config HAS_MIPS16
depends on (mips || mipsel || mips64 || mips64el)
bool
config RFKILL_SUPPORT
bool
config EMMC_SUPPORT
bool
config NAND_SUPPORT
bool
config LEGACY_SDCARD_SUPPORT
bool
config HAS_ATOMIC64
bool
config ARCH_64BIT
select HAS_ATOMIC64
bool
config VIRTIO_SUPPORT
bool
config USES_ROOTFS_PART
bool
config USES_BOOT_PART
bool
config REGULATOR_SUPPORT
bool
# Architecture selection
config aarch64
select ARCH_64BIT
bool
config aarch64_be
select ARCH_64BIT
select BIG_ENDIAN
bool
config arm
bool
config armeb
select BIG_ENDIAN
bool
config arm_v6
bool
config arm_v6k
select HAS_ATOMIC64
bool
config arm_v7
select HAS_ATOMIC64
bool
config i386
select HAS_ATOMIC64
bool
config i686
select HAS_ATOMIC64
bool
config loongarch64
select ARCH_64BIT
bool
config mips
select BIG_ENDIAN
bool
config mipsel
bool
config mips64
select BIG_ENDIAN
select ARCH_64BIT
bool
config mips64el
select ARCH_64BIT
bool
config powerpc
select BIG_ENDIAN
bool
config powerpc64
select BIG_ENDIAN
select ARCH_64BIT
bool
config riscv64
select ARCH_64BIT
bool
config x86_64
select ARCH_64BIT
bool
config ARCH
string
default "aarch64" if aarch64
default "aarch64_be" if aarch64_be
default "arm" if arm
default "armeb" if armeb
default "i386" if i386
default "i686" if i686
default "loongarch64" if loongarch64
default "mips" if mips
default "mipsel" if mipsel
default "mips64" if mips64
default "mips64el" if mips64el
default "powerpc" if powerpc
default "powerpc64" if powerpc64
default "riscv64" if riscv64
default "x86_64" if x86_64