diff options
author | Vijay Khemka <vijaykhemka@fb.com> | 2019-09-18 22:28:46 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-10-17 15:17:54 +0300 |
commit | ae614bd37981e44361aaf8ad81ec9738b0da56e4 (patch) | |
tree | 3c4158ff5e7fe58f22acc73522b795c21e491ef5 /meta-phosphor/classes | |
parent | 1794d7df47ec57ba5111de0bd79cad5e80b7c2e3 (diff) | |
download | openbmc-ae614bd37981e44361aaf8ad81ec9738b0da56e4.tar.xz |
meta-phosphor: Adding machine name in MANIFEST
Added machine name in the image manifest file which can be used to
verify on target while upgrading
(From meta-phosphor rev: ba9f97ed4018c8a6b1d74cb958bfb2a80fd94546)
Change-Id: I31dca600c0a2ff1bd2cf8e13c486e529d245b5d7
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
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 f7742c85e..05f58b2e6 100644 --- a/meta-phosphor/classes/image_types_phosphor.bbclass +++ b/meta-phosphor/classes/image_types_phosphor.bbclass @@ -377,11 +377,13 @@ def get_pubkey_path(d): python do_generate_phosphor_manifest() { version = do_get_version(d) + target_machine = d.getVar('MACHINE', True) with open('MANIFEST', 'w') as fd: fd.write('purpose=xyz.openbmc_project.Software.Version.VersionPurpose.BMC\n') fd.write('version={}\n'.format(version.strip('"'))) fd.write('KeyType={}\n'.format(get_pubkey_type(d))) fd.write('HashType=RSA-SHA256\n') + fd.write('MachineName={}\n'.format(target_machine)) } do_generate_phosphor_manifest[dirs] = "${S}" do_generate_phosphor_manifest[depends] += " \ |