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 /meta/toolchain.sh | |
parent | 34342b53c39aa3f22326b6e4eda960cc20cfa0f0 (diff) |
Meta: Create a simple toolchain compilation script
Diffstat (limited to 'meta/toolchain.sh')
-rwxr-xr-x | meta/toolchain.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/toolchain.sh b/meta/toolchain.sh new file mode 100755 index 0000000..c50008f --- /dev/null +++ b/meta/toolchain.sh @@ -0,0 +1,13 @@ +#!/bin/sh +# This script compiles the operating system toolchain(GCC, Binutils) +scriptdir="$(dirname "$0")" +cd "$scriptdir" +cd .. + +# Install the headers from LibC +mkdir -p ./sysroot/usr/include/ +cp -r ./userland/libc/include ./sysroot/usr/ + +cd ./toolchain/ +./build-binutils.sh +./build-gcc.sh |