Add flag to flash fastboot, bootloader and TEE only.

Change-Id: Id45d8e9bcb1e64ac880b5c43d5f6c8a42d30f705
diff --git a/flash.sh b/flash.sh
index 5e132a2..88368c5 100755
--- a/flash.sh
+++ b/flash.sh
@@ -92,6 +92,14 @@
     popd
 }
 
+flash_fastboot() {
+    pushd ${PRODUCT_OUT}
+    ${FASTBOOT_TOOL} flash mmc0 GPT_EMMC
+    ${FASTBOOT_TOOL} flash mmc0boot0 lk.img
+    ${FASTBOOT_TOOL} flash TEE1 tz.img
+    popd
+}
+
 flash_all_images() {
     pushd ${PRODUCT_OUT}
     erase_mmc
@@ -109,9 +117,10 @@
 
 FLASHALL=0
 BOOTONLY=1
+LKONLY=2
 mode=$FLASHALL
 
-while getopts "h?vb" opt; do
+while getopts "h?vbf" opt; do
 	case $opt in
 		h|\?)
 			show_help
@@ -124,6 +133,9 @@
 		b)
 			mode=$BOOTONLY
 			;;
+		f)
+			mode=$LKONLY
+			;;
 	esac
 done
 
@@ -142,6 +154,11 @@
 		${FASTBOOT_TOOL} reboot
 		exit 0
 		;;
+	$LKONLY)
+		flash_fastboot
+		sleep 1
+		exit 0
+		;;
 	*) echo "Unknown flash mode."
 esac
 
diff --git a/packages.mk b/packages.mk
index f5efce1..41f711f 100644
--- a/packages.mk
+++ b/packages.mk
@@ -17,8 +17,7 @@
 $(eval $(call make-pbuilder-bsp-package-target,lk-bootloader,bootloader, u-boot-mkimage))
 $(eval $(call make-pbuilder-bsp-package-target,trustzone,trustzone,boot-keys))
 $(eval $(call make-pbuilder-bsp-package-target,boot-keys,bootloader/mtk-tools/keys,u-boot-mkimage))
-$(eval $(call make-pbuilder-bsp-package-target,excelsior-wlan,packages/excelsior-wlan))
+$(eval $(call make-pbuilder-bsp-package-target,excelsior-wlan,connectivity/mt7668-wifi-mod, linux-mtk,,binary))
 $(eval $(call make-pbuilder-bsp-package-target,excelsior-connectivity-fw,connectivity/mt7668-fw))
-$(eval $(call make-pbuilder-bsp-package-target,excelsior-nvram,packages/excelsior-nvram))
 $(eval $(call make-pbuilder-bsp-package-target,mtk-board-audio,packages/mtk-board-audio))
 $(eval $(call make-pbuilder-bsp-package-target,meta-excelsior,packages/meta-excelsior))