summaryrefslogtreecommitdiff
path: root/scripts/functions
AgeCommit message (Collapse)AuthorFilesLines
2022-02-11Retire obsoleted milestonesAlexey Neyman1-1/+1
... and the code dependent on them, after the latest wave of obsolete package removals. This concludes the glorious history of the original uClibc (non-NG) with lots of kludges removed. There was a choice here, whether to call the resulting libc "uClibc" or "uClibc-ng". I opted in favor of giving uClibc-ng the recognition it deserves, although it had some ripple effect in the ct-ng code. Signed-off-by: Alexey Neyman <stilor@att.net>
2021-07-13Support common local patch directoryStephanos Ioannidis1-3/+5
This commit updates the patching process such that the local patches can be applied in a version-independent manner, as with the patches provided by the crosstool-ng packages. This is done by reading the patch files from `${CT_LOCAL_PATCH_DIR}/(package_name)` rather than from `${CT_LOCAL_PATCH_DIR}/(package_name)/(version)`. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-07-06CT_Mirrors: make use of kernel cdnChris Packham1-6/+5
cdn.kernel.org automatically redirects to a geographically close mirror. Make use of this instead of www.kernel.org or mirrors.edge.kernel.org. While were at it make sure we use https. Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-05-06scripts/functions: Add better support for annotanted git tagsChristoph Muellner1-1/+7
Annotated git tags are git objects with their own ID. They contain the commit ID where they point to. When downloading from annotated tags, we currently get the following warning: "Revision being fetched changed to ${new_unique_id};" The old unique_id is the ID of the annotated tag and the new unique_id is the commit it points to. Let's resolve this by first assuming to have an annotated tag and let git ls-remote dereference it. If that fails (e.g. if it can't be dereferenced because it is not an annotated tag), then let's proceed as before and don't do any dereferencing. Signed-off-by: Christoph Muellner <cmuellner@linux.com>
2020-09-20Merge branch 'picolibc-multiarch' of ↵Chris Packham1-1/+1
git://github.com/keith-packard/crosstool-ng into master
2020-09-16Map picolibc to suitable CT_TARGET_SYS valuesKeith Packard1-1/+1
picolibc is another bare-metal C library, and so should be mapped to CT_TARGET_SYS just like newlib does. Signed-off-by: Keith Packard <keithp@keithp.com>
2020-09-10Patches: search package patches in the top package directoryMikhail Falaleev1-3/+5
Before patches for specific package were searched in packages/${pkg_name}/${version}. This means that with usage of custom version, patches wont be applied. This commit makes ct-ng search bundled patches also in packages/${pkg_name} directory. That means that we can put some patches in this directory, that will be applied to any version of this component.
2020-02-26Set --with-cpu-{32,64} for multilib buildsAlexey Neyman1-11/+33
GLIBC 2.31 needs --with-cpu=ultrasparc for both 32/64-bits now, and --with-cpu only sets the CPU model for the "primary" bitness. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-10-02Add Linux versionsAlexey Neyman1-1/+1
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-01Make lzip an optional dependencyAlexey Neyman1-2/+14
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-20Add debug output to Kconfig manipulation functionsAlexey Neyman1-0/+3
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-14Improve error detectionAlexey Neyman1-7/+9
... by filtering the messages that contain a *word* "warning" or "error", i.e. is preceded by a space or is at the beginning of the line. This improves the output from new uClibc-ng releases - which produce a warning about an unused label, `mprot_error`. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-13Implement an option to store downloads in subdirsAlexey Neyman1-17/+40
... following the buildroot model. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-01-23Coding style fixes in functionsDima Krasner1-3/+3
Signed-off-by: Dima Krasner <dima@dimakrasner.com>
2019-01-23Moved uClibc configuration installation to uClibc.shDima Krasner1-0/+11
Signed-off-by: Dima Krasner <dima@dimakrasner.com>
2019-01-15Dump how multilib iterator is invokedAlexey Neyman1-0/+6
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-10Add config flags for omitting 'arch' and 'vendor'Alexey Neyman1-18/+32
... parts of the config tuple. While here, remove parts that are setting portions of the target tuple to a value that's already the default. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-07Set ALL_TARGET_CFLAGS initially for !MULTILIBAlexey Neyman1-3/+6
Fixes #1107. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-01Consider it success if DoForceRmdir removes only the contentAlexey Neyman1-21/+27
Fixes #929. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-01Add moxiebox as a choice for libcAlexey Neyman1-19/+7
This required some rework of the libc selection, as moxiebox is a layer on top of another libc - newlib. Also, moxiebox'es host VM (`sandbox`) needs a libcrypto on the host. We will not have it if we're cross-compiling a canadian cross. Fortunately, all moxiebox needs from libcrypto is SHA256, and it already includes a standalone implementation of SHA256 in its runtime. Provide a little wrapper that allows moxiebox use that implementation for the host binary, too. Also, automate collecting/printing the list of all packages in a given category (e.g. LIBC or COMP_TOOLS), generate a list of all Kconfig symbols for a given category. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-11-28Add moxie architectureAlexey Neyman1-5/+10
and a moxie-unknown-elf target (which is what #1088 apparently wanted). Signed-off-by: Alexey Neyman <stilor@att.net>
2018-11-28Add DTC as a companion toolAlexey Neyman1-17/+24
(needed for cross-gdb targeting the moxie-* targets) Signed-off-by: Alexey Neyman <stilor@att.net>
2018-11-12Fix installation of the license fileAlexey Neyman1-12/+6
... for ct-ng configured without --enable-local. Also, install licenses in subdirectories of the components. Also, ct-ng configured with --enable-local removed the scripts directory upon `ct-ng distclean`. Also, misspelled CT_WGET/CT_CURL variables prevented use of `ct-ng updatetools`. Fixes #1091. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-11-07Merge pull request #1084 from antmak/collect_licencesAlexey Neyman1-0/+31
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 Maklakov1-0/+31
2018-11-01Add an ability to modify an exported variableAlexey Neyman1-2/+8
... 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-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>