Browse Source

dubhe: setup.sh: Update sh script

Added qspi nfs image and removed dubhe image minimal.

Signed-off-by: weiheng.cheng <weiheng.cheng@starfivetech.com>
weiheng.cheng 1 year ago
parent
commit
e390264bdf
1 changed files with 3 additions and 19 deletions
  1. 3 19
      setup.sh

+ 3 - 19
setup.sh

@@ -149,7 +149,7 @@ echo -e "     QSPI-Image-Dual.bin for multicore vector.${NC}";
 echo "";
 
 PS3="Select your action : "
-options=("Build qspi-image" "Quit")
+options=("Build qspi-image" "Build qspi-nfs-image" "Quit")
 
 select opt in "${options[@]}" 
 do
@@ -168,7 +168,7 @@ do
                 runprog dubhe-image-initramfs;
             else echo -e "\U000274C ${RED}Build Failed${NC}"
             fi;;
-        "Build dubhe-image-minimal")
+        "Build qspi-nfs-image")
  #           cd ../build || { echo "Run setup.sh before building images."; cd meta-starfive; break; };
             if ! grep -q "ENABLE_EXT4" ./conf/local.conf; then
                 echo 'ENABLE_EXT4="1"' >> ./conf/local.conf;
@@ -176,28 +176,12 @@ do
 		 sed -i 's/ENABLE_UBI="1"/ENABLE_UBI="0"/g'  ./conf/local.conf;
             fi;
             cur_ter=$(tty);
-            output_min=$(MACHINE=starfive-dubhe bitbake dubhe-image-minimal | tee $cur_ter);
+            output_min=$(MACHINE=starfive-dubhe bitbake qspi-nfs-image | tee $cur_ter);
             if [[ $output_min != *"ERROR"* ]]; then
                 echo -e "\U0002705 ${GREEN}Build Complete${NC}"
                 runprog console-image-minimal;
             else echo -e "\U000274C ${RED}Build Failed${NC}"
             fi;;
-	"Build qspi-ubifs-image")
-#            cd ../build || { echo "Run setup.sh before building images."; cd meta-starfive; break; };
-            if ! grep -q "ENABLE_EXT4" ./conf/local.conf; then
-                echo 'ENABLE_EXT4="1"' >> ./conf/local.conf;
-            else sed -i 's/ENABLE_EXT4="0"/ENABLE_EXT4="1"/g'  ./conf/local.conf;
-            fi;
-	    if ! grep -q "ENABLE_UBI" ./conf/local.conf; then
-                echo 'ENABLE_UBI="1"' >> ./conf/local.conf;
-            else sed -i 's/ENABLE_UBI="0"/ENABLE_UBI="1"/g'  ./conf/local.conf;
-            fi;
-            cur_ter=$(tty);
-            output=$(MACHINE=starfive-dubhe bitbake qspi-ubifs-image | tee $cur_ter);
-            if [[ $output != *"ERROR"* ]]; then
-                echo -e "\U0002705 ${GREEN}Build Complete${NC}"
-            else echo -e "\U000274C ${RED}Build Failed${NC}"
-            fi;;
 	"Quit")
             break;;
         *)