summaryrefslogtreecommitdiff
path: root/mk/fetch.mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-01-13 08:01:05 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-01-13 08:02:46 +0100
commit8dc18bb33c773a2359ee0e07450121589fd09806 (patch)
tree67eef8296962ecc359612299b6b618cf1622261b /mk/fetch.mk
parentcb0c98fd95db8b300e5ae45707c9bc207afdc4dd (diff)
rpi: use stable branch
The github kernel repository is extremely big (over 1GB compressed) so use a branch to allow swallow cloning. Reducing download time a lot. We need to bump kernel version regulary now, when the branch is changing.
Diffstat (limited to 'mk/fetch.mk')
-rw-r--r--mk/fetch.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/mk/fetch.mk b/mk/fetch.mk
index cfc681d9c..3b2ff871d 100644
--- a/mk/fetch.mk
+++ b/mk/fetch.mk
@@ -69,14 +69,17 @@ $(1):
case "$${PKG_GIT}" in \
tag|branch) \
git clone --depth 1 --branch $${PKG_VERSION} $${PKG_SITES} $${PKG_NAME}-$${PKG_VERSION} $(DL_TRACE); \
+ if [ $$? -ne 0 ]; then echo "git clone error"; exit 1; fi; \
;; \
hash) \
git clone $${PKG_SITES} $${PKG_NAME}-$${PKG_VERSION} $(DL_TRACE); \
+ if [ $$? -ne 0 ]; then echo "git clone error"; exit 1; fi; \
(cd $${PKG_NAME}-$${PKG_VERSION}; git checkout $${PKG_VERSION}) $(DL_TRACE); \
;; \
esac ;\
else \
git clone --depth 1 $${PKG_SITES} $${PKG_NAME}-$${PKG_VERSION} $(DL_TRACE); \
+ if [ $$? -ne 0 ]; then echo "git clone error"; exit 1; fi; \
fi; \
tar cJf $${PKG_NAME}-$${PKG_VERSION}.tar.xz $${PKG_NAME}-$${PKG_VERSION}; \
touch $$$${filename}.nohash; \