1if BR2_TOOLCHAIN_BUILDROOT_UCLIBC 2 3comment "uClibc Options" 4 5config BR2_PACKAGE_UCLIBC 6 bool 7 default y 8 select BR2_PACKAGE_LINUX_HEADERS 9 10config BR2_UCLIBC_USE_GLIBC_NEON 11 bool "use glibc-neon" 12 depends on BR2_arm && BR2_ARM_CPU_HAS_NEON 13 default y 14 15config BR2_UCLIBC_CONFIG 16 string "uClibc configuration file to use?" 17 default "package/uclibc/uClibc-ng.config" 18 help 19 Some people may wish to use their own modified uClibc 20 configuration file and will specify their config file 21 location with this option. See also docs/README in this 22 package. If unsure, use the default. 23 24config BR2_UCLIBC_CONFIG_FRAGMENT_FILES 25 string "Additional uClibc configuration fragment files" 26 help 27 A space-separated list of configuration fragment files, that 28 will be merged to the main uClibc configuration file. 29 30config BR2_TOOLCHAIN_BUILDROOT_WCHAR 31 bool "Enable WCHAR support" 32 select BR2_USE_WCHAR 33 help 34 Enable this option if you want your toolchain to support 35 wide characters (i.e characters longer than 8 bits, needed 36 for locale support). 37 38config BR2_TOOLCHAIN_BUILDROOT_LOCALE 39 bool "Enable toolchain locale/i18n support" 40 select BR2_TOOLCHAIN_BUILDROOT_WCHAR 41 select BR2_ENABLE_LOCALE 42 select BR2_NEEDS_HOST_UTF8_LOCALE 43 help 44 Enable this option if you want your toolchain to support 45 localization and internationalization. 46 47choice 48 prompt "Thread library implementation" 49 help 50 Use this option to select the thread library implementation 51 that should be used in your toolchain. 52 53config BR2_PTHREADS_NATIVE 54 bool "Native POSIX Threading (NPTL)" 55 depends on BR2_USE_MMU 56 select BR2_TOOLCHAIN_HAS_THREADS 57 select BR2_TOOLCHAIN_HAS_THREADS_NPTL 58 59config BR2_PTHREADS 60 bool "linuxthreads" 61 depends on !BR2_aarch64 && !BR2_aarch64_be 62 depends on !BR2_RISCV_64 63 select BR2_TOOLCHAIN_HAS_THREADS 64 65config BR2_PTHREADS_NONE 66 bool "none" 67 68endchoice 69 70config BR2_PTHREAD_DEBUG 71 bool "Thread library debugging" 72 depends on BR2_PTHREADS || BR2_PTHREADS_NATIVE 73 select BR2_TOOLCHAIN_HAS_THREADS_DEBUG 74 help 75 Build the thread library with debugging enabled. 76 77config BR2_TOOLCHAIN_BUILDROOT_USE_SSP 78 bool "Enable stack protection support" 79 depends on BR2_PACKAGE_HOST_BINUTILS_SUPPORTS_CFI 80 select BR2_TOOLCHAIN_HAS_SSP 81 help 82 Enable stack smashing protection support using GCCs 83 -fstack-protector-all option in uClibc. 84 85 See 86 http://www.linuxfromscratch.org/hints/downloads/files/ssp.txt 87 for details. 88 89config BR2_UCLIBC_INSTALL_UTILS 90 bool "Compile and install uClibc utilities" 91 default y 92 help 93 Enabling this option will compile and install the getconf, 94 ldconfig and ldd uClibc utilities for the target. 95 96 You can save ~32 KiB in target space by disabling them since 97 they're normally not needed. 98 99# Mapping from the Buildroot architecture configuration options to the 100# uClibc architecture names. 101config BR2_UCLIBC_TARGET_ARCH 102 string 103 default "arc" if BR2_arcle || BR2_arceb 104 default "arm" if BR2_arm || BR2_armeb 105 default "m68k" if BR2_m68k 106 default "microblaze" if BR2_microblaze 107 default "mips" if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el 108 default "or1k" if BR2_or1k 109 default "powerpc" if BR2_powerpc 110 default "sh" if BR2_sh 111 default "sparc" if BR2_sparc 112 default "xtensa" if BR2_xtensa 113 default "i386" if BR2_i386 114 default "x86_64" if BR2_x86_64 115 default "riscv64" if BR2_RISCV_64 116 117config BR2_UCLIBC_MIPS_ABI 118 string 119 default "O32" if BR2_MIPS_OABI32 120 default "N32" if BR2_MIPS_NABI32 121 default "N64" if BR2_MIPS_NABI64 122 depends on BR2_UCLIBC_TARGET_ARCH = "mips" 123 124config BR2_UCLIBC_MIPS_NAN 125 string 126 default "LEGACY" if BR2_MIPS_NAN_LEGACY 127 default "2008" if BR2_MIPS_NAN_2008 128 depends on BR2_UCLIBC_TARGET_ARCH = "mips" 129 130config BR2_UCLIBC_SH_TYPE 131 string 132 default "SH2A" if BR2_sh2a 133 default "SH4" if BR2_sh4 || BR2_sh4eb 134 depends on BR2_UCLIBC_TARGET_ARCH = "sh" 135 136config BR2_UCLIBC_SPARC_TYPE 137 string 138 default "V7" if BR2_sparc_v7 || BR2_sparc_sparchfleon || BR2_sparc_sparcsfleon 139 default "V8" if BR2_sparc_v8 || BR2_sparc_sparchfleonv8 || BR2_sparc_sparcsfleonv8 140 depends on BR2_UCLIBC_TARGET_ARCH = "sparc" 141 142config BR2_UCLIBC_POWERPC_TYPE 143 string 144 default "CLASSIC" if !BR2_powerpc_8540 && !BR2_powerpc_8548 145 default "E500" if BR2_powerpc_8540 || BR2_powerpc_8548 146 depends on BR2_UCLIBC_TARGET_ARCH = "powerpc" 147 148config BR2_UCLIBC_X86_TYPE 149 string 150 default "486" if BR2_x86_i486 151 default "586" if BR2_x86_i586 152 default "586MMX" if BR2_x86_pentium_mmx 153 default "686" if BR2_x86_i686 || BR2_x86_pentiumpro 154 default "PENTIUMII" if BR2_x86_pentium2 155 default "PENTIUMIII" if BR2_x86_pentium3 156 default "PENTIUM4" if BR2_x86_pentium4 || BR2_x86_pentium_m || \ 157 BR2_x86_nocona || BR2_x86_core2 || BR2_x86_corei7 158 depends on BR2_UCLIBC_TARGET_ARCH = "i386" 159 160endif # BR2_TOOLCHAIN_BUILDROOT_UCLIBC 161