summaryrefslogtreecommitdiff
path: root/scripts/functions
AgeCommit message (Collapse)AuthorFilesLines
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-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-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-09-28Fix up timestamps after patchingAlexey Neyman1-0/+14
... so that autotools-based packages do not re-run autoconf/autoheader/automake. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-06-06Make patch order overridable by individual packagesAlexey Neyman1-3/+8
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-04-07Support out-of-tree local buildsAlexey Neyman1-2/+15
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-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>
2017-11-30Make comp.libs use generated templates, tooAlexey Neyman1-9/+33
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-20A few fixes for showSamplesAlexey Neyman1-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>
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-10-20When handling overlay, move rather than symlinkAlexey Neyman1-1/+5
... as 'tar' does not follow symlink, rather creating a new directory instead. Fixes #846. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-10-01Do not change {pkg}_VERSIONAlexey Neyman1-21/+18
Instead, use new variable ${pkg_dir} to locate auxiliary files. Fixes #838. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-09-30Add digests for all packagesAlexey Neyman1-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>
2017-09-28Add an ability to verify the digest/signatureAlexey Neyman1-43/+167
Fixes #611. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-09-03Workaround for static uClibc-ng issue with -lpthreadAlexey Neyman1-1/+15
Also, preserve .config when running test-package.sh. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-09-03Super-H multilib toolchain fixesAlexey Neyman1-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>
2017-08-26Fix glibc-ports with the new frameworkAlexey Neyman1-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>
2017-08-23Implement a script for checking packagesAlexey Neyman1-4/+1
Then use this script to check that all packages can be extracted and patched. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-22Fix PPC64LE by supplying --with-glibc-versionAlexey Neyman1-0/+15
Signed-off-by: Alexey Neyman <stilor@att.net>
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>