1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2025-06-02 18:21:48 -04:00

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

@ -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