summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2018-11-07Make license collection optional, on by defaultAlexey Neyman1-1/+3
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-11-07Merge pull request #1084 from antmak/collect_licencesAlexey Neyman2-0/+33
Collect licenses for the distribution
2018-11-07Fix detection of missing overlaysAlexey Neyman1-2/+1
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-11-05Add an ability to use a regular directory for overlaying. If it doesn't ↵Anton Maklakov1-4/+8
exist, the tarball is still used
2018-11-05Collect licenses for the distributionAnton Maklakov2-0/+33
2018-11-03Merge pull request #985 from antmak/platform_headersAlexey Neyman1-6/+5
Use the platform headers in the pass-2 and canadian gcc stages
2018-11-01Add an ability to modify an exported variableAlexey Neyman2-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>
2018-10-27Detect errors in CT_SaveLocalAlexey Neyman1-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>
2018-10-26Merge pull request #1069 from austin-beer/masterAlexey Neyman1-2/+2
Prevent Bash from searching $PATH when sourcing the .config file
2018-10-25Add comment about preventing Bash from searching $PATHAustin Beer1-2/+2
2018-10-25Prevent Bash from searching $PATH when sourcing the .config fileAustin Beer1-2/+2
2018-10-24Generate correct tuple for PowerPC with SPE ABIAlexey Neyman1-1/+1
Fixes #1018. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-10-22Supply "very old" and "very new" glibc versionsAlexey Neyman1-1/+5
... as 1.0 and 99.99, respectively, to gcc configure. Fixes #1031. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-10-21Try to use 'git fetch --depth 1' if possibleAlexey Neyman1-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>
2018-10-20Fix state dir locationAlexey Neyman1-1/+1
Fixes #1054 Signed-off-by: Alexey Neyman <stilor@att.net>
2018-10-16Create glibc-ports symlink inside CT_SRC_DIRAlexey Neyman1-2/+2
... so that it works in both "bundled" and "bundled,local" cases. Fixes #1060. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-09-28Fix up timestamps after patchingAlexey Neyman2-1/+14
... so that autotools-based packages do not re-run autoconf/autoheader/automake. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-09-27Make CT_PREFIX_DIR/CT_WORK_DIR/CT_BUILD_TOP_DIR absoluteAlexey Neyman1-3/+12
... if they aren't already. Fixes #1010. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-09-27Use 'chmod a-x' instead of 'chmod -x'Alexey Neyman2-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>
2018-09-26Fix restarting after a complete buildAlexey Neyman1-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>
2018-09-26Merge pull request #984 from slash3g/masterAlexey Neyman1-4/+4
Properly handle newlib configuration flags
2018-09-25Restore *-android buildAlexey Neyman1-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>
2018-09-22Merge pull request #990 from antmak/fix_newlib_multilib_optAlexey Neyman1-1/+1
Fix a wrong name for the newlib's multilib option
2018-06-15Fix a wrong name for the newlib's multilib optionAnton Maklakov1-1/+1
2018-06-12Use the platform headers in the pass-2 and canadian gcc stagesAnton Maklakov1-6/+5
2018-06-11Properly handle newlib configuration flagsDaniele Baracchi1-4/+4
2018-06-06Make patch order overridable by individual packagesAlexey Neyman1-3/+8
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-06-05Disable context functions for ThumbAlexey Neyman1-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>
2018-06-05Add --enable-obsolete for powerpc-*-speAlexey Neyman1-3/+3
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-06-05Detect errors from gasAlexey Neyman1-0/+1
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-06-05Avoid adding arch/cpu/tune flags for target to GCC buildAlexey Neyman12-35/+32
... as it may need to override them for building runtime-selectable code. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-05-21ARC: Disable CONFIG_ARC_HAS_ATOMICS in uClibc if building without -matomicsAlexey Brodkin1-1/+1
In case we build for ARC core which has no support of atomic ops among other things we need to configure libc to use Linux kernel helper to emulate HS atomic ops. This is done with disabling of CONFIG_ARC_HAS_ATOMICS in uClibc. Currently we __remove__ this option from .config but this makes no sense as its default state is "y" so we need to explicitly disable it instead. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-05-15Merge pull request #967 from stilor/fix-building-older-glibcAlexey Neyman1-0/+1
Fix building older glibc
2018-05-15Add ARC architecture supportAlexey Brodkin1-0/+34
Synopsys' DesignWare ARC Processors are a family of 32-bit CPUs that SoC designers can optimize for a wide range of uses, from deeply embedded to high-performance host applications in a variety of market segments. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-05-15Too many fixes need backporting for GCC8...Alexey Neyman1-7/+1
... so instead, disable -Werror for older versions of glibc. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-05-12First batch of fixesAlexey Neyman1-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>
2018-05-06Restore a missing GDB optionAlexey Neyman1-2/+6
(whether GDB has --disable-build-with-cxx) and use it. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-05-04Preserve each variant of libwinpthread.dllAlexey Neyman1-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>
2018-04-30Restore the ability to build multiple configurationsAlexey Neyman1-0/+1
... in the shared .build directory. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-29Add checking for *sum and unzipAlexey Neyman2-7/+6
Also improve logging (add an ability to log commands/files/environment variables to config.log) Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-29Fix strace 4.21+ on aarch64Alexey Neyman1-1/+2
... which now defaults to --enable-mpers=yes, which attempts to invoke aarch64-*-gcc with -m32 and fails. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07Support out-of-tree local buildsAlexey Neyman5-8/+16
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07config.sub/config.guess must either be executableAlexey Neyman1-4/+4
or be run through shell Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07Install "pure data" directoriesAlexey Neyman1-1/+0
... and update .gitignore. Survives 'make distcheck'. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07Remove the need for configure substitutions in scriptsAlexey Neyman4-9/+6
... so that scripts/ directory can be installed verbatim. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07WIP: autotoolizationAlexey Neyman6-202/+1548
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07Use autoconfig-archve/automake testsAlexey Neyman1-0/+2
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-02-16Avoid calling CT_Abort from CT_MirrorsAlexey Neyman1-4/+13
... see the comment for the reason. Defer aborting until the result of CT_Mirrors is actually used (if it is used). Signed-off-by: Alexey Neyman <stilor@att.net>
2018-02-12cc/gcc: use correct sysroot arg for do_gcc_core_backendM1cha1-1/+2
This fixes gccs LIMITS_H_TEST detection for baremetal targets so limits.h will be installed correctly. Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
2018-02-10Make libiconv an option in the menu configAlexey Neyman1-0/+7
Signed-off-by: Alexey Neyman <stilor@att.net>