Merge pull request #43 from ids1024/repo

Fix repo.sh call for build depends
This commit is contained in:
Jeremy Soller 2017-07-09 16:11:42 -06:00 committed by GitHub
commit 074c16ff89

18
cook.sh
View File

@ -95,19 +95,19 @@ function op {
fi
;;
prepare)
rm -rf sysroot
mkdir sysroot
rm -rf sysroot
mkdir sysroot
if [ ${#BUILD_DEPENDS} -gt 0 ]
then
for i in "${BUILD_DEPENDS[@]}"
do
pushd "$ROOT"
./repo.sh "$i"
popd
pushd $ROOT
./repo.sh "${BUILD_DEPENDS[@]}"
popd
CC=cc cargo run --release --manifest-path "$ROOT/pkgutils/Cargo.toml" --bin pkg -- --target=$TARGET install --root sysroot "$REPO/$i.tar.gz"
done
for i in "${BUILD_DEPENDS[@]}"
do
CC=cc cargo run --release --manifest-path "$ROOT/pkgutils/Cargo.toml" --bin pkg -- --target=$TARGET install --root sysroot "$REPO/$i.tar.gz"
done
fi
rm -rf build