mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 14:01:57 -09:00
infrastructure: only require download tools when needed
Instead of having to require svn, git or bzr unconditionally, only require them when one package needs them to be downloaded. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
@@ -504,9 +504,19 @@ $$($(2)_TARGET_DIRCLEAN): PKG=$(2)
|
||||
# configuration
|
||||
|
||||
ifeq ($$(BR2_PACKAGE_$(2)),y)
|
||||
|
||||
TARGETS += $(1)
|
||||
endif
|
||||
endef
|
||||
|
||||
ifeq ($$($(2)_SITE_METHOD),svn)
|
||||
DL_TOOLS_DEPENDENCIES += svn
|
||||
else ifeq ($$($(2)_SITE_METHOD),git)
|
||||
DL_TOOLS_DEPENDENCIES += git
|
||||
else ifeq ($$($(2)_SITE_METHOD),bzr)
|
||||
DL_TOOLS_DEPENDENCIES += bzr
|
||||
endif # SITE_METHOD
|
||||
|
||||
endif # BR2_PACKAGE_$(2)
|
||||
endef # GENTARGETS_INNER
|
||||
|
||||
################################################################################
|
||||
# GENTARGETS -- the target generator macro for generic packages
|
||||
|
||||
Reference in New Issue
Block a user