From 47867852b8ddf2492c9165ac3c4e24c2c9bdbc96 Mon Sep 17 00:00:00 2001 From: "Andrey V.Kosteltsev" Date: Fri, 5 Aug 2022 03:42:01 +0300 Subject: phosphor-software-manager: Improve gen-bios-tarball --- .../flash/phosphor-software-manager/gen-bios-tarball | 14 +++++++------- 1 file 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 Specify the version of bios image file. -e, --extended-version Specify the Extended Version of bios image file - -c, --compatible-name Specify the name of bios image in tarball. + -i, --image-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 -- cgit v1.2.3