diff options
author | Samuel Johnson <[email protected]> | 2025-06-03 01:01:56 -0400 |
---|---|---|
committer | Samuel Johnson <[email protected]> | 2025-06-03 01:01:56 -0400 |
commit | 6ea5ad333ab5376a834b0fdbc9cdecfe04dacc10 (patch) | |
tree | 3564641e1b565348bd8554ae0fe84116fa0413aa |
But it was a beginning
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | .gitignore.swp | bin | 0 -> 12288 bytes | |||
-rw-r--r-- | limine.conf | 0 | ||||
-rwxr-xr-x | toolchain/binutils.sh | 28 | ||||
-rwxr-xr-x | toolchain/limine.sh | 4 |
5 files changed, 34 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd8ceee --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +vendor/ +build/ diff --git a/.gitignore.swp b/.gitignore.swp Binary files differnew file mode 100644 index 0000000..4dab676 --- /dev/null +++ b/.gitignore.swp diff --git a/limine.conf b/limine.conf new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/limine.conf diff --git a/toolchain/binutils.sh b/toolchain/binutils.sh new file mode 100755 index 0000000..5881dbb --- /dev/null +++ b/toolchain/binutils.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e +set -x + +SCRIPT=$(realpath "$0") +SCRIPTPATH=$(dirname "$SCRIPT") +cd "$SCRIPTPATH" + +export PREFIX="$HOME/opt/cross" +export SYSROOT="$SCRIPTPATH/../target" +export PATH="$PREFIX/bin:$PATH" +mkdir -p temp +cd temp + +wget -nc https://ftp.gnu.org/gnu/binutils/binutils-2.43.tar.gz +tar xpvf binutils-2.43.tar.gz + +mkdir -p binutils-2.43/build_amd + +cd binutils-2.43/build_amd + +../configure --target="x86_64-elf" --enable-targets="x86_64-elf" --prefix="$PREFIX" --with-sysroot --disable-nls +make -j$(nproc) +make install + +cd ../../../ +rm -rf temp diff --git a/toolchain/limine.sh b/toolchain/limine.sh new file mode 100755 index 0000000..570968a --- /dev/null +++ b/toolchain/limine.sh @@ -0,0 +1,4 @@ +git clone https://github.com/limine-bootloader/limine.git vendor/limine --branch=v8.7.0-binary --depth=1 +cd vendor/limine +make clean +make all |