Skip to content

Commit

Permalink
meta-ibm:Remove execution of set-all-groups-asserted
Browse files Browse the repository at this point in the history
The commit removes dependecy of obmc-led-set-all-groups-asserted
from the recipe file of phosphor-led-manager.

The script executed by the service curently sets asserted property
of all the LED groups to false on BMC boot which is now being set
using operational status. Hence the script is no longer required.

Change-Id: I6ddfa17ec70d75f115931d78d5866dab8a7e1f21
Signed-off-by: Sunny Srivastava <[email protected]>
  • Loading branch information
SunnySrivastava1984 committed Nov 8, 2023
1 parent 6f3769f commit 61276c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 32 deletions.

This file was deleted.

20 changes: 1 addition & 19 deletions meta-ibm/recipes-phosphor/leds/phosphor-led-manager_%.bbappend
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

SYSTEMD_SERVICE:${PN}:append:p10bmc = " obmc-led-[email protected] obmc-led-[email protected]"
SYSTEMD_SERVICE:${PN}:append:p10bmc = " [email protected]"

# Copies config file having arguments for led-set-all-groups-asserted.sh
SYSTEMD_ENVIRONMENT_FILE:${PN}:append:p10bmc =" obmc/led/set-all/groups/config"
Expand All @@ -15,18 +15,6 @@ SRC_URI:append:p10bmc = " file://lamp-test-led-overrides.json"

pkg_postinst:${PN}:p10bmc () {

# Needed this to run as part of BMC boot
mkdir -p $D$systemd_system_unitdir/multi-user.target.wants
LINK="$D$systemd_system_unitdir/multi-user.target.wants/[email protected]"
TARGET="../[email protected]"
ln -s $TARGET $LINK

# Needed this to run as part of Power On
mkdir -p $D$systemd_system_unitdir/obmc-chassis-poweron@0.target.wants
LINK="$D$systemd_system_unitdir/[email protected]/[email protected]"
TARGET="../[email protected]"
ln -s $TARGET $LINK

# Needed this to run as part of BMC boot
mkdir -p $D$systemd_system_unitdir/multi-user.target.wants
LINK_FAULT="$D$systemd_system_unitdir/multi-user.target.wants/obmc-led-create-virtual-leds@sys-class-leds-virtual-enc-fault.service"
Expand All @@ -42,12 +30,6 @@ pkg_postinst:${PN}:p10bmc () {

pkg_prerm:${PN}:p10bmc () {

LINK="$D$systemd_system_unitdir/multi-user.target.wants/[email protected]"
rm $LINK

LINK="$D$systemd_system_unitdir/[email protected]/[email protected]"
rm $LINK

LINK_FAULT="$D$systemd_system_unitdir/multi-user.target.wants/obmc-led-create-virtual-leds@sys-class-leds-virtual-enc-fault.service"
rm $LINK_FAULT

Expand Down

0 comments on commit 61276c1

Please sign in to comment.