data: add the generic partition info data 04/273904/1 accepted/tizen/unified/20220418.042544 submit/tizen/20220418.013112
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 18 Apr 2022 00:41:40 +0000 (09:41 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 18 Apr 2022 00:41:40 +0000 (09:41 +0900)
To support network download, it needs to locate partition.info in hal.
This is the common partition layout to use Tizen.

Change-Id: Ife8ab1f948da5f6ab7a0f77c24fb302f8ac13187
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
data/partition_generic.info [new file with mode: 0644]
packaging/initrd-flash.spec

diff --git a/data/partition_generic.info b/data/partition_generic.info
new file mode 100644 (file)
index 0000000..1132d28
--- /dev/null
@@ -0,0 +1,8 @@
+p:/dev/mmcblk0p1:boot.img:x
+p:/dev/mmcblk0p2:rootfs.img:x
+p:/dev/mmcblk0p3:system-data.img:x
+p:/dev/mmcblk0p5:user.img:x
+p:/dev/mmcblk0p6:modules.img:x
+p:/dev/mmcblk0p7:ramdisk.img:x
+p:/dev/mmcblk0p8:ramdisk-recovery.img:x
+p:/dev/mmcblk0p10:hal.img:x
index 6a45ec0..7e887e7 100644 (file)
@@ -28,6 +28,15 @@ Provides:    fm-data
 %description -n fm-data-rpi3
 Provide flash-manager with partition table for flashing image and files of Raspberry Pi 3 board
 
+%package -n fm-data-generic
+Summary:       Generic Image data for flash manager
+Group:         System/Utilities
+Provides:      fm-data
+
+%description -n fm-data-generic
+Provide flash-manager with partition table for flashing image and files of common board
+
+
 %define init_script_dir %{_libdir}/initrd-recovery/flash
 %define initrd_recovery_install_dropin_dir %{_datadir}/initrd-recovery/initrd.list.d
 
@@ -55,6 +64,9 @@ cp ./data/partition_* %{buildroot}%{_hal_datadir}/
 %post -n fm-data-rpi3
 mv %{_hal_datadir}/partition_rpi3.info %{_hal_datadir}/partition.info
 
+%post -n fm-data-generic
+mv %{_hal_datadir}/partition_generic.info %{_hal_datadir}/partition.info
+
 %postun
 rm -f %{_hal_datadir}/partition.info
 
@@ -67,3 +79,6 @@ rm -f %{_hal_datadir}/partition.info
 
 %files -n fm-data-rpi3
 %{_hal_datadir}/partition_rpi3.info
+
+%files -n fm-data-generic
+%{_hal_datadir}/partition_generic.info