scripts: mkbootimg_rpi4.sh: Create boot tarball for the lthor flashing 66/220366/1 accepted/tizen/unified/20191218.120940 submit/tizen/20191218.054318
authorJunghoon Kim <jhoon20.kim@samsung.com>
Wed, 18 Dec 2019 00:49:11 +0000 (09:49 +0900)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Wed, 18 Dec 2019 00:54:57 +0000 (09:54 +0900)
This patch is to create boot tarball for the lthor flashing. With this,
we can easily test the rpi4 kernel in the local environment.

Change-Id: Iaf16cf1ae22f8b882fac7156c6ca499593f9539d
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
scripts/mkbootimg_rpi4.sh

index 194007f..896b0e7 100755 (executable)
@@ -57,3 +57,15 @@ sync
 sudo umount tmp/lib/modules
 
 rm -rf tmp tmp_modules
+
+# Create boot tarball for the lthor flashing
+DATE=`date +%Y%m%d`
+BOOT_TARBALL=tizen-local-${DATE}-boot-armv7l-rpi4.tar
+
+tar cf ${BOOT_TARBALL} boot.img modules.img
+if [ "$?" != "0" ]; then
+       echo "Failed to create boot tarball"
+       exit 1
+fi
+
+echo ${BOOT_TARBALL}