diff options
author | Willy Tu <wltu@google.com> | 2022-06-09 20:42:03 +0300 |
---|---|---|
committer | Willy Tu <wltu@google.com> | 2022-06-09 23:17:36 +0300 |
commit | c4596d223cc72682b4b356b5b4ed9f0bd36f497f (patch) | |
tree | 7fe6982bab3aa8f00d8ce48feabdc816a2cbf221 /meta-google/recipes-phosphor/ipmi | |
parent | 065ecd69e700b59f0534c24a974aff207e9f6b18 (diff) | |
download | openbmc-c4596d223cc72682b4b356b5b4ed9f0bd36f497f.tar.xz |
Revert "meta-google- ipmi-config: Add google-version support"
This reverts commit e5ffc52b405319038480c826d0ed8c76edef7338.
Reason for revert: The gbmc_version task does not always get triggered properly due to bitbake cache. This may cause failure in the version check and be problematic.
Change-Id: I783ad8563ad16a1e6ed3e7f4d92323655e97afac
Signed-off-by: Willy Tu <wltu@google.com>
Diffstat (limited to 'meta-google/recipes-phosphor/ipmi')
-rw-r--r-- | meta-google/recipes-phosphor/ipmi/phosphor-ipmi-config.bbappend | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/meta-google/recipes-phosphor/ipmi/phosphor-ipmi-config.bbappend b/meta-google/recipes-phosphor/ipmi/phosphor-ipmi-config.bbappend index 1ae745908e..2f2d9e0881 100644 --- a/meta-google/recipes-phosphor/ipmi/phosphor-ipmi-config.bbappend +++ b/meta-google/recipes-phosphor/ipmi/phosphor-ipmi-config.bbappend @@ -41,38 +41,3 @@ do_install:append:gbmc() { echo "[]" > ${D}${datadir}/ipmi-providers/entity-map.json fi } - -python do_gbmc_version () { - import json - - if d.getVar('GBMC_VERSION') is None: - return - - version = d.getVar('GBMC_VERSION').split('.') - major = min(int(version[0]), 0x7F) & 0x7F - minor = min(int(version[1]), 99) - minor = int(minor / 10) * 16 + minor % 10; - point = int(version[2]) - subpoint = int(version[3]) - - dev_id = { - "id": 0, - "revision": 0, - "addn_dev_support": 0, - "firmware_revision": { - "major": major, - "minor": minor - }, - "manuf_id": 11129, - "prod_id": 14426, - "aux": subpoint << 16 | (0xFFFF & point) - } - - dir = d.getVar('WORKDIR') - os.makedirs(dir, exist_ok=True) - path = os.path.join(dir, 'dev_id.json') - with open(path, 'w') as f: - json.dump(dev_id, f, sort_keys=True, indent=4) -} - -addtask gbmc_version before do_install |