mirror of https://github.com/tailix/libkernaux.git
Create "dev" configs
This commit is contained in:
parent
b86ec6347d
commit
af2ffc4d41
|
@ -37,6 +37,15 @@
|
|||
# To build out of root #
|
||||
########################
|
||||
|
||||
/build/dev-native/*
|
||||
!/build/dev-native/config
|
||||
/build/dev-cross-i386/*
|
||||
!/build/dev-cross-i386/config
|
||||
/build/dev-cross-riscv64/*
|
||||
!/build/dev-cross-riscv64/config
|
||||
/build/dev-cross-x86_64/*
|
||||
!/build/dev-cross-x86_64/config
|
||||
|
||||
/build/root-native/*
|
||||
!/build/root-native/config
|
||||
/build/root-cross-i386-linux/*
|
||||
|
@ -46,6 +55,19 @@
|
|||
/build/root-cross-x86_64-linux/*
|
||||
!/build/root-cross-x86_64-linux/config
|
||||
|
||||
##########################
|
||||
# To install out of root #
|
||||
##########################
|
||||
|
||||
/dest/dev-native/*
|
||||
!/dest/dev-native/.keep
|
||||
/dest/dev-cross-i386/*
|
||||
!/dest/dev-cross-i386/.keep
|
||||
/dest/dev-cross-riscv64/*
|
||||
!/dest/dev-cross-riscv64/.keep
|
||||
/dest/dev-cross-x86_64/*
|
||||
!/dest/dev-cross-x86_64/.keep
|
||||
|
||||
###########################################
|
||||
# Only generated when configuring in root #
|
||||
###########################################
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
../../config/dev-cross-i386
|
|
@ -0,0 +1 @@
|
|||
../../config/dev-cross-riscv64
|
|
@ -0,0 +1 @@
|
|||
../../config/dev-cross-x86_64
|
|
@ -0,0 +1 @@
|
|||
../../config/dev-native
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
REPO="$(realpath "$(dirname "$(realpath "$0")")/..")"
|
||||
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"
|
||||
|
||||
export AR="$CROSS-ar"
|
||||
export CC="$CROSS-gcc"
|
||||
export RANLIB="$CROSS-ranlib"
|
||||
|
||||
export CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector -fno-pic'
|
||||
|
||||
"$REPO/configure" --host="$HOST" --prefix="$PREFIX" --with-libc
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
REPO="$(realpath "$(dirname "$(realpath "$0")")/..")"
|
||||
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"
|
||||
|
||||
export AR="$CROSS-ar"
|
||||
export CC="$CROSS-gcc"
|
||||
export RANLIB="$CROSS-ranlib"
|
||||
|
||||
export CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector -fno-pic'
|
||||
|
||||
"$REPO/configure" --host="$HOST" --prefix="$PREFIX" --with-libc
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
REPO="$(realpath "$(dirname "$(realpath "$0")")/..")"
|
||||
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"
|
||||
|
||||
export AR="$CROSS-ar"
|
||||
export CC="$CROSS-gcc"
|
||||
export RANLIB="$CROSS-ranlib"
|
||||
|
||||
export CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector -fno-pic -mabi=sysv -mcmodel=kernel -mno-red-zone -mno-80387 -mno-3dnow -mno-sse -mno-sse2'
|
||||
|
||||
"$REPO/configure" --host="$HOST" --prefix="$PREFIX" --with-libc
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
REPO="$(realpath "$(dirname "$(realpath "$0")")/..")"
|
||||
if [ -f "$REPO/Makefile" ]; then make -C "$REPO" distclean; fi
|
||||
|
||||
PREFIX="$REPO/dest/dev-native"
|
||||
|
||||
"$REPO/configure" --prefix="$PREFIX"
|
Loading…
Reference in New Issue