Skip to content
Snippets Groups Projects
Commit e42398de authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Merge branch 'master' of https://github.com/redox-os/cookbook

parents fa11383b c022d9f3
No related branches found
No related tags found
No related merge requests found
......@@ -260,6 +260,18 @@ function op {
echo "name = \"$1\"" > "stage.toml"
echo "version = \"$(op $1 version)\"" >> "stage.toml"
echo "target = \"$TARGET\"" >> "stage.toml"
# Add runtime dependencies to package if they exist
if [ -n "$DEPENDS" ]
then
# Remove leading and trailing whitespace, replace whitespace between
# package names with commas, and surround package names with quotes
dependencies=$(echo -e "$DEPENDS" | sed -E 's/^[[:space:]]*//;s/[[:space:]]*$//;s/[[:space:]]+/,/g;s/[^, ][^, ]*/"&"/g')
echo "depends = [$dependencies]" >> "stage.toml"
else
echo "depends = []" >> "stage.toml"
fi
mkdir -p stage/pkg
cp -v stage.toml "stage/pkg/$1.toml"
pkg --target=$TARGET create stage
......
TAR=https://curl.haxx.se/download/curl-7.55.1.tar.gz
BRANCH=redox
BUILD_DEPENDS=(openssl)
DEPENDS="ca-certificates"
function recipe_version {
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
......
GIT=https://github.com/redox-os/gcc.git
BRANCH=redox
DEPENDS="gnu-binutils newlib"
export AR="${HOST}-ar"
export AS="${HOST}-as"
......
GIT=https://github.com/ids1024/rust.git
BRANCH=compile-redox
DEPENDS="gcc cargo"
LLVM_PREFIX=$PWD/build/llvm-root
SYSROOT=/usr/$HOST
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment