summaryrefslogtreecommitdiff
path: root/BIOS/gen-bios-tarball
diff options
context:
space:
mode:
Diffstat (limited to 'BIOS/gen-bios-tarball')
-rwxr-xr-xBIOS/gen-bios-tarball14
1 files changed, 7 insertions, 7 deletions
diff --git a/BIOS/gen-bios-tarball b/BIOS/gen-bios-tarball
index 9160451..46a62ef 100755
--- a/BIOS/gen-bios-tarball
+++ b/BIOS/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