R-Car Gen3: Add WIC support 91/11391/3
authorTom Rini <trini@konsulko.com>
Thu, 19 Oct 2017 20:51:23 +0000 (16:51 -0400)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Sat, 21 Oct 2017 07:43:30 +0000 (07:43 +0000)
Add a new wks file for the R-Car Gen3 platforms.  Given that U-Boot is
on-device and not updated by us, we just need to make a single partition
that contains the rootfs.  This  matches the existing instructions.  We
need to include kernel-devicetree into the resulting image so that we
have the device tree there to be loaded in.

Bug-AGL: SPEC-899
Change-Id: Iad55ef0ed49e7a53846fa36393e71d16cd5e423d
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/11391
Reviewed-by: Stéphane Desneux <stephane.desneux@iot.bzh>
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Reviewed-by: Scott Murray <scott.murray@konsulko.com>
meta-agl-bsp/conf/include/agl_h3ulcb.inc
meta-agl-bsp/conf/include/agl_m3ulcb.inc
meta-agl-bsp/wic/singlepart-noloader.wks [new file with mode: 0644]

index 12634ce..e38cdc7 100644 (file)
@@ -40,6 +40,7 @@ DISTRO_FEATURES_append = " h264dec_lib h264enc_lib aaclcdec_lib aaclcdec_mdw"
 DISTRO_FEATURES_BACKFILL_remove = "gobject-introspection-data"
 
 IMAGE_INSTALL_append_rcar-gen3 = " \
+       kernel-devicetree \
        kernel-module-pvrsrvkm \
        kernel-module-vsp2 \
        kernel-module-vspm  \
@@ -49,3 +50,7 @@ IMAGE_INSTALL_append_rcar-gen3 = " \
 
 BBMASK .= "|meta-renesas-rcar-gen3/meta-rcar-gen3/recipes-forward-port/"
 OSTREE_BOOTLOADER ?= "u-boot"
+
+WKS_FILE = "singlepart-noloader.wks"
+
+AGL_EXTRA_IMAGE_FSTYPES = "wic.xz wic.bmap wic.xz.sha256sum"
index 73de005..7fcea65 100644 (file)
@@ -43,6 +43,7 @@ DISTRO_FEATURES_append = " h264dec_lib h264enc_lib aaclcdec_lib aaclcdec_mdw"
 DISTRO_FEATURES_BACKFILL_remove = "gobject-introspection-data"
 
 IMAGE_INSTALL_append_rcar-gen3 = " \
+       kernel-devicetree \
        kernel-module-pvrsrvkm \
        kernel-module-vsp2 \
        kernel-module-vspm  \
@@ -55,3 +56,7 @@ BBMASK .= "|meta-renesas-rcar-gen3/meta-rcar-gen3/recipes-forward-port/"
 OSTREE_KERNEL = "Image"
 IMAGE_BOOT_FILES_sota = "m3ulcb-ota-bootfiles/* Image-r8a7796-m3ulcb.dtb"
 OSTREE_BOOTLOADER ?= "u-boot"
+
+WKS_FILE = "singlepart-noloader.wks"
+
+AGL_EXTRA_IMAGE_FSTYPES = "wic.xz wic.bmap wic.xz.sha256sum"
diff --git a/meta-agl-bsp/wic/singlepart-noloader.wks b/meta-agl-bsp/wic/singlepart-noloader.wks
new file mode 100644 (file)
index 0000000..31c499a
--- /dev/null
@@ -0,0 +1,5 @@
+# short-description: Single partition rootfs with UUID and no bootloader
+# long-description: Creates a partitioned image with a single partition in
+# use and does not contain a bootloader.
+
+part / --source rootfs --use-uuid --fstype=ext4 --label root --align 4096