Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Makefile.package.in: GIT: add support to fetch git submodules
@ 2012-02-28 13:25 Alexandre Pereira da Silva
  2012-02-28 22:32 ` Arnout Vandecappelle
  0 siblings, 1 reply; 4+ messages in thread
From: Alexandre Pereira da Silva @ 2012-02-28 13:25 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
---
 package/Makefile.package.in |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/package/Makefile.package.in b/package/Makefile.package.in
index ea44c6c..863e866 100644
--- a/package/Makefile.package.in
+++ b/package/Makefile.package.in
@@ -147,13 +147,15 @@ domainseparator=$(if $(1),$(1),/)
 define DOWNLOAD_GIT
 	test -e $(DL_DIR)/$($(PKG)_SOURCE) || \
 	(pushd $(DL_DIR) > /dev/null && \
-	$(GIT) clone --bare $($(PKG)_SITE) $($(PKG)_BASE_NAME) && \
+	$(GIT) clone -n $($(PKG)_SITE) $($(PKG)_BASE_NAME) && \
 	pushd $($(PKG)_BASE_NAME) > /dev/null && \
-	$(GIT) archive --format=tar --prefix=$($(PKG)_BASE_NAME)/ $($(PKG)_DL_VERSION) | \
-		gzip -c > $(DL_DIR)/$($(PKG)_SOURCE) && \
+	$(GIT) checkout $($(PKG)_VERSION) && \
+	$(GIT) submodule init && \
+	$(GIT) submodule update && \
+	$(TAR) czf $(DL_DIR)/$($(PKG)_SOURCE) . &&\
 	popd > /dev/null && \
 	rm -rf $($(PKG)_DL_DIR) && \
-	popd > /dev/null)
+	popd > /dev/null)    
 endef
 
 # TODO: improve to check that the given PKG_DL_VERSION exists on the remote
-- 
1.7.9

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-07-30 15:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-28 13:25 [Buildroot] [PATCH] Makefile.package.in: GIT: add support to fetch git submodules Alexandre Pereira da Silva
2012-02-28 22:32 ` Arnout Vandecappelle
2012-02-28 23:54   ` Alexandre Pereira da Silva
2012-07-30 15:16     ` Frank Hunleth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox