dra7xx-evm, beaglebone: Switch to sdimage-bootpart-uuid for wic 85/13585/1
authorTom Rini <trini@konsulko.com>
Wed, 7 Mar 2018 22:19:42 +0000 (17:19 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 8 Mar 2018 12:44:54 +0000 (07:44 -0500)
Introduce a new wks file, sdimage-bootpart-uuid.wks that differs from
sdimage-bootpart.wks in that it uses --use-uuid rather than --ondisk as
PARTUUID is more portable and we do not use busybox mount in our images.

Bug-AGL: SPEC-1336
Change-Id: Ib98d1e49406f8b8ac13c3947f4efbc4360cf9865
Signed-off-by: Tom Rini <trini@konsulko.com>
meta-agl-bsp/conf/include/agl_beaglebone.inc
meta-agl-bsp/conf/include/agl_dra7xx-evm.inc
meta-agl-bsp/wic/sdimage-bootpart-uuid.wks [new file with mode: 0644]

index 69e8835..988b3d5 100644 (file)
@@ -40,5 +40,6 @@ SECURITY_LDFLAGS_pn-gpm = ""
 SECURITY_CFLAGS_pn-libatasmart = ""
 SECURITY_LDFLAGS_pn-libatasmart = ""
 
+WKS_FILE = "sdimage-bootpart-uuid.wks"
 
 AGL_EXTRA_IMAGE_FSTYPES = "wic.xz wic.bmap wic.xz.sha256sum"
index 02ddb6c..876d6e9 100644 (file)
@@ -52,7 +52,7 @@ IMAGE_INSTALL_append = " \
 
 # Include WIC support based on beaglebone
 do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
-WKS_FILE = "sdimage-bootpart.wks"
+WKS_FILE = "sdimage-bootpart-uuid.wks"
 IMAGE_BOOT_FILES = "MLO u-boot.img uEnv.txt"
 
 AGL_EXTRA_IMAGE_FSTYPES = "wic.xz wic.bmap wic.xz.sha256sum"
diff --git a/meta-agl-bsp/wic/sdimage-bootpart-uuid.wks b/meta-agl-bsp/wic/sdimage-bootpart-uuid.wks
new file mode 100644 (file)
index 0000000..1f51a0b
--- /dev/null
@@ -0,0 +1,6 @@
+# short-description: Create SD card image with a boot partition
+# long-description: Creates a partitioned SD card image. Boot files
+# are located in the first vfat partition.
+
+part /boot --source bootimg-partition --fstype=vfat --label boot --use-uuid --active --align 4 --size 16
+part / --source rootfs --fstype=ext4 --label root --align 4 --use-uuid