From f0fc4828501e7e393ce52a311bef249b0c9ec236 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 29 Feb 2016 14:38:54 +0100 Subject: add new PKG_GIT variable We can now clone git tags and branches in a more performant way. No change for specific hashes, other then PKG_GIT is required now. Do not remove .git dirs, as the downloaded code might be used to add a patch and send upstream. Add git as requirement for downloading. Remove unmaintained u-boot-git package. --- scripts/prereq.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/prereq.sh b/scripts/prereq.sh index d6b1d93ab..231d66655 100755 --- a/scripts/prereq.sh +++ b/scripts/prereq.sh @@ -292,6 +292,16 @@ if ! which gzip >/dev/null 2>&1; then fi printf "found\n" +printf " ---> checking if git is installed.. " +if ! which git >/dev/null 2>&1; then + echo You must install git to continue. + echo + out=1 + printf "not found\n" +fi +printf "found\n" + + # creating prereq.mk echo "ADK_TOPDIR:=$(readlink -nf . 2>/dev/null || pwd -P)" > $topdir/prereq.mk echo "BASH:=$(which bash)" >> $topdir/prereq.mk @@ -333,7 +343,10 @@ echo 'LC_ALL:=C' >> $topdir/prereq.mk echo "_PATH:=$PATH" >> $topdir/prereq.mk echo "PATH:=${topdir}/scripts:/usr/sbin:$PATH" >> $topdir/prereq.mk echo "GIT:=$(which git 2>/dev/null)" >> $topdir/prereq.mk -echo "export ADK_TOPDIR GIT SHA256 BASH SHELL" >> $topdir/prereq.mk +if [ $dlverbose -eq 0 ]; then + echo "GITOPTS:=--quiet" >> $topdir/prereq.mk +fi +echo "export ADK_TOPDIR GIT GITOPTS SHA256 BASH SHELL" >> $topdir/prereq.mk # create temporary Makefile cat >Makefile.tmp <<'EOF' -- cgit v1.2.3