diff options
author | Patrick Venture <venture@google.com> | 2018-10-03 21:27:00 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-10-09 06:13:03 +0300 |
commit | 4cdfde1e48c6ba33868c6d795ea76584422cbc79 (patch) | |
tree | 1a6a731a721b07b4ca9d66b87df7e9763d586971 /meta-phosphor/classes | |
parent | ab7b73debc3ab719b28c4718a31eefee3e98dfe4 (diff) | |
download | openbmc-4cdfde1e48c6ba33868c6d795ea76584422cbc79.tar.xz |
class: obmc-phosphor-ipmiprovider-symlink: Add IPMI Blobs
The IPMI Blobs handler is loaded by phosphor-host-ipmid at run-time, and
this handler then searches for IPMI Blob Handlers. This patch adds the
option to register them against this class and installs a symlink to
blob handlers in a location expected by the blob manager. This is akin
to what's presently done for phosphor-host-ipmid and phosphor-net-ipmid.
(From meta-phosphor rev: 4b3f25f6d43caa08e4f424d875c46212727f0d08)
Change-Id: Ied2b1adf85ec9510c119f9b79367a284ad376751
Signed-off-by: Patrick Venture <venture@google.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-phosphor/classes')
-rw-r--r-- | meta-phosphor/classes/obmc-phosphor-ipmiprovider-symlink.bbclass | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta-phosphor/classes/obmc-phosphor-ipmiprovider-symlink.bbclass b/meta-phosphor/classes/obmc-phosphor-ipmiprovider-symlink.bbclass index 7a8649661..a025b4299 100644 --- a/meta-phosphor/classes/obmc-phosphor-ipmiprovider-symlink.bbclass +++ b/meta-phosphor/classes/obmc-phosphor-ipmiprovider-symlink.bbclass @@ -2,9 +2,14 @@ inherit obmc-phosphor-utils +# This LIBDIR is searched for the libraries. LIBDIR = "${D}/${libdir}/ipmid-providers/" + +# The symlinks are installed in the following directories depending on the +# variable. HOSTIPMI_LIBDIR = "${D}/${libdir}/host-ipmid/" NETIPMI_LIBDIR = "${D}/${libdir}/net-ipmid/" +BLOBIPMI_LIBDIR = "${D}/${libdir}/blob-ipmid/" python symlink_create_postinstall() { def install_symlink(d, libname, install_dir): @@ -34,5 +39,9 @@ python symlink_create_postinstall() { for libname in listvar_to_list(d, 'NETIPMI_PROVIDER_LIBRARY'): install_dir = d.getVar('NETIPMI_LIBDIR', True) install_symlink(d, libname, install_dir) + + for libname in listvar_to_list(d, 'BLOBIPMI_PROVIDER_LIBRARY'): + install_dir = d.getVar('BLOBIPMI_LIBDIR', True) + install_symlink(d, libname, install_dir) } do_install[postfuncs] += "symlink_create_postinstall" |