aboutsummaryrefslogtreecommitdiff
path: root/scripts/build/libc
Commit message (Collapse)AuthorAgeFilesLines
* picolibc: Convert to companion libraryKeith Packard2021-01-081-111/+0
| | | | | | | This allows configurations to include picolibc without excluding another C library. Signed-off-by: Keith Packard <keithp@keithp.com>
* Don't remove XLOCALE support unconditionally.lancethepants2020-10-151-1/+0
| | | | Signed-off-by: Lance Fredrickson <lancethepants@gmail.com>
* glibc: set glibc build system default_cflags emptyHans-Christian Noren Egtvedt2020-10-051-0/+2
| | | | | | | | | | By setting glibc build system default_cflags to be empty before building, we will enforce the build system to only use the crosstool-ng CFLAGS when building glibc. Properly solves the issue identified in #1396. Signed-off-by: Hans-Christian Noren Egtvedt <hegtvedt@cisco.com>
* picolibc: Use target architecture to drive picolibc configurationKeith Packard2020-09-161-5/+5
| | | | | | This selects code matching the target architecture within picolibc. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add picolibc support [v2]Keith Packard2020-09-011-0/+111
| | | | | | | | | | | | This adds support for using picolibc instead of newlib on embedded systems. Signed-off-by: Keith Packard <keithp@keithp.com> v2: Add check for meson and ninja Sync option default values with current picolibc defaults Remove xtensa sys header file install as those aren't in picolibc
* Merge pull request #1270 from nolange/prevent_glibc_cflags_overrideAlexey Neyman2020-02-161-1/+4
|\ | | | | prevent the glibc build from overwriting flags
| * prevent the glibc build from overwriting flagsNorbert Lange2019-10-271-1/+4
| | | | | | | | | | | | | | | | | | The glibc will append the content of the CFLAGS variable, overriding previous flags. If unset, the CFLAGS variable is not empty, so explicitly set it. Instead prepend the default CFLAGS flags. Signed-off-by: Norbert Lange <nolange79@gmail.com>
* | Merge pull request #1274 from maxmorozov/masterAlexey Neyman2020-01-211-1/+3
|\ \ | | | | | | CT_LIBC_NEWLIB_REGISTER_FINI is processed correctly
| * | CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION and CT_LIBC_NEWLIB_FVWRITE_IN_STREAMIO are ↵Morozov Max2019-11-041-0/+2
| | | | | | | | | | | | took into account now
| * | CT_LIBC_NEWLIB_REGISTER_FINI is processed correctlyMorozov Max2019-11-041-1/+1
| |/
* | Merge pull request #1280 from dimkr/musl-cflagsAlexey Neyman2019-12-231-1/+2
|\ \ | | | | | | Resepct CT_TARGET_{C,LD}FLAGS when building musl
| * | Resepct CT_TARGET_{C,LD}FLAGS when building muslDima Krasner2019-12-041-1/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I was trying to build static binaries for a range of Broadcom soft-float ARMv7 SoCs and kept getting SIGILL, although I was targeting Cortex A7 (and A5, later), even on A9 and A15. I found out that once I add -msoft-float, +mp+sec is to blame: Attribute Section: aeabi File Attributes - Tag_CPU_name: "7VE" + Tag_CPU_name: "7" Tag_CPU_arch: v7 - Tag_CPU_arch_profile: Application - Tag_ARM_ISA_use: Yes Tag_THUMB_ISA_use: Thumb-2 Tag_ABI_PCS_wchar_t: 4 Tag_ABI_FP_rounding: Needed @@ -12,8 +10,5 @@ File Attributes Tag_ABI_FP_number_model: IEEE 754 Tag_ABI_align_needed: 8-byte Tag_ABI_enum_size: int Tag_ABI_optimization_goals: Aggressive Size Tag_CPU_unaligned_access: v6 - Tag_MPextension_use: Allowed - Tag_DIV_use: Allowed in v7-A with integer division extension - Tag_Virtualization_use: TrustZone and Virtualization Extensions (This is the readelf -A diff, before and after armv7-a+nofp -> armv7+nofp). I kept getting SIGILL even after building my application with a toolchain built with the correct CFLAGS and found out that crosstool-ng doesn't pass the host CFLAGS when building musl, which pollutes my binary with these ARMv7 extensions. Signed-off-by: Dima Krasner <dima@dimakrasner.com>
* / Add newlib retargetable locking configurationStephanos Ioannidis2019-12-201-0/+1
|/ | | | | | | This commit adds support for the newlib configuration option '--enable-newlib-retargetable-locking'. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
* Merge pull request #1178 from stilor/masterAlexey Neyman2019-04-056-12/+12
|\ | | | | Last fixes for 1.24.0
| * Rename JOBSFLAGS -> CT_JOBSFLAGSAlexey Neyman2019-04-046-12/+12
| | | | | | | | | | | | ... so that it is saved/restored when restarting the build. Signed-off-by: Alexey Neyman <stilor@att.net>
* | Fix uClibc build for noMMU targetMax Filippov2019-03-231-14/+16
|/ | | | | | | | | | uclibc_backend_once tries to build dummy shared libraries regardless of whether shared libraries support for target is enabled or not, resulting in build failure in noMMU bFLT configuration. Only build dummy shared libraries when shared library support for target is enabled. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* Fix musl build when CT_SHARED_LIBS=nDima Krasner2019-02-241-0/+5
| | | | Signed-off-by: Dima Krasner <dima@dimakrasner.com>
* Select flat/FDPIC in accordance with ct-ng settingAlexey Neyman2019-02-201-0/+9
| | | | | | | uClibc-ng 1.0.31 enabled FDPIC as an option for ARM/no-MMU configurations and defaults to that option if not set explicitly. Signed-off-by: Alexey Neyman <stilor@att.net>
* Stash the uClibc config after our modsAlexey Neyman2019-02-191-0/+4
| | | | | | ... before running `make olddefconfig`. This helps in debugging. Signed-off-by: Alexey Neyman <stilor@att.net>
* Move moxiebox build to post_ccAlexey Neyman2019-02-172-5/+4
| | | | | | core-2 gcc does not search the final prefix now for newlib's headers. Signed-off-by: Alexey Neyman <stilor@att.net>
* Disable CXX while building glibcAlexey Neyman2019-02-161-3/+4
| | | | | | | Otherwise, glibc 2.29 tries to use it - but we haven't built libstdc++ yet. We really need to implement #808... Until now, pass empty CXX to make. Signed-off-by: Alexey Neyman <stilor@att.net>
* Merge pull request #1134 from stilor/upgradingAlexey Neyman2019-02-061-7/+0
|\ | | | | Upgrade script + test suite
| * Config v2: select relevant parts of each package versionAlexey Neyman2019-01-301-7/+0
| | | | | | | | | | | | | | Also, remove a couple of config options that dealt with package versions that have been since retired. Signed-off-by: Alexey Neyman <stilor@att.net>
* | Coding style fix in uClibc.shDima Krasner2019-01-231-1/+1
| | | | | | | | Signed-off-by: Dima Krasner <dima@dimakrasner.com>
* | Moved uClibc configuration installation to uClibc.shDima Krasner2019-01-231-0/+4
|/ | | | Signed-off-by: Dima Krasner <dima@dimakrasner.com>
* Bionic modifies CT_TARGET_CFLAGSAlexey Neyman2018-12-151-1/+5
| | | | | | | ... which, after a recent change, is not reflected into CT_ALL_TARGET_CFLAGS for non-multilib configurations. Signed-off-by: Alexey Neyman <stilor@att.net>
* Remove a TBDAlexey Neyman2018-12-071-8/+0
| | | | | | | It only applied to core-pass-2 compiler; final compiler can locate the linker script just fine. Signed-off-by: Alexey Neyman <stilor@att.net>
* Disable -fstack-protector* from being used by glibcAlexey Neyman2018-12-071-0/+8
| | | | | | ... until it was fixed (to some extent) in 2.25. Signed-off-by: Alexey Neyman <stilor@att.net>
* Add configuration options for enabling SSPAlexey Neyman2018-12-042-3/+10
| | | | | | | | | | | ... in uClibc and glibc. Fixes #681. While here, relocate additional "sources" for uClibc/binutils into packages/ directory. Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix uClibc builds after moxie mergeAlexey Neyman2018-12-032-13/+13
| | | | | | Broken because of the capitalization of the name. Signed-off-by: Alexey Neyman <stilor@att.net>
* Add moxiebox as a choice for libcAlexey Neyman2018-12-019-137/+163
| | | | | | | | | | | | | | | | | This required some rework of the libc selection, as moxiebox is a layer on top of another libc - newlib. Also, moxiebox'es host VM (`sandbox`) needs a libcrypto on the host. We will not have it if we're cross-compiling a canadian cross. Fortunately, all moxiebox needs from libcrypto is SHA256, and it already includes a standalone implementation of SHA256 in its runtime. Provide a little wrapper that allows moxiebox use that implementation for the host binary, too. Also, automate collecting/printing the list of all packages in a given category (e.g. LIBC or COMP_TOOLS), generate a list of all Kconfig symbols for a given category. Signed-off-by: Alexey Neyman <stilor@att.net>
* Create glibc-ports symlink inside CT_SRC_DIRAlexey Neyman2018-10-161-2/+2
| | | | | | | | ... so that it works in both "bundled" and "bundled,local" cases. Fixes #1060. Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix up timestamps after patchingAlexey Neyman2018-09-281-1/+0
| | | | | | ... so that autotools-based packages do not re-run autoconf/autoheader/automake. Signed-off-by: Alexey Neyman <stilor@att.net>
* Merge pull request #984 from slash3g/masterAlexey Neyman2018-09-251-4/+4
|\ | | | | Properly handle newlib configuration flags
| * Properly handle newlib configuration flagsDaniele Baracchi2018-06-111-4/+4
| |
* | Restore *-android buildAlexey Neyman2018-09-241-1/+7
| | | | | | | | | | | | | | | | | | Modify CT_TARGET_CFLAGS (which are passed to GCC's FOR_TARGET flags) rather than CT_ALL_TARGET_CFLAGS. Fixes #1006. Signed-off-by: Alexey Neyman <stilor@att.net>
* | Merge pull request #990 from antmak/fix_newlib_multilib_optAlexey Neyman2018-09-211-1/+1
|\ \ | |/ |/| Fix a wrong name for the newlib's multilib option
| * Fix a wrong name for the newlib's multilib optionAnton Maklakov2018-06-151-1/+1
| |
* | Avoid adding arch/cpu/tune flags for target to GCC buildAlexey Neyman2018-06-053-3/+3
|/ | | | | | ... as it may need to override them for building runtime-selectable code. Signed-off-by: Alexey Neyman <stilor@att.net>
* Too many fixes need backporting for GCC8...Alexey Neyman2018-05-141-7/+1
| | | | | | ... so instead, disable -Werror for older versions of glibc. Signed-off-by: Alexey Neyman <stilor@att.net>
* First batch of fixesAlexey Neyman2018-05-121-0/+7
| | | | | | | | - Incompatible function type for ifunc alias - Multiple statements macro expansion in strftime - if_nametoindex size checking Signed-off-by: Alexey Neyman <stilor@att.net>
* Preserve each variant of libwinpthread.dllAlexey Neyman2018-05-031-0/+18
| | | | | | | ... in the corresponding /lib directory. Mingw-w64 installs it to /bin, so multiple variants in a multilib configuration override each other. Signed-off-by: Alexey Neyman <stilor@att.net>
* Make libiconv an option in the menu configAlexey Neyman2018-02-101-0/+7
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Use the new SuperH fixes in the two multilib samplesAlexey Neyman2017-09-031-0/+1
| | | | | | | | | | | - Glibc configure args and tuple need adjustment on SuperH - Only allow "both endian" and "with CPU" for unspecified arch variant. May reconsider endianness (was breaking things before adjusting glibc tuple) - Retire non-multilib sample, it should be a subset of the multilib one now. Signed-off-by: Alexey Neyman <stilor@att.net>
* Workaround for static uClibc-ng issue with -lpthreadAlexey Neyman2017-09-031-36/+36
| | | | | | Also, preserve .config when running test-package.sh. Signed-off-by: Alexey Neyman <stilor@att.net>
* Super-H multilib toolchain fixesAlexey Neyman2017-09-031-2/+2
| | | | | | | | | | | | | | | 1. On SuperH, configuring GCC with explicit variant of the CPU (like "sh4") limits the default set of multilibs to just that CPU and requires --with-multilib-list to change. Allow for "unspecified" variant, so that we can defer to GCC to determine the list. 2. Support toolchains with both endiannesses at the same time. 3. Add a SuperH/newlib sample 4. Add more flags processing for uClibc Signed-off-by: Alexey Neyman <stilor@att.net>
* config: Add package versioning flexibilityNathan Chancellor2017-09-011-2/+2
| | | | | | | | | | | | | | Some users (like myself) may want to omit the crosstool-NG version from the binaries' versioning output, as it can be incredibly long and not too helpful. Add a config option to disable it. The possible combinations are as follows: - crosstool-NG version (default) - crosstool-NG version - custom toolchain ID - Custom toolchain ID - No crosstool-NG version OR custom toolchain ID Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
* Make --enable-obsolete-rpc an option in ct-ngAlexey Neyman2017-08-261-2/+3
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix glibc-ports with the new frameworkAlexey Neyman2017-08-261-4/+8
| | | | | | | While here, also consider patched by anything other than "bundled patches" as per-target sources. Add scary warnings in case of a failure. Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix version check in mingw-w64Alexey Neyman2017-08-161-3/+3
| | | | | | Fixes #782. Signed-off-by: Alexey Neyman <stilor@att.net>