summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
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>
2019-01-15Dump how multilib iterator is invokedAlexey Neyman1-0/+6
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-01-15Canonicalize prefix dir and sysrootAlexey Neyman1-5/+14
... because GCC prints the sysroot with symlinks resolved. Fixes #892. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-15Bionic modifies CT_TARGET_CFLAGSAlexey Neyman1-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>
2018-12-15Use "package ksym" when fetching/extractingAlexey Neyman1-2/+2
... in the default implementation of the fetch/extract methods. Fixes #1116. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-11Add a symlink to LTO for binutilsAlexey Neyman3-11/+21
... so that ar can find the plugin even when invoked directly, not via the gcc-ar plugin. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-10Add config flags for omitting 'arch' and 'vendor'Alexey Neyman8-73/+93
... parts of the config tuple. While here, remove parts that are setting portions of the target tuple to a value that's already the default. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-10Run through 'ct-ng updatetools'Alexey Neyman2-1609/+1592
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-07Use -mel/-meb for moxieAlexey Neyman1-0/+5
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-07Remove a TBDAlexey Neyman1-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>
2018-12-07Disable -fstack-protector* from being used by glibcAlexey Neyman1-0/+8
... until it was fixed (to some extent) in 2.25. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-07Set ALL_TARGET_CFLAGS initially for !MULTILIBAlexey Neyman2-24/+29
Fixes #1107. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-05Add configuration options for enabling SSPAlexey Neyman4-15/+11
... 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>
2018-12-04Add a config option for default RELRO settingAlexey Neyman1-0/+5
Fixes #656. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-04Warn if architecture is empty on x86/32bitAlexey Neyman1-1/+5
as that defaults to i386, which will fail with glibc (and likely other libcs). Fixes #617. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-03Fix uClibc builds after moxie mergeAlexey Neyman2-13/+13
Broken because of the capitalization of the name. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-01Consider it success if DoForceRmdir removes only the contentAlexey Neyman2-26/+27
Fixes #929. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-01Add moxiebox as a choice for libcAlexey Neyman15-185/+238
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>
2018-11-28Add moxie architectureAlexey Neyman3-6/+17
and a moxie-unknown-elf target (which is what #1088 apparently wanted). Signed-off-by: Alexey Neyman <stilor@att.net>
2018-11-28Add DTC as a companion toolAlexey Neyman8-43/+156
(needed for cross-gdb targeting the moxie-* targets) Signed-off-by: Alexey Neyman <stilor@att.net>
2018-11-12Fix installation of the license fileAlexey Neyman2-16/+10
... for ct-ng configured without --enable-local. Also, install licenses in subdirectories of the components. Also, ct-ng configured with --enable-local removed the scripts directory upon `ct-ng distclean`. Also, misspelled CT_WGET/CT_CURL variables prevented use of `ct-ng updatetools`. Fixes #1091. Signed-off-by: Alexey Neyman <stilor@att.net>