From fdf111b8b25d7728182443f03833302598fad170 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Fri, 6 Oct 2017 13:37:14 -0400 Subject: meta-agl-bsp: Make more and better use of WIC images - When we are using a WIC image, we should compress it (xz), provide a sha256sum of the compressed image and provide a bmap file for the uncompressed image. - Ensure that in these targets we are listing WIC as the AGL_EXTRA_IMAGE_FSTYPES to be used. - Based on the Beaglebone example, add WIC support for dra7xx-evm. The only change from Beaglebone is that we must also include uEnv.txt as this is what controls the DTB for the correct LCD. Bug-AGL: SPEC-899 Change-Id: I3f310a2eb268a4aaa0d791dfaa68d7fee350e150 Tested-by: Matt Porter (dra7xx-evm) Tested-by: Tom Rini (Intel) Signed-off-by: Tom Rini Reviewed-on: https://gerrit.automotivelinux.org/gerrit/11161 Reviewed-by: Scott Murray Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller --- meta-agl-bsp/conf/include/agl_beaglebone.inc | 2 +- meta-agl-bsp/conf/include/agl_dra7xx-evm.inc | 7 +++++++ meta-agl-bsp/conf/include/agl_intel-corei7-64.inc | 2 +- meta-agl-bsp/conf/include/agl_joule.inc | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/meta-agl-bsp/conf/include/agl_beaglebone.inc b/meta-agl-bsp/conf/include/agl_beaglebone.inc index a56da30ce..69e883572 100644 --- a/meta-agl-bsp/conf/include/agl_beaglebone.inc +++ b/meta-agl-bsp/conf/include/agl_beaglebone.inc @@ -41,4 +41,4 @@ SECURITY_CFLAGS_pn-libatasmart = "" SECURITY_LDFLAGS_pn-libatasmart = "" -AGL_EXTRA_IMAGE_FSTYPES = "wic.xz" +AGL_EXTRA_IMAGE_FSTYPES = "wic.xz wic.bmap wic.xz.sha256sum" diff --git a/meta-agl-bsp/conf/include/agl_dra7xx-evm.inc b/meta-agl-bsp/conf/include/agl_dra7xx-evm.inc index f3abe4cc5..f5e85100d 100644 --- a/meta-agl-bsp/conf/include/agl_dra7xx-evm.inc +++ b/meta-agl-bsp/conf/include/agl_dra7xx-evm.inc @@ -47,3 +47,10 @@ IMAGE_INSTALL_append = " \ ${PACKAGES_MULTIMEDIA} \ cmem \ " + +# 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" +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/conf/include/agl_intel-corei7-64.inc b/meta-agl-bsp/conf/include/agl_intel-corei7-64.inc index 3cfcb11f7..36d6f4723 100644 --- a/meta-agl-bsp/conf/include/agl_intel-corei7-64.inc +++ b/meta-agl-bsp/conf/include/agl_intel-corei7-64.inc @@ -24,6 +24,6 @@ IMAGE_INSTALL_append = " \ va-intel \ gstreamer1.0-vaapi" -AGL_DEFAULT_IMAGE_FSTYPES = "wic hddimg" +AGL_EXTRA_IMAGE_FSTYPES = "wic.xz wic.bmap wic.xz.sha256sum hddimg" INITRD_LIVE = "${DEPLOY_DIR_IMAGE}/${INITRD_IMAGE_LIVE}-${MACHINE}.ext4.gz" NOISO = "1" diff --git a/meta-agl-bsp/conf/include/agl_joule.inc b/meta-agl-bsp/conf/include/agl_joule.inc index b6f14fca8..310b08979 100644 --- a/meta-agl-bsp/conf/include/agl_joule.inc +++ b/meta-agl-bsp/conf/include/agl_joule.inc @@ -9,6 +9,6 @@ IMAGE_INSTALL_append = " \ gstreamer1.0-vaapi" OSTREE_BOOTLOADER ?= "u-boot" -AGL_DEFAULT_IMAGE_FSTYPES = "wic hddimg" +AGL_EXTRA_IMAGE_FSTYPES = "wic.xz wic.bmap wic.xz.sha256sum hddimg" INITRD_LIVE = "${DEPLOY_DIR_IMAGE}/${INITRD_IMAGE_LIVE}-${MACHINE}.ext4.gz" NOISO = "1" -- cgit 1.2.3-korg