meta-agl-bsp: Make more and better use of WIC images 61/11161/11
authorTom Rini <trini@konsulko.com>
Fri, 6 Oct 2017 17:37:14 +0000 (13:37 -0400)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Sat, 14 Oct 2017 19:56:27 +0000 (19:56 +0000)
- 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 <mporter@konsulko.com> (dra7xx-evm)
Tested-by: Tom Rini <trini@konsulko.com> (Intel)
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/11161
Reviewed-by: Scott Murray <scott.murray@konsulko.com>
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>
meta-agl-bsp/conf/include/agl_beaglebone.inc
meta-agl-bsp/conf/include/agl_dra7xx-evm.inc
meta-agl-bsp/conf/include/agl_intel-corei7-64.inc
meta-agl-bsp/conf/include/agl_joule.inc

index a56da30..69e8835 100644 (file)
@@ -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"
index f3abe4c..f5e8510 100644 (file)
@@ -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"
index 3cfcb11..36d6f47 100644 (file)
@@ -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"
index b6f14fc..310b089 100644 (file)
@@ -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"