diff options
author | Chanh Nguyen <chanh@amperemail.onmicrosoft.com> | 2021-01-29 10:29:23 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2021-02-25 15:24:00 +0300 |
commit | 02bf199495b66989299b575353070c8281079656 (patch) | |
tree | 4b2f8cb2df9cd86692a5a12ba745ed828cba7de9 /meta-phosphor/classes | |
parent | 0a392ffe1c98e5f2c0fc951af13e39728c741925 (diff) | |
download | openbmc-02bf199495b66989299b575353070c8281079656.tar.xz |
image_types_phosphor: Adding the extended version in MANIFEST
This patch will add the "ExtendedVersion" field in manifest file.
Note the extended version is typically set in the
openbmc/meta-*/meta-MACHINE/conf/local.conf.sample file
(This is where TEMPLATECONF points to.) by "EXTENDED_VERSION"
variable.
Signed-off-by: Chanh Nguyen <chanh@amperemail.onmicrosoft.com>
Change-Id: I071448badd3b3f56e7d771af0a058bb58db04511
Diffstat (limited to 'meta-phosphor/classes')
-rw-r--r-- | meta-phosphor/classes/image_types_phosphor.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-phosphor/classes/image_types_phosphor.bbclass b/meta-phosphor/classes/image_types_phosphor.bbclass index fa5d3191c..1ec8706cb 100644 --- a/meta-phosphor/classes/image_types_phosphor.bbclass +++ b/meta-phosphor/classes/image_types_phosphor.bbclass @@ -501,9 +501,11 @@ python do_generate_phosphor_manifest() { purpose = d.getVar('VERSION_PURPOSE', True) version = do_get_version(d) target_machine = d.getVar('MACHINE', True) + extended_version = (d.getVar('EXTENDED_VERSION', True) or "") with open('MANIFEST', 'w') as fd: fd.write('purpose={}\n'.format(purpose)) fd.write('version={}\n'.format(version.strip('"'))) + fd.write('ExtendedVersion={}\n'.format(extended_version)) fd.write('KeyType={}\n'.format(get_pubkey_type(d))) fd.write('HashType=RSA-SHA256\n') fd.write('MachineName={}\n'.format(target_machine)) |