summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-phosphor/fans/phosphor-fan_git.bb
AgeCommit message (Collapse)AuthorFilesLines
2021-09-27Control - add CLI11 dependency to recipeMike Capps1-0/+1
compile-time dependency needed by fanctl Signed-off-by: Mike Capps <mikepcapps@gmail.com> Change-Id: Ic58a83ce3c85fe4ba75fc348628e6c0fac5fb870
2021-09-02meta-phosphor: change systemd.bbclass to match upstream override syntaxPatrick Williams1-7/+7
Upstream bbclasses changed to typically use the `:${PN}` override syntax, including the SYSTEMD_ variables. Change our systemd.bbclass to do the same for consistency and perform a tree-wide variable replacement. Spot checked by building bletchley and witherspoon and checking some of the SYSTEMD_LINK directives on installed packages under qemu. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I20a9dd809bff8af8759488734f80486c7228c6eb
2021-08-26meta-phosphor:fans: Include `fanctl` tool with phosphor-fan-controlMike Capps1-0/+1
This tool allows for controlling fan speeds, viewing targets and feedback values, and diagnostic info about fans and fan-control services. Commands: - status: print the RPM or PWM targets and view RPM feedback values for each fan/rotor. Also shows the health of the fan-control service and BMC power states. - set <target> : sets the targets for all fans (if no additional args) or for a list of one-or-more specific fans. - get : gets the targets and prints rotor speeds for all fans - reload: forces phosphor-fan-control to reload its configuration files by sending the service an interrupt signal. - resume: shortcut to restart phosphor-fan-control if it had been stopped for maintenance. Signed-off-by: Mike Capps <mikepcapps@gmail.com> Change-Id: Iaa7e447d2d5aa977482663ef6dd45aadffc58f55
2021-08-24meta-phosphor:fans:control: Enable JSON config install from repoMatthew Barth1-4/+9
Enable installing fan control's JSON config files into the image from the repository by machine name. Change-Id: I2d35783df55c5a154539972d70fb9564b5cb4038 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
2021-08-24meta-phosphor:fans:monitor: Enable JSON config install from repoMatthew Barth1-1/+6
Enable installing fan monitor's JSON config files into the image from the repository by machine name. Change-Id: I14f584c8aa24e18e5ffe9ab3eda8579edb9583c0 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
2021-08-24meta-phosphor:fans:presence: Enable JSON config install from repoMatthew Barth1-6/+12
Add setting the `MACHINE` name to the recipe and pass it to the fan presence package to use in installing its JSON config files for that machine into the image from the repository. Change-Id: Ib782d9013c5ad0cfc1b283563ef07dc812fb12f2 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
2021-08-11meta-phosphor: prep for new override syntaxPatrick Williams1-11/+11
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I588025b614416c43aa2d053765ab53bacf890cb5
2021-07-07fans: Link phosphor-fan-control service for JSON vs YAMLMatthew Barth1-3/+13
JSON configured phosphor-fan-control only uses the non-init service to start phosphor-fan-control at multi-user.target and poweron in case its stopped after multi-user.target is loaded. YAML configured phosphor-fan-control continues to use both the init and non-init service files without changing the targets each is linked to. Change-Id: I51a6fd9cafb72cde3dc8a0b37423dd56d1184a21 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
2021-02-25Get phosphor-fan-monitor service files from repoMatt Spinler1-4/+14
The phosphor-fan-presence repo installs different fan monitor service files based on if it was configured in YAML vs JSON mode. Update the recipe to link them in appropriately based on the mode, which is a packageconfig. Delete the service files out of meta-phosphor as they they now come from the repo. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Ie2b1bca8aca78b45f77acaff55721a0ff480400d
2021-02-25ibm: Install sensor-monitor on rainierMatt Spinler1-0/+8
This application resides in the phosphor-fan-presence repo and creates phosphor-logging based event logs for temperature threshold alarms. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Id5a7ce7590efe82eb1f9615853cabd58ac269c24
2021-02-25ibm: Start phosphor-fan-presence at multi-userMatt Spinler1-1/+9
This will start phosphor-fan-presence at the multi-user target. It doesn't need to know about the power state when just checking GPIOs and tach sensors, so let it run all the time. It also avoids a race condition with phosphor-fan-monitor if it starts earlier. This commit also adds a JSON vs YAML packageconfig so service files can be installed to different places based on how it is configured. And since the service file has different contents based on when it starts, the phosphor-fan-presence-tach@.service file was moved into the repo so that the repo itself can determine which one to install based on how the JSON vs YAML configuration option is set. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I4c00f0854974c70efb5097d0344c45385dbcb085
2020-04-07phosphor-fan-presence: srcrev bump 5a80f3aec4..f24d7749b3Andrew Geissler1-1/+1
Also switch inherit to python3native. Matthew Barth (1): Switch to use of python3 (From meta-phosphor rev: edc6affa3a15e0b1a2737763f5a17917f60c11de) Change-Id: I92dda018935b1765b0c809a709785e645282e139 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-07meta-phosphor: PN.inc to BPN.incPatrick Williams1-1/+1
Some recipes have abstracted the git revision into a separate file and have a line 'require ${PN}.inc'. The issue with PN is that it changes to have a -native or -nativesdk for those contexts. The variable ${BPN} (base package name) should be used instead. (From meta-phosphor rev: c7d848ec9b524114550f80276f7b5e45b9ad8d46) Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ib875fd9904b16379b20dc7891087b8e0bf90fe69 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-03meta-phosphor: update DEPENDS for sdbusplus-nativePatrick Williams1-1/+1
sdbusplus has changed the package layout so that sdbusplus-native and sdbus++-native are now ${PYTHON_PN}-sdbus++-native. Update recipes that need to use sdbus++ (or its associated python modules) or remove the DEPENDS if it is no longer necessary. (From meta-phosphor rev: 2bebd1247cb78567441158b152c7a13f476afd4f) Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I30f9c2220da9145ef0a7067e067aed1396d8b40d Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-03-19meta-phosphor: Update phosphor-fan python dependsMatthew Barth1-2/+2
Update needed to handle transition to python3 so the proper version of python dependencies are picked up. (From meta-phosphor rev: fc0ad52fcc46763a176688812d9c5c8ae25257f5) Change-Id: I8bc8ec414fc112c0c64627337c71f39ca1bdebbb Signed-off-by: Matthew Barth <msbarth@us.ibm.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-03-16meta-phosphor: Move generated fan sourceMatthew Barth1-4/+2
Have fan control and fan monitor generate their YAML configs into their respective build directories instead of the source directory. This allows bitbake to correctly regenerate/rebuild when the YAML config changes. Co-dependency: https://gerrit.openbmc-project.xyz/29505 Tested: Generated fan control config in build dir Generated fan monitor config in build dir `bitbake -c compile` regenerates config sources (From meta-phosphor rev: 4161558909ebb23bc6b52a2b35ff3a88bb891690) Change-Id: I79a2f6993d0c8e35afefc0aadeb2dc98922531c4 Signed-off-by: Matthew Barth <msbarth@us.ibm.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-01-15meta-phosphor: Add nholmann json dependsMatthew Barth1-0/+1
(From meta-phosphor rev: 0b94fef7630038920e007d81fd655bd6c89f3a1e) Change-Id: Idd80228f2e26fb017802482d19a3de7afb2f76c3 Signed-off-by: Matthew Barth <msbarth@us.ibm.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-05-22meta-phosphor: fans: remove native supportBrad Bishop1-11/+10
All OpenBMC BSP layers have moved to target class config recipes. As such, support for native class config recipes can be removed. (From meta-phosphor rev: f3b437c327b94df6f22c7d821f25d76f1d1c2180) Change-Id: I7729f7e34529a220af36b88017cb48a3ee887acb Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-05-21meta-phosphor: fans: enable non-native recipesBrad Bishop1-10/+11
There exists a number native class recipes throughout meta-phosphor that simply provide a data (often YAML) file as input to building another application. Having these data file recipes implemented as native class recipes prevents the use of machine overrides because bitbake (rightfully so) discards machine qualifiers from native recipes. Further, data files aren't really any different than library header files and those are consumed by recipes as target class recipes that are DEPENDed on. Do the same thing for data file recipes. A number of steps (patches) are required to ensure backward compatibility while other BSP layers make the transition to target class recipes. This patch is the first step in the sequence. Each native class recipe is duplicated with (approximately) the following transformation applied: 1 - remove "inherit native" 2 - add "inherit allarch" 3 - Add appropriate files to FILES_${PN} Also fixed a couple idiosyncrasies like SRC_URI += and LIC_FILES_CHKSUM that are not required. Finally, add a temporary layer of indirection around STAGING_DIR_NATIVE and STAGING_DIR_HOST to the fan metadata until other BSP layers have fully transitioned to target class config recipes. (From meta-phosphor rev: 19ee51f5cdce2ff2f076a3ca9263dabc79072ba9) Change-Id: I9671cc5343ed29a7ccfcee4cc00ebaaa9327e359 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-04-24phosphor-fan-presence: srcrev bump 59096e50db..71779ab4b3Andrew Geissler1-3/+3
Patrick Venture (1): build: install into bin instead of sbin meta-ibm: phosphor-fan: grab cooling-type from bindir The output binaries from phosphor-fan-presence are now installed into bin instead of sbin. Change-Id: I2d42f62b4535775ffd0d1b9473375dd8dc66bb61 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com> Signed-off-by: Patrick Venture <venture@google.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-10-30phosphor-fan-presence: Depend on gpioplusWilliam A. Kennington III1-0/+1
An upcoming change will require that gpioplus is available for building. (From meta-phosphor rev: 8711f98bdb372acbf85e7bec383ea6fbfcbafacc) Change-Id: I5a8544bf971c3bb512adb1ff88cef70997347394 Signed-off-by: William A. Kennington III <wak@google.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-10-26phosphor-fan: Depend on sdeventplusWilliam A. Kennington III1-0/+1
This will be needed for an upcoming change which causes phosphor-fan-presence to require sdeventplus. (From meta-phosphor rev: 581d3c2493b0aa94895ad7c74ce9994b09d52411) Change-Id: I8ec0a768b6d9a06710515b21c5c312a071bd1dd2 Signed-off-by: William A. Kennington III <wak@google.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-10-26phosphor-fan: Remove unneeded RDEPENDSWilliam A. Kennington III1-5/+0
These should be added as needed implicitly by the bitbake build process detecting libraries in use by the binaries here. (From meta-phosphor rev: ca8641ced139d28195bcf0d92ecf45fc98388ba1) Change-Id: I496d60285bf225e6e068f9b369900447c1733e01 Signed-off-by: William A. Kennington III <wak@google.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-10-22meta-phosphor: fan: drop symlinkPatrick Venture1-1/+117
Drop symlink and rename bb for phosphor-fan. (From meta-phosphor rev: eb43370c9c16ee4a97e369cb11b2090334fa7410) Change-Id: I605d6cf8c28bea1b5d0954ac8880313ccbdd4d31 Signed-off-by: Patrick Venture <venture@google.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-10-16meta-phosphor: phosphor-fan: Add symlink as gitPatrick Venture1-0/+1
Add a symbolic link to phosphor-fan.bb named _git.bb and sets the preferred version for the recipe. (From meta-phosphor rev: 62e60279eebdd727eca8a760b1cd6461300e6c57) Change-Id: Ic0ba46b6e79b95e62ecfe6a9538011a940a88514 Signed-off-by: Patrick Venture <venture@google.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>