projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[lantiq] add subtarget, as of 3.6 we dont seperate xway SoC
[openwrt.git]
/
include
/
download.mk
diff --git
a/include/download.mk
b/include/download.mk
index
d1b3fc8
..
823ddf9
100644
(file)
--- a/
include/download.mk
+++ b/
include/download.mk
@@
-1,5
+1,5
@@
#
#
-# Copyright (C) 2006-201
0
OpenWrt.org
+# Copyright (C) 2006-201
2
OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@@
-41,11
+41,11
@@
define DownloadMethod/unknown
endef
define DownloadMethod/default
endef
define DownloadMethod/default
- $(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "$(MD5SUM)" $(
URL
)
+ $(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "$(MD5SUM)" $(
foreach url,$(URL),"$(url)"
)
endef
define wrap_mirror
endef
define wrap_mirror
- $(if $(
MIRROR),@$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "x
" || ( $(1) ),$(1))
+ $(if $(
if $(MIRROR),$(filter-out x,$(MIRROR_MD5SUM))),@$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "$(MIRROR_MD5SUM)
" || ( $(1) ),$(1))
endef
define DownloadMethod/cvs
endef
define DownloadMethod/cvs
@@
-87,7
+87,7
@@
define DownloadMethod/git
cd $(TMP_DIR)/dl && \
rm -rf $(SUBDIR) && \
[ \! -d $(SUBDIR) ] && \
cd $(TMP_DIR)/dl && \
rm -rf $(SUBDIR) && \
[ \! -d $(SUBDIR) ] && \
- git clone $(URL) $(SUBDIR) && \
+ git clone $(URL) $(SUBDIR)
--recursive
&& \
(cd $(SUBDIR) && git checkout $(VERSION)) && \
echo "Packing checkout..." && \
rm -rf $(SUBDIR)/.git && \
(cd $(SUBDIR) && git checkout $(VERSION)) && \
echo "Packing checkout..." && \
rm -rf $(SUBDIR)/.git && \
@@
-158,6
+158,7
@@
define Download/Defaults
MD5SUM:=
SUBDIR:=
MIRROR:=1
MD5SUM:=
SUBDIR:=
MIRROR:=1
+ MIRROR_MD5SUM:=x
VERSION:=
endef
VERSION:=
endef