summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-02-29 14:38:54 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2016-02-29 14:38:54 +0100
commitf0fc4828501e7e393ce52a311bef249b0c9ec236 (patch)
tree9e16a57f422e0768313b62e97f15a7a5a6196be4 /scripts
parent6873c8d1e2410d147bd4d687123a8d878b9b2aa4 (diff)
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.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/prereq.sh15
1 files changed, 14 insertions, 1 deletions
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'