summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
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-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>
2018-01-30Ncurses fixes for 6.1Alexey Neyman3-4/+24
- Update to 20180129 - Throw in --disable-db-install if database is disabled; otherwise 'make install' tries to run tic which is not built. - Select appropriate strip utility for the host; otherwise non-x86 architectures fail to install (unless --disable-stripping is also added) Signed-off-by: Alexey Neyman <stilor@att.net>
2018-01-25Merge pull request #900 from stilor/issue-897Alexey Neyman1-2/+6
Only decorate TARGET_ARCH if using specific CPU
2018-01-22Only decorate TARGET_ARCH if using specific CPUAlexey Neyman1-2/+6
Otherwise, binutils don't recognize it as a valid target - even though GCC does. Fixes #897. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-12-17Fix gdb build flags formingSergey Korolev1-10/+12
Build flags are scalar variables. Signed-off-by: Sergey Korolev <s.korolev@ndmsystems.com>
2017-12-17Merge pull request #882 from ksergeyv/gdb-linkAlexey Neyman1-80/+106
Fix variables passing to gdb configure scripts
2017-12-14Fix variables passing to gdb configure scriptsSergey Korolev1-80/+106
These changes mainly fix static linking errors when building static native gdb and gdbserver (tested with gcc 7.2.0 + uClibc-ng 1.0.27 + binutils 2.29.1 for MIPS): [ALL ] .../lib/libstdc++.a(eh_throw.o): In function `__cxa_throw': [ALL ] (.text.__cxa_throw+0x64): undefined reference to `_Unwind_RaiseException' [ALL ] (.text.__cxa_throw+0x6c): undefined reference to `_Unwind_RaiseException' [ALL ] .../lib/libstdc++.a(eh_throw.o): In function `__cxa_rethrow': [ALL ] (.text.__cxa_rethrow+0x78): undefined reference to `_Unwind_Resume_or_Rethrow' [ALL ] (.text.__cxa_rethrow+0x80): undefined reference to `_Unwind_Resume_or_Rethrow' ... The problem is in mixing of CPP, CC, CXX, and LD with CPPFLAGS, CFLAGS, CXXFLAGS, and LDFLAGS before passing to configure scripts. gcc is sensitive to argument order and the scripts are normally responsible to combine the variables in a proper way. Signed-off-by: Sergey Korolev <s.korolev@ndmsystems.com>
2017-12-13Do not build a native gdbserver automaticallySergey Korolev1-0/+4
Signed-off-by: Sergey Korolev <s.korolev@ndmsystems.com>
2017-11-30Make comp.libs use generated templates, tooAlexey Neyman2-39/+78
This allows us to include the component-to-package relation in the generated kconfig files and make use of that information in the show-config.sh script. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-11-20Align script names with the ct-ng commandsAlexey Neyman2-0/+0
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-11-20showConfig.sh no longer has anything substitutedAlexey Neyman2-1/+0
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-11-20Retire wiki-printerAlexey Neyman1-122/+39
It is not used anymore and is currently broken. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-11-20A few fixes for showSamplesAlexey Neyman2-85/+52
- Use fork's name, not the master package name - Allow to use a choice selector when printing a package - Consider complibs always present (they are, gcc does require gmp/...) Signed-off-by: Alexey Neyman <stilor@att.net>
2017-11-20scripts/showSamples.sh: support custom package versionsSergey Korolev1-31/+40
Signed-off-by: Sergey Korolev <s.korolev@ndmsystems.com>
2017-11-20scripts/functions: add CT_GetPkgBuildVersionSergey Korolev1-0/+22
This allows to get a configured custom version of a package. Signed-off-by: Sergey Korolev <s.korolev@ndmsystems.com>
2017-11-19add RISC-V architecture supportAntony Pavlov1-0/+5
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
2017-11-12showSamples.sh: fix description of a selected tool setSergey Korolev1-5/+4
Signed-off-by: Sergey Korolev <s.korolev@ndmsystems.com>
2017-11-12showSamples.sh: fix uClibc-ng detectionSergey Korolev1-1/+1
Signed-off-by: Sergey Korolev <s.korolev@ndmsystems.com>