debug-collector: Favor ALLOW_EMPTY
A number of recipes remove PN from the package list. While this
seems to work it is unconventional and puts us into dusty corners
of oe-core/bitbake.
Adopt a more conventional approach with ALLOW_EMPTY_${PN} = "1". This
removes the need to manually set the dev and staticdev package
dependencies.
Tested: Built phosphor-debug-collector and validated package contents
Change-Id: I0ea510895a6fd5f2aab2b0629ffcec120f0e6e55
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-phosphor/common/recipes-phosphor/dump/phosphor-debug-collector.bb b/meta-phosphor/common/recipes-phosphor/dump/phosphor-debug-collector.bb
index 2aa5560..b480064 100644
--- a/meta-phosphor/common/recipes-phosphor/dump/phosphor-debug-collector.bb
+++ b/meta-phosphor/common/recipes-phosphor/dump/phosphor-debug-collector.bb
@@ -12,10 +12,8 @@
${PN}-dreport \
${PN}-scripts \
"
-PACKAGES =+ "${DEBUG_COLLECTOR_PKGS}"
-PACKAGES_remove = "${PN}"
-RDEPENDS_${PN}-dev = "${DEBUG_COLLECTOR_PKGS}"
-RDEPENDS_${PN}-staticdev = "${DEBUG_COLLECTOR_PKGS}"
+PACKAGE_BEFORE_PN += "${DEBUG_COLLECTOR_PKGS}"
+ALLOW_EMPTY_${PN} = "1"
DBUS_PACKAGES = "${PN}-manager"