rules.mk: move DOWNLOAD_CHECK_CERTIFICATE to include/download.mk
Move DOWNLOAD_CHECK_CERTIFICATE to include/download.mk as it's a better place than exporting it in the global rules.mk makefile. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
3bd04767ba
commit
7df959449c
@ -18,6 +18,9 @@ endif
|
|||||||
|
|
||||||
DOWNLOAD_RDEP=$(STAMP_PREPARED) $(HOST_STAMP_PREPARED)
|
DOWNLOAD_RDEP=$(STAMP_PREPARED) $(HOST_STAMP_PREPARED)
|
||||||
|
|
||||||
|
# Export options for download.pl
|
||||||
|
export DOWNLOAD_CHECK_CERTIFICATE:=$(CONFIG_DOWNLOAD_CHECK_CERTIFICATE)
|
||||||
|
|
||||||
define dl_method_git
|
define dl_method_git
|
||||||
$(if $(filter https://github.com/% git://github.com/%,$(1)),github_archive,git)
|
$(if $(filter https://github.com/% git://github.com/%,$(1)),github_archive,git)
|
||||||
endef
|
endef
|
||||||
|
3
rules.mk
3
rules.mk
@ -257,9 +257,6 @@ ESED:=$(STAGING_DIR_HOST)/bin/sed -E -i -e
|
|||||||
MKHASH:=$(STAGING_DIR_HOST)/bin/mkhash
|
MKHASH:=$(STAGING_DIR_HOST)/bin/mkhash
|
||||||
# MKHASH is used in /scripts, so we export it here.
|
# MKHASH is used in /scripts, so we export it here.
|
||||||
export MKHASH
|
export MKHASH
|
||||||
# DOWNLOAD_CHECK_CERTIFICATE is used in /scripts, so we export it here.
|
|
||||||
DOWNLOAD_CHECK_CERTIFICATE:=$(CONFIG_DOWNLOAD_CHECK_CERTIFICATE)
|
|
||||||
export DOWNLOAD_CHECK_CERTIFICATE
|
|
||||||
CP:=cp -fpR
|
CP:=cp -fpR
|
||||||
LN:=ln -sf
|
LN:=ln -sf
|
||||||
XARGS:=xargs -r
|
XARGS:=xargs -r
|
||||||
|
Loading…
x
Reference in New Issue
Block a user