Move root to separate directory

This commit is contained in:
Alex Kotov 2022-01-17 23:06:32 +05:00
parent 49b6732343
commit f6b09497ee
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
12 changed files with 25 additions and 16 deletions

View File

@ -8,7 +8,7 @@ if [ -f "$REPO/Makefile" ]; then make -C "$REPO" distclean; fi
ARCH='i386'
HOST="$ARCH-elf"
PREFIX="$REPO/dest/dev-cross-$ARCH"
CROSS="$REPO/vendor/cross/bin/$HOST"
CROSS="$REPO/vendor/cross/root/bin/$HOST"
export AR="$CROSS-ar"
export CC="$CROSS-gcc"

View File

@ -8,7 +8,7 @@ if [ -f "$REPO/Makefile" ]; then make -C "$REPO" distclean; fi
ARCH='riscv64'
HOST="$ARCH-elf"
PREFIX="$REPO/dest/dev-cross-$ARCH"
CROSS="$REPO/vendor/cross/bin/$HOST"
CROSS="$REPO/vendor/cross/root/bin/$HOST"
export AR="$CROSS-ar"
export CC="$CROSS-gcc"

View File

@ -8,7 +8,7 @@ if [ -f "$REPO/Makefile" ]; then make -C "$REPO" distclean; fi
ARCH='x86_64'
HOST="$ARCH-elf"
PREFIX="$REPO/dest/dev-cross-$ARCH"
CROSS="$REPO/vendor/cross/bin/$HOST"
CROSS="$REPO/vendor/cross/root/bin/$HOST"
export AR="$CROSS-ar"
export CC="$CROSS-gcc"

View File

@ -1,6 +1,6 @@
all: run
CCPREFIX = ../../vendor/cross/bin/riscv64-elf-
CCPREFIX = ../../vendor/cross/root/bin/riscv64-elf-
AS = $(CCPREFIX)as
CC = $(CCPREFIX)gcc

View File

@ -1,6 +1,6 @@
all: test
CCPREFIX = ../../vendor/cross/bin/i386-elf-
CCPREFIX = ../../vendor/cross/root/bin/i386-elf-
AS = $(CCPREFIX)as
CC = $(CCPREFIX)gcc

View File

@ -1,6 +1,6 @@
all: test
CCPREFIX = ../../vendor/cross/bin/i386-elf-
CCPREFIX = ../../vendor/cross/root/bin/i386-elf-
AS = $(CCPREFIX)as
CC = $(CCPREFIX)gcc

View File

@ -1,6 +1,6 @@
all: test
CCPREFIX = ../../vendor/cross/bin/x86_64-elf-
CCPREFIX = ../../vendor/cross/root/bin/x86_64-elf-
AS = $(CCPREFIX)as
CC = $(CCPREFIX)gcc

View File

@ -1,6 +1,9 @@
/src/*
!/src/.keep
/root/*
!/root/.keep
/build/i386/binutils/*
!/build/i386/binutils/.keep
/build/i386/gcc/*

View File

@ -6,16 +6,18 @@ REPO="$(realpath "$(dirname "$(realpath "$0")")/../..")"
ARCH='i386'
TARGET="$ARCH-elf"
PATH="$REPO/bin:$PATH"
ROOT="$REPO/root"
PATH="$ROOT/bin:$PATH"
if [ -z "$J" ]; then J='1'; fi
cd "$REPO/build/$ARCH/binutils"
"$REPO/src/binutils-2.37/configure" --target="$TARGET" --prefix="$REPO" --with-sysroot --disable-nls --disable-werror
"$REPO/src/binutils-2.37/configure" --target="$TARGET" --prefix="$ROOT" --with-sysroot --disable-nls --disable-werror
make -j"$J"
make install
cd "$REPO/build/$ARCH/gcc"
"$REPO/src/gcc-11.2.0/configure" --target="$TARGET" --prefix="$REPO" --disable-nls --enable-languages=c,c++ --without-headers
"$REPO/src/gcc-11.2.0/configure" --target="$TARGET" --prefix="$ROOT" --disable-nls --enable-languages=c,c++ --without-headers
make -j"$J" all-gcc all-target-libgcc
make install-gcc install-target-libgcc

View File

@ -6,16 +6,18 @@ REPO="$(realpath "$(dirname "$(realpath "$0")")/../..")"
ARCH='riscv64'
TARGET="$ARCH-elf"
PATH="$REPO/bin:$PATH"
ROOT="$REPO/root"
PATH="$ROOT/bin:$PATH"
if [ -z "$J" ]; then J='1'; fi
cd "$REPO/build/$ARCH/binutils"
"$REPO/src/binutils-2.37/configure" --target="$TARGET" --prefix="$REPO" --with-sysroot --disable-nls --disable-werror
"$REPO/src/binutils-2.37/configure" --target="$TARGET" --prefix="$ROOT" --with-sysroot --disable-nls --disable-werror
make -j"$J"
make install
cd "$REPO/build/$ARCH/gcc"
"$REPO/src/gcc-11.2.0/configure" --target="$TARGET" --prefix="$REPO" --disable-nls --enable-languages=c,c++ --without-headers
"$REPO/src/gcc-11.2.0/configure" --target="$TARGET" --prefix="$ROOT" --disable-nls --enable-languages=c,c++ --without-headers
make -j"$J" all-gcc all-target-libgcc
make install-gcc install-target-libgcc

View File

@ -6,16 +6,18 @@ REPO="$(realpath "$(dirname "$(realpath "$0")")/../..")"
ARCH='x86_64'
TARGET="$ARCH-elf"
PATH="$REPO/bin:$PATH"
ROOT="$REPO/root"
PATH="$ROOT/bin:$PATH"
if [ -z "$J" ]; then J='1'; fi
cd "$REPO/build/$ARCH/binutils"
"$REPO/binutils-2.37/configure" --target="$TARGET" --prefix="$REPO" --with-sysroot --disable-nls --disable-werror
"$REPO/binutils-2.37/configure" --target="$TARGET" --prefix="$ROOT" --with-sysroot --disable-nls --disable-werror
make -j"$J"
make install
cd "$REPO/build/$ARCH/gcc"
"$REPO/gcc-11.2.0/configure" --target="$TARGET" --prefix="$REPO" --disable-nls --enable-languages=c,c++ --without-headers
"$REPO/gcc-11.2.0/configure" --target="$TARGET" --prefix="$ROOT" --disable-nls --enable-languages=c,c++ --without-headers
make -j"$J" all-gcc all-target-libgcc
make install-gcc install-target-libgcc

0
vendor/cross/root/.keep vendored Normal file
View File