mirror of
https://github.com/tailix/libkernaux.git
synced 2025-04-07 17:32:45 -04:00
Move root to separate directory
This commit is contained in:
parent
49b6732343
commit
f6b09497ee
12 changed files with 25 additions and 16 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
3
vendor/cross/.gitignore
vendored
3
vendor/cross/.gitignore
vendored
|
@ -1,6 +1,9 @@
|
|||
/src/*
|
||||
!/src/.keep
|
||||
|
||||
/root/*
|
||||
!/root/.keep
|
||||
|
||||
/build/i386/binutils/*
|
||||
!/build/i386/binutils/.keep
|
||||
/build/i386/gcc/*
|
||||
|
|
8
vendor/cross/build/i386/build.sh
vendored
8
vendor/cross/build/i386/build.sh
vendored
|
@ -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
|
||||
|
|
8
vendor/cross/build/riscv64/build.sh
vendored
8
vendor/cross/build/riscv64/build.sh
vendored
|
@ -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
|
||||
|
|
8
vendor/cross/build/x86_64/build.sh
vendored
8
vendor/cross/build/x86_64/build.sh
vendored
|
@ -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
0
vendor/cross/root/.keep
vendored
Normal file
Loading…
Add table
Reference in a new issue