Enforce same IMAGE_FSTYPES across all boards for AGL 69/9869/2
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Mon, 26 Jun 2017 20:50:53 +0000 (22:50 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Wed, 28 Jun 2017 20:01:46 +0000 (20:01 +0000)
This changeset enforces the same output images across all boards
to be ext4.xz and tar.xz . No exceptions.

Reasons: disk space, unification of instructions, download size

Bug-AGL: SPEC-492

Change-Id: I41c92ba1d92a6e5854cea470eea6e0b559945d5d
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9813
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
(cherry picked from commit be141be78efd87a910f03b83f7f89e5b2690d17f)
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9869

meta-agl-distro/conf/distro/poky-agl.conf
meta-netboot/classes/netboot.bbclass

index 595ec85..f925779 100644 (file)
@@ -113,3 +113,12 @@ require conf/distro/include/${TARGET_ARCH}-tune.inc
 # - use 1G RAM by default
 QB_MEM ?= "-m 1024"
 
+
+# DEFAULT IMAGE_FSTYPES for AGL (no - BSPs should not set this)
+#
+IMAGE_FSTYPES := "tar.xz ext4.xz"
+INITRAMFS_FSTYPES := ""
+
+#
+# THE FUTURE is 'wic'
+# IMAGE_FSTYPES_append = " wic"
index 753ef79..3440914 100644 (file)
@@ -4,8 +4,6 @@
 IMAGE_CLASSES += "${@'image_types_uboot' if (d.getVar("KERNEL_IMAGETYPE", True) == "uImage") else ''}"
 
 python () {
-       d.appendVar("IMAGE_FSTYPES"," ext4")
-
        if (bb.utils.contains("IMAGE_FSTYPES","live",True,False,d)):
                # typical case for Minnowboard Max
                d.setVar("INITRD_IMAGE","initramfs-netboot-image")
@@ -19,9 +17,9 @@ python () {
                d.setVar("INITRAMFS_IMAGE","initramfs-netboot-image")
                if (d.getVar("KERNEL_IMAGETYPE",True) == "uImage"):
                        # case for "old" u-boot images, like Porter board
-                       d.appendVar("INITRAMFS_FSTYPES"," ext4.gz.u-boot");
+                       d.setVar("INITRAMFS_FSTYPES_pn-initramfs-netboot-image", "ext4.gz.u-boot");
                else:
                        # case for new u-boot images which don't require uImage format 
-                       d.appendVar("INITRAMFS_FSTYPES"," ext4.gz");
+                       d.setVar("INITRAMFS_FSTYPES_pn-initramfs-netboot-image", "ext4.gz");
 }