When checking out git packages, buildroot doesn't seem to track the revisions
correctly of any submodules referenced by that project. As a result, the
submodule stays at whatever revision was referenced by the head of the master
branch. Running a 'git submodule update' after the checkout fixes this problem.

Signed-off-by: Owen Kirby <o...@exegin.com>
---
Index: include/download.mk
===================================================================
--- include/download.mk (revision 37237)
+++ include/download.mk (working copy)
@@ -88,7 +88,7 @@
                rm -rf $(SUBDIR) && \
                [ \! -d $(SUBDIR) ] && \
                git clone $(URL) $(SUBDIR) --recursive && \
-               (cd $(SUBDIR) && git checkout $(VERSION)) && \
+               (cd $(SUBDIR) && git checkout $(VERSION) && git submodule 
update) && \
                echo "Packing checkout..." && \
                rm -rf $(SUBDIR)/.git && \
                $(call dl_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to