From 6c0e142409d57c11fc03bcbc3d79a4d646f885ff Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Mon, 30 Oct 2023 22:54:28 +0100 Subject: Meta: Create a simple toolchain compilation script --- toolchain/build-binutils.sh | 5 ++--- toolchain/build-gcc.sh | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'toolchain') diff --git a/toolchain/build-binutils.sh b/toolchain/build-binutils.sh index 12bcde9..abd3fce 100755 --- a/toolchain/build-binutils.sh +++ b/toolchain/build-binutils.sh @@ -5,9 +5,8 @@ cd ./binutils-*/ patch -f -p1 -i ../binutils-2.40.diff cd .. mkdir bin -#PREFIX="/home/anton/prj/osdev/sysroot" PREFIX="$(pwd)/bin" mkdir build-binutils cd build-binutils -../binutils*/configure --target=i686-sb --prefix="$PREFIX" --with-sysroot="/home/anton/prj/osdev/sysroot" --disable-werror -make -j8 && make install +../binutils*/configure --target=i686-sb --prefix="$PREFIX" --with-sysroot="$(pwd)/../../sysroot" --disable-werror +make -j$(nproc) && make install diff --git a/toolchain/build-gcc.sh b/toolchain/build-gcc.sh index c9af8a1..f790505 100755 --- a/toolchain/build-gcc.sh +++ b/toolchain/build-gcc.sh @@ -6,8 +6,7 @@ patch -f -p1 -i ../gcc-13.1.0.diff cd .. mkdir bin PREFIX=$(pwd)"/bin" -#PREFIX="/home/anton/prj/osdev/sysroot" mkdir build-gcc cd build-gcc -../gcc-*/configure --target=i686-sb --prefix="$PREFIX" --with-gmp --with-mpfr --with-sysroot="/home/anton/prj/osdev/sysroot" --enable-languages=c,c++ -make -j6 all-gcc all-target-libgcc && make install-gcc install-target-libgcc +../gcc-*/configure --target=i686-sb --prefix="$PREFIX" --with-gmp --with-mpfr --with-sysroot="$(pwd)/../../sysroot" --enable-languages=c,c++ +make -j$(nproc) all-gcc all-target-libgcc && make install-gcc install-target-libgcc -- cgit v1.2.3