added binutils bootstrap step

This commit is contained in:
ag-tsotetsi
2026-02-07 13:57:12 +02:00
parent 6c3450475a
commit 9390758e42
3 changed files with 59 additions and 0 deletions

View File

52
build/binutils/build.bash Normal file
View File

@@ -0,0 +1,52 @@
. $PROJECTDIR/build/binutils/package.env
fetch $BINUTILS_URL
cd $SOURCES && tar xf binutils-$BINUTILS_VERSION.tar.xz && cd binutils-$BINUTILS_VERSION
bootstrap() {
mkdir -p build && cd build
../configure \
--prefix=$SYSROOT/tools \
--with-sysroot=$SYSROOT \
--target=$TARGET \
--disable-nls \
--enable-gprofng=no \
--disable-werror \
--enable-new-dtags \
--enable-default-hash-style=gnu > /dev/null
make > /dev/null && make install > /dev/null
}
toolchain() {
echo toolchain
}
setup() {
echo setup
}
final() {
echo final
}
case $1 in
bootstrap)
bootstrap
;;
toolchain)
toolchain
setup)
setup
;;
final)
final
;;
esac
cd $SOURCES && rm -rf $SOURCES/binutils-$BINUTILS_VERSION

View File

@@ -0,0 +1,7 @@
export BINUTILS_VERSION=2.45.1
IFS='.' read -r BINUTILS_VERSION_MAJOR BINUTILS_VERSION_MINOR BINUTILS_VERSION_PATCH <<< $BINUTILS_VERSION
export BINUTILS_VERSION_MAJOR BINUTILS_VERSION_MINOR BINUTILS_VERSION_PATCH
export BINUTILS_URL=https://mirror.ufs.ac.za/gnu/binutils/binutils-$BINUTILS_VERSION.tar.xz