mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-19 19:34:18 +08:00
43 lines
900 B
Bash
43 lines
900 B
Bash
GIT=https://gitlab.redox-os.org/redox-os/rust.git
|
|
BRANCH=compile-redox
|
|
BUILD_DEPENDS=(llvm)
|
|
DEPENDS="gcc cargo"
|
|
PREPARE_COPY=0
|
|
|
|
function recipe_version {
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_update {
|
|
echo "skipping update"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_build {
|
|
config="$(realpath ../config.toml)"
|
|
source="$(realpath ../source)"
|
|
unset AR AS CC CXX LD NM OBJCOPY OBJDUMP RANLIB READELF STRIP
|
|
python "$source/x.py" dist --config "$config" --jobs $(nproc) --incremental
|
|
skip=1
|
|
}
|
|
|
|
function recipe_test {
|
|
echo "skipping test"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_clean {
|
|
make clean
|
|
skip=1
|
|
}
|
|
|
|
function recipe_stage {
|
|
binpath="$1/bin"
|
|
libpath="$1/lib"
|
|
cp -frv "build/${TARGET}/stage2/bin" "$binpath"
|
|
cp -frv "build/${TARGET}/stage2/lib" "$libpath"
|
|
${STRIP} "$binpath/"*
|
|
skip=1
|
|
}
|