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 --- meta/toolchain.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 meta/toolchain.sh (limited to 'meta/toolchain.sh') 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 -- cgit v1.2.3