aboutsummaryrefslogtreecommitdiff
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
...
* Dump how multilib iterator is invokedAlexey Neyman2019-01-141-0/+6
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Canonicalize prefix dir and sysrootAlexey Neyman2019-01-141-5/+14
| | | | | | | | ... because GCC prints the sysroot with symlinks resolved. Fixes #892. Signed-off-by: Alexey Neyman <stilor@att.net>
* 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>
* Use "package ksym" when fetching/extractingAlexey Neyman2018-12-141-2/+2
| | | | | | | | ... in the default implementation of the fetch/extract methods. Fixes #1116. Signed-off-by: Alexey Neyman <stilor@att.net>
* Add a symlink to LTO for binutilsAlexey Neyman2018-12-113-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>
* Add config flags for omitting 'arch' and 'vendor'Alexey Neyman2018-12-108-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>
* Run through 'ct-ng updatetools'Alexey Neyman2018-12-092-1609/+1592
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Use -mel/-meb for moxieAlexey Neyman2018-12-071-0/+5
| | | | 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>
* Set ALL_TARGET_CFLAGS initially for !MULTILIBAlexey Neyman2018-12-072-24/+29
| | | | | | Fixes #1107. Signed-off-by: Alexey Neyman <stilor@att.net>
* Add configuration options for enabling SSPAlexey Neyman2018-12-044-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>
* Add a config option for default RELRO settingAlexey Neyman2018-12-031-0/+5
| | | | | | Fixes #656. Signed-off-by: Alexey Neyman <stilor@att.net>
* Warn if architecture is empty on x86/32bitAlexey Neyman2018-12-031-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>
* 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>
* Consider it success if DoForceRmdir removes only the contentAlexey Neyman2018-12-012-26/+27
| | | | | | Fixes #929. Signed-off-by: Alexey Neyman <stilor@att.net>
* Add moxiebox as a choice for libcAlexey Neyman2018-12-0115-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>
* Add moxie architectureAlexey Neyman2018-11-283-6/+17
| | | | | | and a moxie-unknown-elf target (which is what #1088 apparently wanted). Signed-off-by: Alexey Neyman <stilor@att.net>
* Add DTC as a companion toolAlexey Neyman2018-11-288-43/+156
| | | | | | (needed for cross-gdb targeting the moxie-* targets) Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix installation of the license fileAlexey Neyman2018-11-122-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>
* Make license collection optional, on by defaultAlexey Neyman2018-11-071-1/+3
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Merge pull request #1084 from antmak/collect_licencesAlexey Neyman2018-11-072-0/+33
|\ | | | | Collect licenses for the distribution
| * Collect licenses for the distributionAnton Maklakov2018-11-052-0/+33
| |
* | Fix detection of missing overlaysAlexey Neyman2018-11-061-2/+1
| | | | | | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* | Add an ability to use a regular directory for overlaying. If it doesn't ↵Anton Maklakov2018-11-051-4/+8
|/ | | | exist, the tarball is still used
* Merge pull request #985 from antmak/platform_headersAlexey Neyman2018-11-031-6/+5
|\ | | | | Use the platform headers in the pass-2 and canadian gcc stages
| * Use the platform headers in the pass-2 and canadian gcc stagesAnton Maklakov2018-06-121-6/+5
| |
* | Add an ability to modify an exported variableAlexey Neyman2018-11-012-5/+12
| | | | | | | | | | | | | | | | | | | | ... and use that ability to permanently set CTNG_LD_IS in case gold is default linker and we're building glibc. Fixes #988. This was a long-standing breakage in crosstool-NG (at least since it began to run each step in a sub-shell). Signed-off-by: Alexey Neyman <stilor@att.net>
* | Detect errors in CT_SaveLocalAlexey Neyman2018-10-271-8/+32
| | | | | | | | | | | | | | | | | | | | | | | | The function is called from a conditional and therefore, the CT_OnError handler is not invoked on failures. Need to return an error and check for the error return in the caller. Also, while here, fix the issue that was causing the failure - move can fail if it crosses a filesystem, so fall back to 'cp+rm' in that case. Signed-off-by: Alexey Neyman <stilor@att.net>
* | Merge pull request #1069 from austin-beer/masterAlexey Neyman2018-10-251-2/+2
|\ \ | | | | | | Prevent Bash from searching $PATH when sourcing the .config file
| * | Add comment about preventing Bash from searching $PATHAustin Beer2018-10-251-2/+2
| | |
| * | Prevent Bash from searching $PATH when sourcing the .config fileAustin Beer2018-10-241-2/+2
| | |
* | | Generate correct tuple for PowerPC with SPE ABIAlexey Neyman2018-10-231-1/+1
|/ / | | | | | | | | | | Fixes #1018. Signed-off-by: Alexey Neyman <stilor@att.net>
* | Supply "very old" and "very new" glibc versionsAlexey Neyman2018-10-211-1/+5
| | | | | | | | | | | | | | | | ... as 1.0 and 99.99, respectively, to gcc configure. Fixes #1031. Signed-off-by: Alexey Neyman <stilor@att.net>
* | Try to use 'git fetch --depth 1' if possibleAlexey Neyman2018-10-201-15/+65
| | | | | | | | | | | | | | | | | | It should be possible if fetching a tag/branch, and it may be possible if fetching a changeset if a server is configured to allow it. Fixes #986 Signed-off-by: Alexey Neyman <stilor@att.net>
* | Fix state dir locationAlexey Neyman2018-10-191-1/+1
| | | | | | | | | | | | Fixes #1054 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-282-1/+14
| | | | | | | | | | | | ... so that autotools-based packages do not re-run autoconf/autoheader/automake. Signed-off-by: Alexey Neyman <stilor@att.net>
* | Make CT_PREFIX_DIR/CT_WORK_DIR/CT_BUILD_TOP_DIR absoluteAlexey Neyman2018-09-271-3/+12
| | | | | | | | | | | | | | | | ... if they aren't already. Fixes #1010. Signed-off-by: Alexey Neyman <stilor@att.net>
* | Use 'chmod a-x' instead of 'chmod -x'Alexey Neyman2018-09-262-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | There is a subtle difference when executable bit is a part of the umask. And at least some versions (Debian/stretch) fail if the resulting mode would've been different if not for the umask setting. Fixes #998. Although, with such chmods/umasks it is likely that some package installation will break anyway. But I'll leave it until somebody complains. Signed-off-by: Alexey Neyman <stilor@att.net>
* | Fix restarting after a complete buildAlexey Neyman2018-09-261-4/+4
| | | | | | | | | | | | | | | | | | It is much, much better to *first* make the directory writable and *then* do a test for case-sensitivity (which requires writing in that directory). Fixes #1033. 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
| | |
* | | Make patch order overridable by individual packagesAlexey Neyman2018-06-061-3/+8
| | | | | | | | | | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* | | Disable context functions for ThumbAlexey Neyman2018-06-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | They're written in ARM dialect, and `ldmia r14, {r14, pc}` is not accepted in T2 encoding. GCC8 changed the list of multilibs for arm-*, which now includes a variant with CPU that supports T2 but not A1 encoding. Signed-off-by: Alexey Neyman <stilor@att.net>
* | | Add --enable-obsolete for powerpc-*-speAlexey Neyman2018-06-051-3/+3
| | | | | | | | | | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* | | Detect errors from gasAlexey Neyman2018-06-051-0/+1
| | | | | | | | | | | | Signed-off-by: Alexey Neyman <stilor@att.net>