Improvements

This commit is contained in:
TheBrokenRail 2025-03-20 01:19:00 -04:00
parent 3f7d42d692
commit 7a31138c8e
2 changed files with 21 additions and 4 deletions

View File

@ -5,4 +5,8 @@ cd "$(dirname "$0")"
# Build
cd workspace/build
exec ../crosstool-ng/bin/ct-ng build
for type in */; do
cd "${type}"
../../crosstool-ng/bin/ct-ng build
cd ../
done

View File

@ -3,6 +3,12 @@
set -e
cd "$(dirname "$0")"
# Check
if [ "$(uname -m)" != 'x86_64' ]; then
echo 'Unsupported Build System!' > /dev/stderr
exit 1
fi
# Versions
CT_NAME="crosstool-ng"
CT_VERSION="1.27.0"
@ -46,6 +52,13 @@ patch 9999-change-page-size.patch
export PATH="${PREFIX}/bin:${PATH}"
cd "${WORKSPACE}"
dir build
cp "${SRC}/defconfig" .
ct-ng defconfig
ct-ng show-config
prepare() {
dir "$1"
cp "${SRC}/defconfig" .
printf "$2" >> defconfig
ct-ng defconfig
ct-ng show-config
cd ../
}
prepare x86_64 ''
prepare aarch64 'CT_CANADIAN=y\nCT_HOST="aarch64-linux-gnu"\n# CT_ZSTD_NEEDED is not set\n'