diff options
author | Andrey V.Kosteltsev <AKosteltsev@IBS.RU> | 2022-08-05 03:42:01 +0300 |
---|---|---|
committer | Andrey V.Kosteltsev <AKosteltsev@IBS.RU> | 2022-08-05 03:43:55 +0300 |
commit | 47867852b8ddf2492c9165ac3c4e24c2c9bdbc96 (patch) | |
tree | ffa8f01ae38074a54c2dba899c867e14d1445177 | |
parent | f79fa854d16baa58fe0161bd686e8c1f97ec8a35 (diff) | |
download | openbmc-47867852b8ddf2492c9165ac3c4e24c2c9bdbc96.tar.xz |
phosphor-software-manager: Improve gen-bios-tarball
-rw-r--r-- | meta-ibs/meta-cp2-5422/recipes-phosphor/flash/phosphor-software-manager/gen-bios-tarball | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/meta-ibs/meta-cp2-5422/recipes-phosphor/flash/phosphor-software-manager/gen-bios-tarball b/meta-ibs/meta-cp2-5422/recipes-phosphor/flash/phosphor-software-manager/gen-bios-tarball index 9160451da8..46a62effe7 100644 --- a/meta-ibs/meta-cp2-5422/recipes-phosphor/flash/phosphor-software-manager/gen-bios-tarball +++ b/meta-ibs/meta-cp2-5422/recipes-phosphor/flash/phosphor-software-manager/gen-bios-tarball @@ -20,7 +20,7 @@ Options: image. -v, --version <name> Specify the version of bios image file. -e, --extended-version <name> Specify the Extended Version of bios image file - -c, --compatible-name <name> Specify the name of bios image in tarball. + -i, --image-name <name> Specify the name of bios image in tarball. Default: 'image-hostfw'. -h, --help Display this help text and exit. ' @@ -58,7 +58,7 @@ outfile="" machine="" version="" extended_version="" -compatible_name="image-hostfw" +image_name="image-hostfw" while [[ $# -gt 0 ]]; do key="$1" @@ -88,8 +88,8 @@ while [[ $# -gt 0 ]]; do extended_version="$2" shift 2 ;; - -c|--compatible-name) - compatible_name="$2" + -i|--image-name) + image_name="$2" shift 2 ;; -h|--help) @@ -156,16 +156,16 @@ manifest_location="MANIFEST" files_to_sign="$manifest_location $public_key_file" # Go to scratch_dir -cp "${file}" "${scratch_dir}/${compatible_name}" +cp "${file}" "${scratch_dir}/${image_name}" cd "${scratch_dir}" -files_to_sign+=" ${compatible_name}" +files_to_sign+=" ${image_name}" echo "Creating MANIFEST for the image" echo -e "purpose=xyz.openbmc_project.Software.Version.VersionPurpose.Host\n\ version=$version" > $manifest_location echo "ExtendedVersion=${extended_version}" >> $manifest_location -echo "CompatibleName=${compatible_name}" >> $manifest_location +echo "CompatibleName=${image_name}" >> $manifest_location if [[ -n "${machine}" ]]; then echo -e "MachineName=${machine}" >> $manifest_location |