From 14ca8de519af0ccd633485db5aebf98eb0912305 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Sun, 11 Mar 2018 20:32:30 -0600 Subject: [PATCH] Add relibc recipe --- recipes/relibc/recipe.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 recipes/relibc/recipe.sh diff --git a/recipes/relibc/recipe.sh b/recipes/relibc/recipe.sh new file mode 100644 index 000000000..7a9581ba9 --- /dev/null +++ b/recipes/relibc/recipe.sh @@ -0,0 +1,19 @@ +GIT=https://github.com/redox-os/relibc.git + +function recipe_build { + cp -r "$ROOT/Xargo.toml" . + xargo build --target "$TARGET" --release + xargo rustc --manifest-path src/crt0/Cargo.toml --target "$TARGET" --release -- -v --emit obj="target/$TARGET/release/crt0.o" + skip=1 +} + +function recipe_stage { + dest="$(realpath $1)" + mkdir -pv "$dest/lib" + mkdir -pv "$dest/include" + cp -rv "include"/* "$dest/include" + cp -rv "target/include"/* "$dest/include" + cp -v "target/$TARGET/release/libc.a" "$dest/lib" + cp -v "target/$TARGET/release/crt0.o" "$dest/lib" + skip=1 +} -- GitLab