summaryrefslogtreecommitdiff
path: root/mk/fetch.mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-11-17 08:01:17 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-11-17 08:02:30 +0100
commita052c31600ac5c5cec474969c6dc130de8f88108 (patch)
treee9187152a8e551dc45661aec36024fc10c697b8b /mk/fetch.mk
parenta1d15775b9f730bb4eaee46aa32c1fee4d2f7a1a (diff)
git kernel handling
Simplify and allow to use git tags, branches, hashes and head. Convert existing usage of git kernel repositories to this.
Diffstat (limited to 'mk/fetch.mk')
-rw-r--r--mk/fetch.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/mk/fetch.mk b/mk/fetch.mk
index eccdd31c0..c0698f6fa 100644
--- a/mk/fetch.mk
+++ b/mk/fetch.mk
@@ -65,13 +65,12 @@ $(1):
git://*|*.git) \
rm -rf $${PKG_NAME}-$${PKG_VERSION}; \
if [ ! -z "$${PKG_GIT}" ]; then \
+ echo "Using git ${PKG_GIT}: $${PKG_VERSION}" $(DL_TRACE); \
case "$${PKG_GIT}" in \
tag|branch) \
- echo "Using git tag/branch: $${PKG_VERSION}" $(DL_TRACE); \
git clone --depth 1 --branch $${PKG_VERSION} $(GITOPTS) $${PKG_SITES} $${PKG_NAME}-$${PKG_VERSION} $(DL_TRACE); \
;; \
hash) \
- echo "Using git hash: $${PKG_VERSION}" $(DL_TRACE); \
git clone $(GITOPTS) $${PKG_SITES} $${PKG_NAME}-$${PKG_VERSION} $(DL_TRACE); \
(cd $${PKG_NAME}-$${PKG_VERSION}; git checkout $(GITOPTS) $${PKG_VERSION}) $(DL_TRACE); \
;; \