From: Luca Ceresoli Date: Fri, 4 Mar 2016 23:39:12 +0000 (+0100) Subject: legal-info: fix detection of "override" packages X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=45a083cafbc82545dcc8c4f54ba440a0b8d9fe22;p=buildroot.git legal-info: fix detection of "override" packages The ifneq ($$($(2)_SITE_METHOD),override) test will always match because SITE_METHOD is never set to "override". The result is that some packages are downloaded and extracted unnecessarily, although they are (correctly) not saved in output/legal-info/. Fix by simply testing $(2)_OVERRIDE_SRCDIR instead: when empty, it indicates that the packages is neither a "local" site-method package nor a package that has its source directory overridden. Signed-off-by: Luca Ceresoli Reported-by: Thomas Petazzoni Cc: Thomas Petazzoni Cc: "Yann E. MORIN" Acked-by: "Yann E. MORIN" Signed-off-by: Thomas Petazzoni --- diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index e22babbcd0..9ea2a707ba 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -757,13 +757,11 @@ endif # non-local, and non-overriden. So only store, in the manifest, the tarball # name of those packages. ifeq ($$($(2)_REDISTRIBUTE),YES) -ifneq ($$($(2)_SITE_METHOD),local) -ifneq ($$($(2)_SITE_METHOD),override) +ifeq ($$($(2)_OVERRIDE_SRCDIR),) # Packages that have a tarball need it downloaded beforehand $(1)-legal-info: $(1)-source $$(REDIST_SOURCES_DIR_$$(call UPPERCASE,$(4))) endif endif -endif # If FOO_ACTUAL_SOURCE_TARBALL is explicitly defined, it means FOO_SOURCE is # indeed a binary (e.g. external toolchain) and FOO_ACTUAL_SOURCE_TARBALL/_SITE