mirror of
https://github.com/tailix/libkernaux.git
synced 2025-03-10 17:06:01 -04:00
Create "dev" configs
This commit is contained in:
parent
b86ec6347d
commit
af2ffc4d41
13 changed files with 93 additions and 0 deletions
22
.gitignore
vendored
22
.gitignore
vendored
|
@ -37,6 +37,15 @@
|
||||||
# To build out of root #
|
# 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/*
|
||||||
!/build/root-native/config
|
!/build/root-native/config
|
||||||
/build/root-cross-i386-linux/*
|
/build/root-cross-i386-linux/*
|
||||||
|
@ -46,6 +55,19 @@
|
||||||
/build/root-cross-x86_64-linux/*
|
/build/root-cross-x86_64-linux/*
|
||||||
!/build/root-cross-x86_64-linux/config
|
!/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 #
|
# Only generated when configuring in root #
|
||||||
###########################################
|
###########################################
|
||||||
|
|
1
build/dev-cross-i386/config
Symbolic link
1
build/dev-cross-i386/config
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../config/dev-cross-i386
|
1
build/dev-cross-riscv64/config
Symbolic link
1
build/dev-cross-riscv64/config
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../config/dev-cross-riscv64
|
1
build/dev-cross-x86_64/config
Symbolic link
1
build/dev-cross-x86_64/config
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../config/dev-cross-x86_64
|
1
build/dev-native/config
Symbolic link
1
build/dev-native/config
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../config/dev-native
|
19
config/dev-cross-i386
Executable file
19
config/dev-cross-i386
Executable file
|
@ -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
|
19
config/dev-cross-riscv64
Executable file
19
config/dev-cross-riscv64
Executable file
|
@ -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
|
19
config/dev-cross-x86_64
Executable file
19
config/dev-cross-x86_64
Executable file
|
@ -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
|
10
config/dev-native
Executable file
10
config/dev-native
Executable file
|
@ -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"
|
0
dest/dev-cross-i386/.keep
Normal file
0
dest/dev-cross-i386/.keep
Normal file
0
dest/dev-cross-riscv64/.keep
Normal file
0
dest/dev-cross-riscv64/.keep
Normal file
0
dest/dev-cross-x86_64/.keep
Normal file
0
dest/dev-cross-x86_64/.keep
Normal file
0
dest/dev-native/.keep
Normal file
0
dest/dev-native/.keep
Normal file
Loading…
Add table
Reference in a new issue