SoC c3 : scripts : add uboot package function. [2/2]

PD#SH-19850

Problem:
Need to optimize the compilation script and add uboot package function.

Solution:
add uboot package function.

Verify:
N/A

Change-Id: I7867cad21cc2dd6d10a7b852c36458c6ab07a9d5
Signed-off-by: yongbing.he <yongbing.he@amlogic.com>
diff --git a/gen_fastboot.sh b/gen_fastboot.sh
index b43b27d..807e402 100755
--- a/gen_fastboot.sh
+++ b/gen_fastboot.sh
@@ -8,15 +8,7 @@
 #RTOS root directory
 RTOS_BASE_DIR=$(realpath $(dirname $(readlink -f ${BASH_SOURCE[0]:-$0}))/..)
 
-PARSED=$(getopt --options o:a:b:s:h --long address:,board:,bl22:,sensor:,out:,uboot:,ipc-ddr-size:,ubootcfg:,help --name "$0" -- "$@")
-
-if [[ $? -ne 0 ]]; then
-    exit 1
-fi
-
-eval set -- "$PARSED"
-
-while true; do
+while [[ $# -gt 0 ]]; do
     case "$1" in
     -a | --address)
         RTOS_TARGET_ADDRESS=$2
@@ -72,10 +64,14 @@
         shift
         break
         ;;
-    *)
+    -*|--*)
         echo "Invalid option: $1" >&2
         exit 1
         ;;
+    *)
+        echo "No more options, just arguments" >&2
+        exit 1
+        ;;
     esac
 done