summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2019-11-03CT_LIBC_NEWLIB_REGISTER_FINI is processed correctlyMorozov Max1-1/+1
2019-10-27prevent the glibc build from overwriting flagsNorbert Lange1-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>
2019-10-18move BUILD_DIR variable into KconfigNorbert Lange1-1/+0
this allows users to reference this variable, for ex. in TARGET_CFLAGS to remap paths. Signed-off-by: Norbert Lange <nolange79@gmail.com>
2019-10-15fix nonfunctional --enable-relro optionNorbert Lange1-1/+1
Signed-off-by: Norbert Lange <nolange79@gmail.com>
2019-10-10enable option for binutils deterministic-archivesNorbert Lange1-0/+3
Signed-off-by: Norbert Lange <nolange79@gmail.com>
2019-10-02Add Linux versionsAlexey Neyman1-1/+1
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-09-14build/internals.sh: Handle pie executablesChris Packham1-1/+1
Fixes: #887 On some systems the file command identifies a pie executable as a shared object. Update do_finish() to handle this case so that they are stripped as well. Signed-off-by: Chris Packham <judge.packham@gmail.com>
2019-06-14ARC: Support building of multi-lib Glibc toolchainAlexey Brodkin1-0/+36
From GCC's standpoint ARC's multilib items are defined by "mcpu" values which we have quite a few and for all of them might be built optimized cross-toolchain. From Glibc's standpoint multilib is just multi-ABI [1] and so very limited versions are supposed to co-exist (e.g. arc700 & archs). Here we force Glibc to install libraries in GCC's multilib folder to create a universal cross-toolchain that has libs optimized for multiple CPU types. But note we only need to mess with installation paths in case of real multilib, otherwise we keep default "lib/" paths so that GCC finds default (the one and only) libs where it expects them to be. Also here we add a sample which allows to build universal Glibc Linux toolchain for ARC. [1] https://sourceware.org/ml/libc-alpha/2019-06/msg00018.html Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2019-04-05Merge pull request #1178 from stilor/masterAlexey Neyman20-58/+60
Last fixes for 1.24.0
2019-04-05Rename JOBSFLAGS -> CT_JOBSFLAGSAlexey Neyman20-53/+53
... so that it is saved/restored when restarting the build. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-04-05Add an ability to mark a configuration as invalidAlexey Neyman1-0/+2
... so that the build will fail early and predictably. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-04-05An artifact of merging native/gdbserver backendsAlexey Neyman1-5/+5
... resulted in an attempt to build libinproctrace.so whenever any of the {gdbserver, native gdb} was enabled. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-23Fix uClibc build for noMMU targetMax Filippov1-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>
2019-03-23Add support for noMMU xtensaMax Filippov1-3/+3
scripts/build/kernel/linux.sh only provides suffix to known architectures when building toolchain targeting noMMU linux. Add support for xtensa and assign uclinux suffix to it. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2019-03-13Make the proc_service.h workaround apply to gdbserverAlexey Neyman1-6/+15
... when it is compiled without the native GDB. Also, fix the gdbserver to be installed without a program prefix in this case, as it was before the unification of the GDB backend. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-11Allow older GDB to build against newer glibcAlexey Neyman1-1/+17
Also, fix the subdir used when only gdbserver is built (without native GDB). Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-10Move GDB build into a common backend functionAlexey Neyman3-268/+181
... needed to create a common runtime test for an incompatible change in glibc API. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-04Meet our new companion tool, bisonAlexey Neyman2-1/+68
Which is here courtesy of CentOS6, which only has bison 2.4 - while new glibc requires 2.7. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-02Fix build of glibc 2.29 on systems with obsolete host programsAlexey Neyman2-9/+12
- Force building make as a companion tool if host make is older than 4.0 (CentOS 7 currently has 3.82) - Disable 2.29 as a choice if host python is older than 3.4 (CentOS 7 has 2.6 unless python from EPEL is installed) - Python2 emits its version information to STDERR. Ugh. While there, also use the detected host Python for GDB configuration. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-01Make lzip an optional dependencyAlexey Neyman1-2/+14
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-25Merge pull request #1144 from bwalle/expat-docbookAlexey Neyman1-0/+1
expat: Build without docbook
2019-02-24Fix musl build when CT_SHARED_LIBS=nDima Krasner1-0/+5
Signed-off-by: Dima Krasner <dima@dimakrasner.com>
2019-02-20expat: Build without docbookBernhard Walle1-0/+1
This fixes following build error on Debian 9: configure: error: Your local docbook2man was found to work with SGML rather than XML. Please install docbook2X and use variable DOCBOOK_TO_MAN to point configure to command docbook2x-man of docbook2X. Or use DOCBOOK_TO_MAN="xmlto man --skip-validation" if you have xmlto around. You can also configure using --without-docbook if you can do without a man page for xmlwf. Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
2019-02-20Select flat/FDPIC in accordance with ct-ng settingAlexey Neyman1-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>
2019-02-20Add debug output to Kconfig manipulation functionsAlexey Neyman1-0/+3
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-20Stash the uClibc config after our modsAlexey Neyman1-0/+4
... before running `make olddefconfig`. This helps in debugging. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-20Duh! do not override ${cflags}Alexey Neyman1-2/+3
... in the backend function with ${CFLAGS_FOR_HOST}. The caller either supplies them already, or (in case of pass-1/2 of the canadian cross) passes ${CFLAGS_FOR_BUILD} there. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-18Move moxiebox build to post_ccAlexey Neyman2-5/+4
core-2 gcc does not search the final prefix now for newlib's headers. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-18Use -idirafter instead of copying headers.Alexey Neyman1-13/+20
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-16Disable CXX while building glibcAlexey Neyman1-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>
2019-02-16Check/increase `ulimit -n` settingAlexey Neyman1-0/+8
... 2.32 ld runs out of file descriptors while linking uClibc-ng on SuperH. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-14Improve error detectionAlexey Neyman1-7/+9
... by filtering the messages that contain a *word* "warning" or "error", i.e. is preceded by a space or is at the beginning of the line. This improves the output from new uClibc-ng releases - which produce a warning about an unused label, `mprot_error`. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-13Update config.{sub,guess}Alexey Neyman2-25/+34
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-13Use CFLAGS for both CFLAGS/CXXFLAGS in GDBAlexey Neyman1-22/+6
These config variables are documented as such anyway. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-13decouple darwin/clang here as per #712Roy Storey1-12/+11
https://github.com/crosstool-ng/crosstool-ng/issues/712#issuecomment-300891861
2019-02-13clang check before add to CT_CFLAGS_FOR_BUILD/HOSTRoy Storey1-0/+6
2019-02-13Implement an option to store downloads in subdirsAlexey Neyman2-19/+42
... following the buildroot model. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-09Use enhanced framework for 'ct-ng update-samples'Alexey Neyman2-9/+2
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-09Improve upgradability of defconfig filesAlexey Neyman4-492/+565
- Switch to two-pass reading of the config file to track both (a) the option's value and (b) if the option has been explicitly called out in the .config being processed. - Split off per-version functions into separate files. - Add a README with some guidelines on writing new upgrade scripts. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-07Merge pull request #1134 from stilor/upgradingAlexey Neyman4-37/+640
Upgrade script + test suite
2019-02-06Add a few tests to upgrade testsuiteAlexey Neyman1-10/+16
... coverage not complete, but pretty diverse and covers most non-trivial conversions. PRs with better coverage for 1.23.o options welcome. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-05Start a testsuite for upgrade scriptAlexey Neyman1-1/+1
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-01Upgrade script for v2 of the configAlexey Neyman1-0/+114
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-01-30Config v2: select relevant parts of each package versionAlexey Neyman2-12/+3
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>
2019-01-28Add upgrade logic to version-check.shAlexey Neyman2-27/+481
Slightly rework config version detector to catch the case where neither CONFIG_VERSION/CONFIG_VERSION_CURRENT is defined in the config file. Add olddefconfig and use it after the upgrade. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-01-26Basic framework for checking config file versionAlexey Neyman1-0/+38
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-01-23Coding style fixes in functionsDima Krasner1-3/+3
Signed-off-by: Dima Krasner <dima@dimakrasner.com>
2019-01-23Coding style fix in uClibc.shDima Krasner1-1/+1
Signed-off-by: Dima Krasner <dima@dimakrasner.com>
2019-01-23Moved uClibc configuration installation to uClibc.shDima Krasner3-9/+16
Signed-off-by: Dima Krasner <dima@dimakrasner.com>
2019-01-22Store the uClibc .config alongside the ct-ng .configDima Krasner1-0/+5
Signed-off-by: Dima Krasner <dima@dimakrasner.com>