Add ARTIK530_710 target
authorKichan Kwon <k_c.kwon@samsung.com>
Wed, 1 Nov 2017 11:25:16 +0000 (20:25 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Tue, 14 Nov 2017 01:56:11 +0000 (10:56 +0900)
- TODO : add routine for ramdisk(-recovery)

- Temporarily, make the EXCLUDED update type
  - Just (un)tar image and don't make delta
  - To extract delta.ua from ramdisk2

Change-Id: I9a342865a0e883343c04b3de3907dbd30d7372f1
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
mk_delta/artik530_710/cfg/delta.cfg [new file with mode: 0644]
mk_delta/artik530_710/data/new_tar/.gitignore [new file with mode: 0755]
mk_delta/artik530_710/data/old_tar/.gitignore [new file with mode: 0755]
mk_delta/common/bin/mk_delta.sh
mk_delta/common/bin/mk_part_delta.sh

diff --git a/mk_delta/artik530_710/cfg/delta.cfg b/mk_delta/artik530_710/cfg/delta.cfg
new file mode 100644 (file)
index 0000000..1396125
--- /dev/null
@@ -0,0 +1,7 @@
+# Configuration for generation of delta
+# Partition Name (in PIT), bin name (in tar), delta name, update type, blk dev, blk offset
+
+ROOTFS         rootfs.img                              rootfs.img/                                     DELTA_FS        /dev/mmcblk0p3          0
+# TODO : make a new update type for ramdisk
+RAMDISK1       ramdisk.img                             N/A                                                     EXCLUDED        N/A                                     N/A
+RAMDISK2       ramdisk-recovery.img    N/A                                                     EXCLUDED        N/A                                     N/A
diff --git a/mk_delta/artik530_710/data/new_tar/.gitignore b/mk_delta/artik530_710/data/new_tar/.gitignore
new file mode 100755 (executable)
index 0000000..e69de29
diff --git a/mk_delta/artik530_710/data/old_tar/.gitignore b/mk_delta/artik530_710/data/old_tar/.gitignore
new file mode 100755 (executable)
index 0000000..e69de29
index a2ca51d..3004ed6 100755 (executable)
@@ -64,7 +64,9 @@ fn_gen_update_cfg()
                f4=${BLK_DEV[${update_idx}]}
                f5=${BLK_OFFSET[${update_idx}]}
 
-               echo -e "$f1\t\t$f2\t\t$f3\t\t$f4\t\t$f5" >> ${out_file}
+               if [ "${f3}" != "EXCLUDED" ]; then
+                       echo -e "$f1\t\t$f2\t\t$f3\t\t$f4\t\t$f5" >> ${out_file}
+               fi
        done
 
        return 0
@@ -215,7 +217,10 @@ do
 
                PART_OUT=${part_name}_OUT
 
-               if [ "${update_type}" = "EXTRA" ]; then
+               if [ "${update_type}" = "EXCLUDED" ]; then
+                       ${MK_PART_DELTA} ${part_name} ${update_type} ${part_bin} ${delta_bin}
+                       continue
+               elif [ "${update_type}" = "EXTRA" ]; then
                        fn_process_extra_delta
                else
                        ${MK_PART_DELTA} ${part_name} ${update_type} ${part_bin} ${delta_bin}
index 968e067..3e0854a 100755 (executable)
@@ -552,6 +552,10 @@ elif [ "${PART_NAME}" = "ROOTFS" ]; then
        fn_extract_from_image ${PART_BIN} /usr/bin/upgrade-trigger.sh
 fi
 
+if [ "${UPDATE_TYPE}" = "EXCLUDED" ]; then
+       exit 0
+fi
+
 OLD_TAR_MISSING=
 if [ "z${OLD_TAR_FILE}" = "z" ]; then
        OLD_TAR_MISSING="TRUE"