android 在lunch選項中添加項目名

 在alps\device\mediateksample\project-name\AndroidProducts.mk中添加你的項目名aaa,即可

    full_aaaa_101-eng \
    full_aaaa_101-userdebug \
    full_aaaa_101-user  

 

如果要過濾則是可以按下面:

diff --git a/alps/build/make/envsetup.sh b/alps/build/make/envsetup.sh
index 9e381a23e3..16e529af12 100755
--- a/alps/build/make/envsetup.sh
+++ b/alps/build/make/envsetup.sh
@@ -577,6 +577,11 @@ function print_lunch_menu()
     local choice
     for choice in $(TARGET_BUILD_APPS= get_build_var COMMON_LUNCH_CHOICES)
     do
+#added for filter out starting with _vnd start
+        if [[ $choice == vnd_* ]]; then
+            continue
+        fi
+#added for filter out starting with _vnd end
         echo "     $i. $choice"
         i=$(($i+1))
     done
@@ -631,6 +636,14 @@ function lunch()
         fi
     fi
 
+#added for filter out starting with _vnd start
+        if [[ $product == vnd_* ]]; then
+            echo
+            echo "Invalid lunch combo: KTE filter out $selection"
+            return 1
+        fi
+#added for filter out starting with _vnd end
+
     if [ -z "$product" ]
     then
         echo

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章