diff options
author | Anton Kling <anton@kling.gg> | 2023-10-30 22:54:28 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-10-31 00:18:38 +0100 |
commit | 6c0e142409d57c11fc03bcbc3d79a4d646f885ff (patch) | |
tree | fa925bac319193d203b8697592dc18c117ca617c /toolchain | |
parent | 34342b53c39aa3f22326b6e4eda960cc20cfa0f0 (diff) |
Meta: Create a simple toolchain compilation script
Diffstat (limited to 'toolchain')
-rwxr-xr-x | toolchain/build-binutils.sh | 5 | ||||
-rwxr-xr-x | toolchain/build-gcc.sh | 5 |
2 files changed, 4 insertions, 6 deletions
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 |