Browse Source

Building: modify build_soft_3rdpart.sh to add into rootfs image

Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
Andy Hu 1 year ago
parent
commit
929cb86073
2 changed files with 5 additions and 1 deletions
  1. 3 0
      README.md
  2. 2 1
      build_soft_3rdpart.sh

+ 3 - 0
README.md

@@ -180,6 +180,9 @@ Please insert the TF card to the host and run command `df -h` to check the devic
 ```
 $ make -jx
 $ make buildroot_rootfs -jx
+$ ./build_soft_3rdpart.sh rootfs
+$ rm work/buildroot_rootfs/images/rootfs.ext*
+$ make buildroot_rootfs -jx
 $ make DISK=/dev/sdX format-rootfs-image && sync
 ```
 

+ 2 - 1
build_soft_3rdpart.sh

@@ -16,13 +16,14 @@ else
         echo "    $0";
         echo "    $0 initramfs";
         echo "    $0 rootfs";
+        exit 1
     fi
 fi
 echo "$Target_DIR"
 
 if [ ! -d $Target_DIR ]; then
     echo "Warning: need building the usdk firstly: $1"
-    exit
+    exit 1
 fi
 
 ################################################################