From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann E. MORIN Date: Sat, 14 Jun 2014 17:10:23 +0200 Subject: [Buildroot] [PATCH 4/5] legal-info: rename legal-warning-pkg-savednothing helper In-Reply-To: References: Message-ID: <4ea524430e932e989a86440588d9cf5122aa03ce.1402758331.git.yann.morin.1998@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net From: "Yann E. MORIN" This helper was called when none of the sources or license files were saved. Now we handle license files separately from the sources, this is no longer the case: they are only called when the sources are not saved. Rename the handler and change the warning message accordingly. Signed-off-by: "Yann E. MORIN" Cc: Luca Ceresoli Cc: Thomas De Schampheleire Cc: Thomas Petazzoni Cc: Fabio Porcedda --- package/pkg-generic.mk | 4 ++-- package/pkg-utils.mk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index d16908a..8a32f9d 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -640,10 +640,10 @@ endif # license files ifeq ($$($(2)_SITE_METHOD),local) # Packages without a tarball: don't save and warn - @$(call legal-warning-pkg-savednothing,$$($(2)_RAWNAME),local) + @$(call legal-license-nosource,$$($(2)_RAWNAME),local) else ifneq ($$($(2)_OVERRIDE_SRCDIR),) - @$(call legal-warning-pkg-savednothing,$$($(2)_RAWNAME),override) + @$(call legal-license-nosource,$$($(2)_RAWNAME),override) else # Other packages diff --git a/package/pkg-utils.mk b/package/pkg-utils.mk index 163ef8a..471f3ed 100644 --- a/package/pkg-utils.mk +++ b/package/pkg-utils.mk @@ -101,8 +101,8 @@ define legal-warning-pkg # pkg, text echo "WARNING: $(1): $(2)" >>$(LEGAL_WARNINGS) endef -define legal-warning-pkg-savednothing # pkg, {local|override} - $(call legal-warning-pkg,$(1),sources and license files not saved ($(2) packages not handled)) +define legal-license-nosource # pkg, {local|override} + $(call legal-warning-pkg,$(1),sources not saved ($(2) packages not handled)) endef define legal-manifest # pkg, version, license, license-files, source, {HOST|TARGET} -- 1.8.3.2