diff options
author | Anton Kling <anton@kling.gg> | 2023-10-22 19:50:38 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-10-22 19:50:38 +0200 |
commit | 4e09bca9e34c226b6d7e34b4fa11248405fd988e (patch) | |
tree | 80f156b7940d9d19971395f335530170c69516c7 /toolchain/build-binutils.sh |
Move everything into a new repo.
Diffstat (limited to 'toolchain/build-binutils.sh')
-rwxr-xr-x | toolchain/build-binutils.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/toolchain/build-binutils.sh b/toolchain/build-binutils.sh new file mode 100755 index 0000000..12bcde9 --- /dev/null +++ b/toolchain/build-binutils.sh @@ -0,0 +1,13 @@ +#!/bin/sh +./download-binutils.sh +tar -xf binutils*.tar.xz +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 |