summaryrefslogtreecommitdiff
path: root/meta-phosphor/classes/obmc-phosphor-utils.bbclass
diff options
context:
space:
mode:
authorTom Joseph <tomjoseph@in.ibm.com>2017-02-20 09:31:43 +0300
committerPatrick Williams <patrick@stwcx.xyz>2017-02-21 17:21:01 +0300
commit1562bbcb50e2bf7b6130dc9f8d34494cd115c8d5 (patch)
tree3d272e4ec35ffcd0a541d7275ee46465e8bcd386 /meta-phosphor/classes/obmc-phosphor-utils.bbclass
parentf7ef071db9da4fec6b43e683c1dae8b33c350479 (diff)
downloadopenbmc-1562bbcb50e2bf7b6130dc9f8d34494cd115c8d5.tar.xz
IPMI Whitelisted commands for FRU and OEM repositories
The IPMI whitelisted commands for phosphor-ipmi-fru and openpower-ipmi-oem is added. Only the IPMI whitelisted listed commands are allowed in restricted mode. The IPMI whitelisted commands for phosphor-ipmi-fru and openpower-ipmi-oem are added as native packages and host-ipmid depends on those. Change-Id: Ic4184773656567eb0dffa30ef29f8bc3ced3aff4 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Diffstat (limited to 'meta-phosphor/classes/obmc-phosphor-utils.bbclass')
-rw-r--r--meta-phosphor/classes/obmc-phosphor-utils.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-phosphor/classes/obmc-phosphor-utils.bbclass b/meta-phosphor/classes/obmc-phosphor-utils.bbclass
index 713c892fb..baaa19d57 100644
--- a/meta-phosphor/classes/obmc-phosphor-utils.bbclass
+++ b/meta-phosphor/classes/obmc-phosphor-utils.bbclass
@@ -42,3 +42,11 @@ def compose_list_zip(d, fmtvar, *listvars, **kw):
lists = [listvar_to_list(d, x) for x in listvars]
lst = [fmt.format(*x) for x in zip(*lists)]
return (kw.get('sep') or ' ').join(lst)
+
+
+def append_suffix(val, suffix):
+ words = val.split(' ')
+ newval = []
+ for w in words:
+ newval.append(w + suffix)
+ return ' '.join(newval) \ No newline at end of file