diff options
author | Zane Shelley <zshelle@us.ibm.com> | 2021-03-24 01:13:08 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2021-04-07 19:35:20 +0300 |
commit | aa8acf1bc5abb986befc1c6e083878d8f4f3d5bd (patch) | |
tree | 22a8cfa913b946ab32151e3900b7503090ad8b1d | |
parent | ba367391404b097e6b1b06749e9781d6bec808e9 (diff) | |
download | openbmc-aa8acf1bc5abb986befc1c6e083878d8f4f3d5bd.tar.xz |
add PHAL API dependency to openpower-hw-diags
There are just a couple downstream PHAL APIs that are not available in
upstream libpdbg. So despite our best efforts, we need to conditionally
include the PHAL dependency. Fortunately, the impact is very small and
an alternative is provided in upstream openpower-hw-diags when the APIs
are not available.
Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
Change-Id: I235dda2f7472e758af4b5df720d45c0f0d694278
-rw-r--r-- | meta-openpower/recipes-phosphor/logging/openpower-hw-diags_git.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-openpower/recipes-phosphor/logging/openpower-hw-diags_git.bb b/meta-openpower/recipes-phosphor/logging/openpower-hw-diags_git.bb index 77eb8db04..5605f60de 100644 --- a/meta-openpower/recipes-phosphor/logging/openpower-hw-diags_git.bb +++ b/meta-openpower/recipes-phosphor/logging/openpower-hw-diags_git.bb @@ -25,3 +25,8 @@ DEPENDS = "boost libgpiod pdbg phosphor-logging sdbusplus openpower-libhei \ # This is required so that libhei is installed with the chip data files. RDEPENDS_${PN} += "openpower-libhei" + +# Conditionally pull in PHAL APIs, if available. +PACKAGECONFIG ??= "${@bb.utils.filter('OBMC_MACHINE_FEATURES', 'phal', d)}" +PACKAGECONFIG[phal] = "-Dphal=enabled, -Dphal=disabled, pdata" + |