build_inf.sh: add option for each base OS

Issue-ID: INF-281

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ibc86893cb372c7d82ca8f8192445996c7192d6e6
diff --git a/scripts/build_inf.sh b/scripts/build_inf.sh
index fc5b602..1424cdc 100755
--- a/scripts/build_inf.sh
+++ b/scripts/build_inf.sh
@@ -82,8 +82,11 @@
 
 DRYRUN=""
 YP_ARGS="-s"
+YOCTO_ONLY="No"
+CENTOS_ONLY="No"
+DEBIAN_ONLY="No"
 
-while getopts "w:b:e:r:unh" OPTION; do
+while getopts "w:ycdnh" OPTION; do
     case ${OPTION} in
         w)
             WORKSPACE=`readlink -f ${OPTARG}`
@@ -92,6 +95,15 @@
             DRYRUN="-n"
             YP_ARGS=""
             ;;
+        y)
+            YOCTO_ONLY="Yes"
+            ;;
+        c)
+            CENTOS_ONLY="Yes"
+            ;;
+        d)
+            DEBIAN_ONLY="Yes"
+            ;;
         h)
             help_info
             exit
@@ -207,7 +219,15 @@
     get_debug_info
 fi
 
-build_yocto
-build_centos
-#build_debian
+if [ "${YOCTO_ONLY}" == "Yes" ]; then
+    build_yocto
+elif [ "${CENTOS_ONLY}" == "Yes" ]; then
+    build_centos
+elif [ "${DEBIAN_ONLY}" == "Yes" ]; then
+    build_debian
+else
+    build_centos
+    build_yocto
+    build_debian
+fi