1
0
Fork 0
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:
Alex Kotov 2022-01-17 17:05:14 +05:00
parent b86ec6347d
commit af2ffc4d41
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
13 changed files with 93 additions and 0 deletions

19
config/dev-cross-riscv64 Executable file
View 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