aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
Commit message (Collapse)AuthorAgeFilesLines
* Add mold linker buildArnaud Vrac2024-06-051-0/+1
| | | | | | | | | | | | | | | Allows building the #mold linker, which can then be used in the cross-toolchain by passing the -fuse-ld=mold to the gcc flags. It is much faster than ld or gold. This requires a C++20 compiler and cmake. Initially implemented by Arnaud, and HC added configure check for cmake. Outstanding task to validate compiler is C++20 compatible. Signed-off-by: Arnaud Vrac <avrac@freebox.fr> Signed-off-by: Hans-Christian Noren Egtvedt <egtvedt@samfundet.no>
* bootstrap: follow symlinksKirill K. Smirnov2023-08-041-1/+1
| | | | | | | | newlib-nano package shares patches with newlib package via symlinks. If a user chooses local setup (--enable-local) it works perfectly, but if a user chooses normal setup (make install), the links are lost. Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
* Add option for experimental bundled patchesBryan Hundven2023-03-161-0/+2
| | | | | | | | | | | | | | | | | | This adds 3 new options to patch order: * bundled + bundled_exp * bundled + bundled_exp + local * local + bundled + bundled_exp The path for bundled experimental patches is: ${CT_LIB_DIR}/packages/${pkg_dir}/experimental and patches that are still being reviewed, but not yet applied upstream may be toggled with ENABLE_EXPERIMENTAL_BUNDLED_PATCHES. Also fix modelines for editors on bootstrap and scripts/functions, and fix mix whitespace in scripts/functions. Closes: #1916 Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* Fix mixed indent in bootstrapBryan Hundven2022-06-271-8/+9
| | | | | | | Tabs or spaces... I believe the policy on ct-ng is spaces for shell scripts. So update bootstrap to stick to 4 space indent. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* bootstrap: Escape mirrorsChris Packham2021-02-021-0/+2
| | | | | | | When we have mirrors set to $(CT_Mirror foo bar) we need some extra escaping so that they get interpreted correctly by kconfig. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* Support released versions from Git branchesEgeyar2020-11-231-1/+8
| | | | | | | | | | | | | | | * Do not assume a release has a tarball if src_release is set to "n". * Do not assume versions in repositories are all experimental. * Allow versions to define their default repository_branch, repository_cset, repository_subdir and bootstrap. * Do not expect mirrors, archive_filename, archive_dirname, archive_formats and signature_format from a version if src_release is set to "n". * Add version_number to allow version names to be different than the version number. When given, use version_number to compare against the milestones. Signed-off-by: Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
* Merge branch 'unused' of git://github.com/jubalh/crosstool-ng into jubalh-unusedChris Packham2020-09-061-2/+1
|\
| * Remove unused variables in bootstrapMichael Vetter2020-08-211-2/+1
| | | | | | | | cmp, u1, u2 seem not to be used at all.
* | Merge pull request #1361 from mjsir911/cdpathChris Packham2020-08-301-0/+3
|\ \ | | | | | | Unset CDPATH for duration of bootstrap script
| * | Unset CDPATH for duration of bootstrap scriptMarco Sirabella2020-07-101-0/+3
| |/ | | | | | | | | | | | | CDPATH causes the `cd` command to output the directory it's going into sometimes. This actually fixes #849, I got bit by this
* / fix bootstrap for old autoconf versionsNorbert Lange2019-10-101-2/+2
|/ | | | | | atleast debian wheezy is affected Signed-off-by: Norbert Lange <nolange79@gmail.com>
* Do not include config/configure.in into the release tarballAlexey Neyman2019-04-041-3/+3
| | | | | | Fixes #1176 Signed-off-by: Alexey Neyman <stilor@att.net>
* Check if two versions conflictAlexey Neyman2019-02-131-6/+20
| | | | | | by resolving to the same "relevant" portion. Signed-off-by: Alexey Neyman <stilor@att.net>
* Use enhanced framework for 'ct-ng update-samples'Alexey Neyman2019-02-091-1/+1
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Ignore vim swap files while generating the file listAlexey Neyman2019-01-271-0/+4
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Add moxiebox as a choice for libcAlexey Neyman2018-12-011-26/+60
| | | | | | | | | | | | | | | | | 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>
* Include testing/ into the release.Alexey Neyman2018-11-261-6/+1
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix installation of the license fileAlexey Neyman2018-11-121-1/+1
| | | | | | | | | | | | | | | ... 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>
* config.sub/config.guess must either be executableAlexey Neyman2018-04-071-1/+6
| | | | | | or be run through shell Signed-off-by: Alexey Neyman <stilor@att.net>
* Kill gperf vestigesAlexey Neyman2018-04-071-0/+6
| | | | | | Generate paths.sh by configure, do away with paths.mk. Signed-off-by: Alexey Neyman <stilor@att.net>
* Ignore/modify the list of installed files to matchAlexey Neyman2018-04-071-0/+12
| | | | | | what was installed before. Signed-off-by: Alexey Neyman <stilor@att.net>
* Install "pure data" directoriesAlexey Neyman2018-04-071-0/+9
| | | | | | ... and update .gitignore. Survives 'make distcheck'. Signed-off-by: Alexey Neyman <stilor@att.net>
* Split local helper macros into separate m4'sAlexey Neyman2018-04-071-2/+2
| | | | | | ... which are then picked up via aclocal. Signed-off-by: Alexey Neyman <stilor@att.net>
* Use /usr/bin/env to locate bashXidorn Quan2018-01-061-1/+1
| | | On some systems (e.g. macOS), the bash provided by the system at `/bin/bash` is not new enough for the bootstrap script, while users may install a bash instance elsewhere. In that case, `/usr/bin/env` can get the bash in the current environment.
* Make comp.libs use generated templates, tooAlexey Neyman2017-11-291-11/+29
| | | | | | | | 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>
* A few fixes for showSamplesAlexey Neyman2017-11-191-1/+1
| | | | | | | | - 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>
* Add an ability to verify the digest/signatureAlexey Neyman2017-09-271-0/+1
| | | | | | Fixes #611. Signed-off-by: Alexey Neyman <stilor@att.net>
* Allow loops to skip entries if certain variable is keptAlexey Neyman2017-08-241-7/+37
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Add "postprocessing" to substituted variablesAlexey Neyman2017-08-241-24/+39
| | | | | | ... and reduce the number of variables defined explicitly. Signed-off-by: Alexey Neyman <stilor@att.net>
* Implement a script for checking packagesAlexey Neyman2017-08-231-1/+4
| | | | | | Then use this script to check that all packages can be extracted and patched. Signed-off-by: Alexey Neyman <stilor@att.net>
* Require bash4 to run bootstrapAlexey Neyman2017-08-181-0/+6
| | | | | | | | Fixes #797 (or, at least makes it fail gracefully with an advice) Signed-off-by: Alexey Neyman <stilor@att.net>
* Resolve a few more TBDsAlexey Neyman2017-07-091-2/+0
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Separate the notions of package name/labelAlexey Neyman2017-07-081-1/+2
| | | | | | Also, remove resolved TBDs. Signed-off-by: Alexey Neyman <stilor@att.net>
* .in.2 files no longer generatedAlexey Neyman2017-07-081-1/+1
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Allow packages to define "relevant" part of the versionAlexey Neyman2017-07-081-4/+20
| | | | | | | | E.g., only include minor/major of the Linux kernel into the kconfig symbol. In the future, to be defined by all packages, but for now matches the current versioning in the packages. Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix bootstrap to work with bash 4.3Alexey Neyman2017-07-081-3/+15
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Kconfigize choice/menu itemsAlexey Neyman2017-07-081-1/+1
| | | | | | Also, add a poor man's upgrade script. Signed-off-by: Alexey Neyman <stilor@att.net>
* Switch gen-kconfig to new frameworkAlexey Neyman2017-07-081-9/+640
| | | | | | | | | | | | | | | Also: - Move companion_* to comp_* to match the kconfig symbols - Replace bootstrap with former gen-versions.sh - Fold *.in.2 into their respective first parts; this moves common options to the end - if it is undesirable, inclusion of *.in can be moved where *.in.2 used to be (but that will also move version selection after common options). - Retire addToolVersion.sh (may later replace with a more comprehensive script that tries to download the added tarballs, copy the patches and try to apply them, and create a version.desc). Signed-off-by: Alexey Neyman <stilor@att.net>
* First stab at gen-versions.shAlexey Neyman2017-07-081-1/+4
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Get rid of config.genAlexey Neyman2017-04-221-0/+3
| | | | | | | | | Instead, prepare the files as a part of bootstrap and install them. This avoids rebuilding these files in each working directory; they don't change anyway as they are generated from the same installed source. Signed-off-by: Alexey Neyman <stilor@att.net>
* configure: use autoconf to generate configureYann E. MORIN"2011-11-071-0/+7
Create configure.ac, an autoconf script to generate ./configure This will be needed by a subsequent patch to properly handle --build and --host, and more tests, when the kconfig stuff will be installed pre-built. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>