leds: 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".
Change-Id: I1956784d05573749d356977f71dae0fd6bde2adf
Tested: Built phosphor-led-manager and validated package contents
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-phosphor/common/recipes-phosphor/leds/phosphor-led-manager.bb b/meta-phosphor/common/recipes-phosphor/leds/phosphor-led-manager.bb
index 22c98bc..d501d33 100644
--- a/meta-phosphor/common/recipes-phosphor/leds/phosphor-led-manager.bb
+++ b/meta-phosphor/common/recipes-phosphor/leds/phosphor-led-manager.bb
@@ -12,16 +12,13 @@
${PN}-faultmonitor \
"
-PACKAGES += "${LED_MGR_PACKAGES}"
-PACKAGES_remove = "${PN}"
+PACKAGE_BEFORE_PN += "${LED_MGR_PACKAGES}"
+ALLOW_EMPTY_${PN} = "1"
DBUS_PACKAGES = "${PN}-ledmanager"
SYSTEMD_PACKAGES = "${LED_MGR_PACKAGES}"
-RDEPENDS_${PN}-dev = "${LED_MGR_PACKAGES}"
-RDEPENDS_${PN}-staticdev = "${LED_MGR_PACKAGES}"
-
DEPENDS += "python-pyyaml-native"
DEPENDS += "autoconf-archive-native"
DEPENDS += "sdbusplus sdbusplus-native"