include/download.mk: Allow specify DownloadMethod specific options
This is going to be used to migrate the hand rolled git clone for the kernel into using the git download method. The kernel uses custom options that we may have to pass down. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
This commit is contained in:
parent
832fb99da2
commit
b9aab34eb4
1 changed files with 2 additions and 1 deletions
|
@ -93,7 +93,7 @@ define DownloadMethod/git
|
||||||
cd $(TMP_DIR)/dl && \
|
cd $(TMP_DIR)/dl && \
|
||||||
rm -rf $(SUBDIR) && \
|
rm -rf $(SUBDIR) && \
|
||||||
[ \! -d $(SUBDIR) ] && \
|
[ \! -d $(SUBDIR) ] && \
|
||||||
git clone $(URL) $(SUBDIR) && \
|
git clone $(OPTS) $(URL) $(SUBDIR) && \
|
||||||
(cd $(SUBDIR) && git checkout $(VERSION) && \
|
(cd $(SUBDIR) && git checkout $(VERSION) && \
|
||||||
git submodule update --init --recursive) && \
|
git submodule update --init --recursive) && \
|
||||||
echo "Packing checkout..." && \
|
echo "Packing checkout..." && \
|
||||||
|
@ -172,6 +172,7 @@ define Download/Defaults
|
||||||
MIRROR:=1
|
MIRROR:=1
|
||||||
MIRROR_MD5SUM:=x
|
MIRROR_MD5SUM:=x
|
||||||
VERSION:=
|
VERSION:=
|
||||||
|
OPTS:=
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Download
|
define Download
|
||||||
|
|
Loading…
Reference in a new issue