From 7fe3f6a9fa63afd855b2d4a9177e5395f41b8b6c Mon Sep 17 00:00:00 2001 From: ag-tsotetsi Date: Fri, 20 Feb 2026 13:03:15 +0200 Subject: [PATCH] added binutils toolchain build --- build.sh | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 42dc3d0..40e865e 100755 --- a/build.sh +++ b/build.sh @@ -518,6 +518,32 @@ toolchain_xz() { cd "$SOURCES" && rm -rf xz-$XZ_VERSION } +toolchain_binutils() { + cd "$SOURCES" && tar xf binutils-$BINUTILS_VERSION.tar.xz && cd binutils-$BINUTILS_VERSION + + sed '6031s/$add_dir//' -i ltmain.sh + + mkdir -p build && cd build + + ../configure \ + --prefix=/usr \ + --build=$(../config.guess) \ + --host=$TARGET \ + --disable-nls \ + --enable-shared \ + --enable-gprofng=no \ + --disable-werror \ + --enable-64-bit-bfd \ + --enable-new-dtags \ + --enable-default-hash-style=gnu + + make && make DESTDIR="$SYSROOT" install + + rm "$SYSROOT"/usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes,sframe}.{a,la} + + cd "$SOURCES" && rm -rf binutils-$BINUTILS_VERSION +} + #bootstrap_binutils #bootstap_gcc #bootstap_linux @@ -537,4 +563,5 @@ toolchain_xz() { #toolchain_patch #toolchain_sed #toolchain_tar -toolchain_xz \ No newline at end of file +#toolchain_xz +toolchain_binutils \ No newline at end of file