mirror of
https://github.com/tailix/libkernaux.git
synced 2026-08-22 11:04:22 -04:00
Create "dev" configs
This commit is contained in:
parent
b86ec6347d
commit
af2ffc4d41
13 changed files with 93 additions and 0 deletions
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue