build: implement PRODUCT_WANTS, always check for git

This commit is contained in:
Franco Fichtner 2019-04-28 11:55:48 +02:00
parent 4975420805
commit 3924c19ba8
1 changed files with 7 additions and 0 deletions

View File

@ -262,6 +262,13 @@ confirm|info|print)
;;
esac
for WANT in git ${PRODUCT_WANTS}; do
if ! pkg info ${WANT} > /dev/null; then
echo ">>> Required build package '${WANT}' is not installed."
exit 1
fi
done
git_reset()
{
git -C ${1} clean -xdqf .