summaryrefslogtreecommitdiff
path: root/scripts/functions
AgeCommit message (Collapse)AuthorFilesLines
2017-08-21Save export status for environment varsAlexey Neyman1-13/+42
... and limit our modifications to our variables. Fixes #762. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-21Check for config file changes when restartingAlexey Neyman1-0/+7
Also, save/restore per-target source directory. Fixes #800. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-19Use per-package list of formats to determine downloadsAlexey Neyman1-61/+36
Fixes #789 Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-19Record tarball formatsAlexey Neyman1-0/+4
Also, missed upgrades of gmp, isl, mingw-w64 Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-17Merge pull request #801 from stilor/regressionsAlexey Neyman1-1/+1
Regressions
2017-08-16Fix DoLog -> DoExecLogAlexey Neyman1-1/+1
Fixes #788. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-03scripts: remove superfluous dotKirill Smirnov1-2/+2
Tarball extensions list already contains leading dot, do not add another one. Signed-off-by: Kirill Smirnov <kirill.k.smirnov@gmail.com>
2017-07-17Fix archive yymm directoryAlexey Neyman1-0/+1
In case there is a "patchlevel" suffix. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-07-17Fix linaro downloaderAlexey Neyman1-1/+1
Fixes #779. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-07-17Fix new framework for running from installed pathAlexey Neyman1-1/+1
Fixes #777 Signed-off-by: Alexey Neyman <stilor@att.net>
2017-07-10Resolve a few more TBDsAlexey Neyman1-4/+3
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-07-09Fix xtensa overlaysAlexey Neyman1-12/+24
They are unpacked properly, but fail during build. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-07-08Some locations were missed while renaming kconfig symbolsAlexey Neyman1-1/+1
... because there the symbols were constructer part by part. Also, remove cc.sh and source $(CT_CC).sh directly - we only build a single compiler at a time. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-07-08Allow VCS versions to be patched via some unique revision IDAlexey Neyman1-37/+39
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-07-08uClibc locale "package"Alexey Neyman1-16/+23
Does not build, though. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-07-08Allow for custom archive namesAlexey Neyman1-8/+21
... and directories therein. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-07-08Fixes for buildingAlexey Neyman1-9/+9
- Need GDB8.0 milestone - Make uClibc "master" package - Rename bionic -> android-ndk to match the package name and support suffixes for archives Signed-off-by: Alexey Neyman <stilor@att.net>
2017-07-08Fix printing the branch used in GitAlexey Neyman1-2/+17
... and prefer exact specified name, if it exists. More bootstrap script specifications for packages. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-07-08Fix downloading released tarballsAlexey Neyman1-2/+2
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-07-08Builds comp.libs from VCSAlexey Neyman1-8/+28
... fails on DUMA because it cannot be compiled by newer C++, and patches are not applied to checkouts from VCS. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-07-08Building packages using the new frameworkAlexey Neyman1-493/+394
(fails at building GMP off the VCS because it needs to run bootstrap scripts) Signed-off-by: Alexey Neyman <stilor@att.net>
2017-07-08Downloading packages using new frameworkAlexey Neyman1-124/+212
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-07-08Fix the references to old config variablesAlexey Neyman1-34/+56
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-07-08Point bundled patches location to packages/Alexey Neyman1-5/+4
Also disable per-arch patch application: this doesn't play well with the reuse of the sources in .build/src Signed-off-by: Alexey Neyman <stilor@att.net>
2017-05-14Preliminary bionic/Android supporthyc1-0/+1
Mostly from Crystax NDK
2017-04-13Avoid creating symlinks with empty prefixAlexey Neyman1-1/+1
(regression after Cygwin fix) Signed-off-by: Alexey Neyman <stilor@att.net>
2017-04-10Make guidelines for bug reporting more explicitAlexey Neyman1-0/+7
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-04-01Fix symlinking to multiarch tools on CygwinAlexey Neyman1-1/+5
On cygwin, creating both "foo.exe" and "foo" results in 'ln -sf' returning an error ("File exists"). However, ln silently removes the "foo.exe" in this case, so an attempt to re-run the same command manually then succeeds. Hence, make binutils.sh also create symlinks with .exe prefix, using the new & shiny routine. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-21Add a release creation scriptAlexey Neyman1-1/+1
One TBD left is the signing of the tarballs. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-13Create ld.so.confAlexey Neyman1-8/+9
Also a fix for CT_IterateMultilibs: it didn't pass multi_os_dir_gcc, so it only worked if the caller did *not* declare it as a local variable. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-13Fix up ld.so symlinks for muslAlexey Neyman1-0/+87
Convert absolute targets to relative so that they are valid on the host, too. The procedure is very similar to uclibc, so it is moved into a common function. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-12Move tools alias creation to a common functionAlexey Neyman1-0/+53
... and in addition to final toolchain aliasing, use it when configuring multilibs for glibc/musl. Note that uClibc does not need it, it is explicitly selecting the tools using CROSS_PREFIX. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-04Do not pretend we're downloading anythingAlexey Neyman1-2/+2
... when we're actually don't. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-28Require xz to be presentAlexey Neyman1-19/+3
Some software starts to adopt xz-only distribution (strace, gcc-linaro, ...). Better that than deal with cryptic errors like "cannot find strace-.tar.bz2". Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-27Require GNU sedAlexey Neyman1-25/+25
After much struggling with macos (BSD) sed and even getting everything work in crosstool-ng itself, I had to abandon that because some components rely on GNU syntax. Specifically, GNU libc uses '/.../{H;g}' (note absense of the separator after 'g'). So, revert the -r/-E detection and check for sed's being of GNU origin. MacOS people, sorry, but you'd have to install GNU sed. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-27Revert "Determine whether -E/-r option selects extended regexp"Alexey Neyman1-29/+25
This reverts commit 7bcf18bfab84374d3305c7a088f95ac1219ddf93.
2017-02-14Determine whether -E/-r option selects extended regexpAlexey Neyman1-25/+29
... and then use the right option. See the note in scripts/functions on where we should use ${foo} and where just 'foo'; this boils down to whether we can expect the build tools override to be in effect (e.g. in the actual build scripts) or not (i.e. outside of scripts/build). While running in scripts/functions, or in scripts/crosstool-NG.sh the build tools override directory (.build/tools/bin) may have not been set up (yet, or at all). Also, modify the installed scripts (populate, xldd) accordingly. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-13stat: determine whether it is BSD or GNU flavorAlexey Neyman1-4/+4
Seems like MacOS may have either in the path. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-13Detect both wget/curl and allow user to select the agentAlexey Neyman1-18/+23
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-05Use 'make olddefconfig' in uClibc/uClibc-ng configurationAlexey Neyman1-8/+0
instead of 'make oldconfig' and responding 'y'. This avoids 'Broken pipe' errors in the log, as well as selects default setting for all options not explicitly set. This requires a small fix in the old uClibc. Won't have to maintain that fix for long though :) Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-30Allow for per-tool templates when creating overridesAlexey Neyman1-1/+1
... will be used to implement a smarter install wrapper. While there, correct the spelling of "OVERIDE". Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-25Fix log saving/restoringAlexey Neyman1-17/+19
after the CT_Log{Enable,Disable} changes. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-20Get rid of .config.2.Alexey Neyman1-9/+15
Now handled by CT_LoadConfig. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-20Install canadian crosses into a separate subdir.Alexey Neyman1-15/+75
Makes them sorted out by host, and removes the need for similar hack in samples.mk. Change how canadian crosses are named: using `=' character resulted in Glibc build failure. Move loading config into a common function, CT_LoadConfig. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-14Use ${CT_CC} instead of gcc ...Alexey Neyman1-6/+6
... when refering to target's compiler. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-13Unify fetching Linaro components.Alexey Neyman1-0/+34
Add CT_GetLinaro, use it from gcc/binutils/gdb/glibc/newlib. Signed-off-by: Alexey Neyman <stilor@att.net>
2016-12-18Catch more make errors.Alexey Neyman1-1/+1
Some errors from make(1) do not include a file reference in brackets. Signed-off-by: Alexey Neyman <stilor@att.net>
2016-12-17Pass original multi_os_dir to iterator.Alexey Neyman1-8/+13
This is needed for callbacks that use that directory to look inside GCC internal directories, e.g. moving the libraries. This broke when I made libexpat for target honor ${CT_SHARED_LIBS}. Signed-off-by: Alexey Neyman <stilor@att.net>
2016-12-06Work around Cygwin idiosyncrasy.Alexey Neyman1-1/+7
Cygwin doesn't like directory names ending with a dot, e.g. "multilib_." Signed-off-by: Alexey Neyman <stilor@att.net>
2016-11-21Partially revert 6f8e89cb5ca061e899bf3feaaf3fecf30d366c3e.Alexey Neyman1-25/+25
The referenced commit replaced 'make' with '${make}' everywhere. This is wrong for at least the utilities that we may build as companion tools (make, libtool): this will always invoke the version detected by configure by supplying the absolute path. In other words, the wrappers in .build/tools/bin are not fallbacks - they are either temporary (in case a respective companion tool is built) or permanent redirectors. This is the reason why the PATH= has .build/*/buildtools/bin at higher precedence than .build/tools/bin; the latter has the versions detected by configure and the former has the versions built as companion tools. Revert the rest of the gang (grep/sed/...) for consistency. After all, we may decide to supply some of them as well (awk, for instance). Signed-off-by: Alexey Neyman <stilor@att.net>