[v4,3/5] cpe-info: only report target pkgs

Message ID 1525978734-35706-4-git-send-email-matthew.weber@rockwellcollins.com
State Superseded
Headers show
  • CPE ID Support
Related show

Commit Message

Matthew Weber May 10, 2018, 6:58 p.m.
The reporting of host packages causes some duplication and complicates
what is really in the targets configuration. For the purpose of the
first version of this patchset, its assumed that host packages aren't
relevant for the configuration and we only report the target's

Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
v1 -> v2
[Thomas P
 - select if target vs selecting not host

 - Fixed host build error because cpe-info wasn't defined
 package/pkg-generic.mk | 2 ++
 1 file changed, 2 insertions(+)


diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index b56fefa..5d77c83 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -874,10 +874,12 @@  endif
 $(1)-cpe-info: PKG=$(2)
+ifeq ($$($(2)_TYPE),target)
 ifneq ($$(call qstrip,$$($(2)_SOURCE)),)
 	@$$(call MESSAGE,"Collecting cpe info")
 	$(Q)$$(call cpe-manifest,$$($(2)_CPE_PREFIX):$$($(2)_CPE_ID):$(CPE_SUFFIX),$$($(2)_CVE_PATCHED),$$($(2)_RAWNAME),$$($(2)_VERSION),$$($(2)_ACTUAL_SOURCE_SITE))
 endif # ifneq ($$(call qstrip,$$($(2)_SOURCE)),)
+endif # ifeq ($$($(2)_TYPE),target)
 # legal-info: declare dependencies and set values used later for the manifest
 ifneq ($$($(2)_LICENSE_FILES),)