diff options
author | Andrey V.Kosteltsev <AKosteltsev@IBS.RU> | 2022-08-05 03:39:18 +0300 |
---|---|---|
committer | Andrey V.Kosteltsev <AKosteltsev@IBS.RU> | 2022-08-05 03:39:18 +0300 |
commit | 08192b751ca1320b3827cf63080ae12c15d96df4 (patch) | |
tree | 2234aff06e4c657676ace7a13f17307a0f2b03a6 /BIOS | |
parent | 6a28c0405050ba829e0fac3a202441b1bea4ac30 (diff) | |
download | sila-service-08192b751ca1320b3827cf63080ae12c15d96df4.tar.xz |
Improve scripts
Diffstat (limited to 'BIOS')
-rw-r--r-- | BIOS/README.md | 2 | ||||
-rwxr-xr-x | BIOS/gen-bios-tarball | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/BIOS/README.md b/BIOS/README.md index 34d8293..f0027f9 100644 --- a/BIOS/README.md +++ b/BIOS/README.md @@ -12,7 +12,7 @@ ./gen-bios-tarball \ --machine cp2-5422 \ --version 1.50 \ - --compatible-name bios-image \ + --image-name image-hostfw \ --extended-version 456555-012 \ --out obmc-bios-image-cp2-5422-1.50-456555-012.tar.gz \ 469555_012_sila_bios_test_kcs_cpuinfo.fd 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 |