summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/classes/obmc-phosphor-utils.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* Replace base_contains with bb.utils.containsSaqib Khan2017-03-211-5/+2
| | | | | | | | base_contains has been deprecated and is replaced by bb.utils.contains Change-Id: I8cf9b63b43febed1557e4644c97ccd6614152f98 Signed-off-by: Saqib Khan <khansa@us.ibm.com>
* Specify len() of object by converting to listSaqib Khan2017-03-161-2/+2
| | | | | | | | Helps resolve the following error in python3: TypeError: object of type 'filter' has no len() Change-Id: Id607186baeacc3802f651d5cb72af82d0c10115b Signed-off-by: Saqib Khan <khansa@us.ibm.com>
* IPMI Whitelisted commands for FRU and OEM repositoriesTom Joseph2017-02-211-0/+8
| | | | | | | | | | | | 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>
* utils: Shuffle [cf|mf|df]_enabled argumentsBrad Bishop2017-02-021-8/+8
| | | | | | | | Reorder the arguments to these functions so that an optional falsevalue can be provided. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: I7eff61064d05d7f0983e404f2c67306ed12a237b
* utils: add compose list utilitiesBrad Bishop2016-09-061-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | Utilities for generating lists from an arbitrary number of other lists. LIST1 = "0 1" LIST2 = "x y" FORMAT = "str{0}-fmt{1}" LIST3="${@compose_list(d, 'FORMAT', 'LIST1', 'LIST2')}" results in after expansion: LIST3="str0-fmtx str0-fmty str1-fmtx str1-fmty" LIST1 = "0 1 2" LIST2 = "a b c" LIST3 = "x y z"" FORMAT = "python{0}-str{1}-fmt{2}" LIST3="${@compose_list_zip(d, 'FORMAT', 'LIST1', 'LIST2', 'LIST3')}" results in after expansion: LIST3="python0-stra-fmtx python1-strb-fmty python2-strc-fmtz" Change-Id: Ibcdbd579fa628803a279c65042303dd8336edcaf Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* classes-systemd: General refactoringBrad Bishop2016-07-281-0/+12
| | | | | | | | | | | Take the more idiomatic approach of iterating on SYSTEMD_PACKAGES to find service files. The OBMC_SYSTEMD_SERVICE variable isn't meant to be used directly by recipes. Rename it to something that seems less public. Change-Id: If031937d4716b9c7e6ac1be506457e41109b69c1 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* classes-utils: Whitespace fixesBrad Bishop2016-07-111-5/+8
| | | | | | Four spaces for python code. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add 'meta-phosphor/' from commit '93fb535853a24d4c3c42ec425ac92c9d3de13294'Patrick Williams2015-09-151-0/+14
git-subtree-dir: meta-phosphor git-subtree-mainline: 21f9b84b4b729fbd7acbd465e7a3f726e4d20f91 git-subtree-split: 93fb535853a24d4c3c42ec425ac92c9d3de13294
OpenPOWER on IntegriCloud