aboutsummaryrefslogtreecommitdiff
path: root/scripts/functions
Commit message (Collapse)AuthorAgeFilesLines
...
* A few fixes for showSamplesAlexey Neyman2017-11-191-14/+29
| | | | | | | | - 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>
* scripts/functions: add CT_GetPkgBuildVersionSergey Korolev2017-11-191-0/+22
| | | | | | This allows to get a configured custom version of a package. Signed-off-by: Sergey Korolev <s.korolev@ndmsystems.com>
* When handling overlay, move rather than symlinkAlexey Neyman2017-10-201-1/+5
| | | | | | | | ... as 'tar' does not follow symlink, rather creating a new directory instead. Fixes #846. Signed-off-by: Alexey Neyman <stilor@att.net>
* Do not change {pkg}_VERSIONAlexey Neyman2017-10-011-21/+18
| | | | | | | | Instead, use new variable ${pkg_dir} to locate auxiliary files. Fixes #838. Signed-off-by: Alexey Neyman <stilor@att.net>
* Add digests for all packagesAlexey Neyman2017-09-291-8/+20
| | | | | | | Also fix test-packages: it was saving the output from CT_DoLog into the checksum file. Also use one file per version. Signed-off-by: Alexey Neyman <stilor@att.net>
* Add an ability to verify the digest/signatureAlexey Neyman2017-09-271-43/+167
| | | | | | Fixes #611. Signed-off-by: Alexey Neyman <stilor@att.net>
* Workaround for static uClibc-ng issue with -lpthreadAlexey Neyman2017-09-031-1/+15
| | | | | | Also, preserve .config when running test-package.sh. Signed-off-by: Alexey Neyman <stilor@att.net>
* Super-H multilib toolchain fixesAlexey Neyman2017-09-031-5/+19
| | | | | | | | | | | | | | | 1. On SuperH, configuring GCC with explicit variant of the CPU (like "sh4") limits the default set of multilibs to just that CPU and requires --with-multilib-list to change. Allow for "unspecified" variant, so that we can defer to GCC to determine the list. 2. Support toolchains with both endiannesses at the same time. 3. Add a SuperH/newlib sample 4. Add more flags processing for uClibc Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix glibc-ports with the new frameworkAlexey Neyman2017-08-261-58/+85
| | | | | | | While here, also consider patched by anything other than "bundled patches" as per-target sources. Add scary warnings in case of a failure. Signed-off-by: Alexey Neyman <stilor@att.net>
* Implement a script for checking packagesAlexey Neyman2017-08-231-4/+1
| | | | | | Then use this script to check that all packages can be extracted and patched. Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix PPC64LE by supplying --with-glibc-versionAlexey Neyman2017-08-221-0/+15
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Save export status for environment varsAlexey Neyman2017-08-211-13/+42
| | | | | | | | ... and limit our modifications to our variables. Fixes #762. Signed-off-by: Alexey Neyman <stilor@att.net>
* Check for config file changes when restartingAlexey Neyman2017-08-211-0/+7
| | | | | | | | Also, save/restore per-target source directory. Fixes #800. Signed-off-by: Alexey Neyman <stilor@att.net>
* Use per-package list of formats to determine downloadsAlexey Neyman2017-08-191-61/+36
| | | | | | Fixes #789 Signed-off-by: Alexey Neyman <stilor@att.net>
* Record tarball formatsAlexey Neyman2017-08-181-0/+4
| | | | | | Also, missed upgrades of gmp, isl, mingw-w64 Signed-off-by: Alexey Neyman <stilor@att.net>
* Merge pull request #801 from stilor/regressionsAlexey Neyman2017-08-161-1/+1
|\ | | | | Regressions
| * Fix DoLog -> DoExecLogAlexey Neyman2017-08-161-1/+1
| | | | | | | | | | | | Fixes #788. Signed-off-by: Alexey Neyman <stilor@att.net>
* | scripts: remove superfluous dotKirill Smirnov2017-08-031-2/+2
|/ | | | | | | Tarball extensions list already contains leading dot, do not add another one. Signed-off-by: Kirill Smirnov <kirill.k.smirnov@gmail.com>
* Fix archive yymm directoryAlexey Neyman2017-07-171-0/+1
| | | | | | In case there is a "patchlevel" suffix. Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix linaro downloaderAlexey Neyman2017-07-171-1/+1
| | | | | | Fixes #779. Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix new framework for running from installed pathAlexey Neyman2017-07-161-1/+1
| | | | | | Fixes #777 Signed-off-by: Alexey Neyman <stilor@att.net>
* Resolve a few more TBDsAlexey Neyman2017-07-091-4/+3
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix xtensa overlaysAlexey Neyman2017-07-081-12/+24
| | | | | | They are unpacked properly, but fail during build. Signed-off-by: Alexey Neyman <stilor@att.net>
* Some locations were missed while renaming kconfig symbolsAlexey Neyman2017-07-081-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>
* Allow VCS versions to be patched via some unique revision IDAlexey Neyman2017-07-081-37/+39
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* uClibc locale "package"Alexey Neyman2017-07-081-16/+23
| | | | | | Does not build, though. Signed-off-by: Alexey Neyman <stilor@att.net>
* Allow for custom archive namesAlexey Neyman2017-07-081-8/+21
| | | | | | ... and directories therein. Signed-off-by: Alexey Neyman <stilor@att.net>
* Fixes for buildingAlexey Neyman2017-07-081-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>
* Fix printing the branch used in GitAlexey Neyman2017-07-081-2/+17
| | | | | | | ... and prefer exact specified name, if it exists. More bootstrap script specifications for packages. Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix downloading released tarballsAlexey Neyman2017-07-081-2/+2
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Builds comp.libs from VCSAlexey Neyman2017-07-081-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>
* Building packages using the new frameworkAlexey Neyman2017-07-081-493/+394
| | | | | | (fails at building GMP off the VCS because it needs to run bootstrap scripts) Signed-off-by: Alexey Neyman <stilor@att.net>
* Downloading packages using new frameworkAlexey Neyman2017-07-081-124/+212
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix the references to old config variablesAlexey Neyman2017-07-081-34/+56
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Point bundled patches location to packages/Alexey Neyman2017-07-081-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>
* Preliminary bionic/Android supporthyc2017-05-141-0/+1
| | | | Mostly from Crystax NDK
* Avoid creating symlinks with empty prefixAlexey Neyman2017-04-131-1/+1
| | | | | | (regression after Cygwin fix) Signed-off-by: Alexey Neyman <stilor@att.net>
* Make guidelines for bug reporting more explicitAlexey Neyman2017-04-101-0/+7
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix symlinking to multiarch tools on CygwinAlexey Neyman2017-04-011-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>
* Add a release creation scriptAlexey Neyman2017-03-211-1/+1
| | | | | | One TBD left is the signing of the tarballs. Signed-off-by: Alexey Neyman <stilor@att.net>
* Create ld.so.confAlexey Neyman2017-03-131-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>
* Fix up ld.so symlinks for muslAlexey Neyman2017-03-121-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>
* Move tools alias creation to a common functionAlexey Neyman2017-03-121-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>
* Do not pretend we're downloading anythingAlexey Neyman2017-03-031-2/+2
| | | | | | ... when we're actually don't. Signed-off-by: Alexey Neyman <stilor@att.net>
* Require xz to be presentAlexey Neyman2017-02-271-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>
* Require GNU sedAlexey Neyman2017-02-261-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>
* Revert "Determine whether -E/-r option selects extended regexp"Alexey Neyman2017-02-261-29/+25
| | | | This reverts commit 7bcf18bfab84374d3305c7a088f95ac1219ddf93.
* Determine whether -E/-r option selects extended regexpAlexey Neyman2017-02-131-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>
* stat: determine whether it is BSD or GNU flavorAlexey Neyman2017-02-121-4/+4
| | | | | | Seems like MacOS may have either in the path. Signed-off-by: Alexey Neyman <stilor@att.net>
* Detect both wget/curl and allow user to select the agentAlexey Neyman2017-02-121-18/+23
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>