Added ExtendedVersion creation to gen-bios-tar

Now with gen-bios-tar you can add the ExtendedVersion
using the -e --extended arguments

Change-Id: I6eb3bd7f3a1e4510c8383d8eff730d6aad827f5c
Signed-off-by: Glukhov Mikhail <mikl@greenfil.ru>
diff --git a/gen-bios-tar b/gen-bios-tar
index a82a843..727e040 100755
--- a/gen-bios-tar
+++ b/gen-bios-tar
@@ -20,6 +20,7 @@
    -m, --machine <name>   Optionally specify the target machine name of this
                           image.
    -v, --version <name>   Specify the version of bios image file
+   -e, --extended <name>  Specify the extended version of bios image file
    -h, --help             Display this help text and exit.
 EOF
 )
@@ -80,6 +81,10 @@
       version="$2"
       shift 2
       ;;
+    -e|--extended)
+      extended="$2"
+      shift 2
+      ;;
     -h|--help)
       echo "$help"
       exit
@@ -152,6 +157,10 @@
 echo -e "purpose=xyz.openbmc_project.Software.Version.VersionPurpose.Host\n\
 version=$version" > $manifest_location
 
+if [[ -n "${extended}" ]]; then
+    echo -e "ExtendedVersion=\"${extended}\"" >> $manifest_location
+fi
+
 if [[ -n "${machine}" ]]; then
     echo -e "MachineName=${machine}" >> $manifest_location
 fi