summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-phosphor/power/phosphor-power-systemd-links.bb
AgeCommit message (Collapse)AuthorFilesLines
2020-03-12phosphor-power: split into separated packagesLei YU1-35/+4
phosphor-power consists of several separated services and utils. All of them are installed by default. Split them into separated packages, so that a machine layer could select which packages are needed. This is done by define PACKAGE_BEFORE_PN and specify the FILES_ for each package, and split the phosphor-power-systemd-links-monitor.bb into separated recipes to install services for the related package. The phosphor-power-systemd-links.bb is kept for now to avoid build error on existing systems. It will be removed when the meta-system layers' changes are done. Tested: Only include phosphor-power-monitor, verify that only the related binary and service unit file are installed into the image. Include all the packages, verify that all the services and utils are installed into the image. (From meta-phosphor rev: 2172cd128215683d1fd425b841e90b515aec04c9) Signed-off-by: Lei YU <mine260309@gmail.com> Change-Id: I83f436e51b33903a581bfc48541475711467bb61 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-01-23phosphor-power: Fix pkg_postinst scriptLei YU1-4/+7
The pkg_postinst script uses the variable OBMC_POWER_SUPPLY_INSTANCES that is not availabe during the post installation. This results in the links of power-supply-monitor@.service are not created. Use `@d.getVar()` to get the variable from bitbake fixed the issue. Also removes the default OBMC_POWER_SUPPLY_INSTANCES, let the build fail when OBMC_POWER_SUPPLY_INSTANCES is not defined. Otherwise such issues are only found at runtime. Tested: Verify the witherspoon build contains the power-supply-monitor@.service links; Unset OBMC_POWER_SUPPLY_INSTANCES, verify the build fails due to installation failure. (From meta-phosphor rev: 2e6bda873f9c96c71da0103310f3e970d1a5b999) Change-Id: Id70ea4c05b937bb93e7d93bcabf3a961cf295435 Signed-off-by: Lei YU <mine260309@gmail.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-10-30Add phosphor-power recipeLei YU1-0/+43
There was witherspoon-fault-analysis recipe in meta-ibm. Now the repo becomes a generic one, phosphor-power, add the recipe in meta-phosphor. Tested: Verify the build `bitbake phosphor-power` succeeds. With changes in meta-ibm/meta-witherspoon, verify phosphor-power is built correctly and the services are installed. (From meta-phosphor rev: 4d8175e674b521669822da61d09b338f391b38fa) Change-Id: I4e30bba75a0883c4e431c56a10eef7917b5c46c8 Signed-off-by: Lei YU <mine260309@gmail.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>