commit | 9f410ccf2825825c8a3dafed00eb11aef4ffe2da | [log] [tgz] |
---|---|---|
author | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | Tue Mar 23 13:52:11 2021 +0000 |
committer | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | Wed Mar 24 07:46:37 2021 +0000 |
tree | e8435a8fec9ff807066c016bc0b0638f53f91d9f | |
parent | aa395cc617408d9ab50b5a0c278cb3165c96801f [diff] |
leds: rainier: Enable PACKAGECONFIG to use json This enables phosphor-ledmanager to use JSON configuration file Change-Id: I3cbd0bf6b60e81f9f0a479ad51dab438c708c6c1 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
diff --git a/meta-ibm/recipes-phosphor/leds/phosphor-led-manager_%.bbappend b/meta-ibm/recipes-phosphor/leds/phosphor-led-manager_%.bbappend index 6121395..325d8bf 100644 --- a/meta-ibm/recipes-phosphor/leds/phosphor-led-manager_%.bbappend +++ b/meta-ibm/recipes-phosphor/leds/phosphor-led-manager_%.bbappend
@@ -5,6 +5,9 @@ # Copies config file having arguments for led-set-all-groups-asserted.sh SYSTEMD_ENVIRONMENT_FILE_${PN}-ledmanager_append_rainier +="obmc/led/set-all/groups/config" +# Use the JSON configuration file at runtime than the static led.yaml +PACKAGECONFIG_append_rainier = " use-json" + pkg_postinst_${PN}-ledmanager_rainier () { # Needed this to run as part of BMC boot
diff --git a/meta-phosphor/recipes-phosphor/leds/phosphor-led-manager_git.bb b/meta-phosphor/recipes-phosphor/leds/phosphor-led-manager_git.bb index 55171db..01932d2 100644 --- a/meta-phosphor/recipes-phosphor/leds/phosphor-led-manager_git.bb +++ b/meta-phosphor/recipes-phosphor/leds/phosphor-led-manager_git.bb
@@ -13,6 +13,9 @@ ${PN}-faultmonitor \ " +PACKAGECONFIG ??= "" +PACKAGECONFIG[use-json] = "--enable-use-json, --disable-use-json" + PACKAGE_BEFORE_PN += "${LED_MGR_PACKAGES}" ALLOW_EMPTY_${PN} = "1"