]> code.ossystems Code Review - openembedded-core.git/commitdiff
image-container.bbclass: Add the "container" IMAGE_FSTYPES
authorRandy Witt <randy.e.witt@linux.intel.com>
Wed, 18 Jan 2017 18:31:50 +0000 (10:31 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 19 Feb 2017 14:47:09 +0000 (06:47 -0800)
The "container" fstype does very little other than pick tar.bz2 as the
actual image type and disable installation of ROOTFS_BOOTSTRAP_INSTALL.

[YOCTO #9502]

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/image-container.bbclass [new file with mode: 0644]
meta/classes/image.bbclass
meta/classes/image_types.bbclass

diff --git a/meta/classes/image-container.bbclass b/meta/classes/image-container.bbclass
new file mode 100644 (file)
index 0000000..a10ee32
--- /dev/null
@@ -0,0 +1,3 @@
+ROOTFS_BOOTSTRAP_INSTALL = ""
+IMAGE_TYPES_MASKED += "container"
+IMAGE_TYPEDEP_container = "tar.bz2"
index 5c9dc628614078b41a875e44d7a7f47d8c717ab2..127e62d5d95bc9b8db787303a147c876b9265e3b 100644 (file)
@@ -142,6 +142,9 @@ inherit ${IMAGE_TYPE_live}
 IMAGE_TYPE_vm = '${@bb.utils.contains_any("IMAGE_FSTYPES", ["vmdk", "vdi", "qcow2", "hdddirect"], "image-vm", "", d)}'
 inherit ${IMAGE_TYPE_vm}
 
+IMAGE_TYPE_container = '${@bb.utils.contains("IMAGE_FSTYPES", "container", "image-container", "", d)}'
+inherit ${IMAGE_TYPE_container}
+
 def build_uboot(d):
     if 'u-boot' in (d.getVar('IMAGE_FSTYPES') or ''):
         return "image_types_uboot"
index fd19112a12614ff292ba44ce09538f48871618e9..d2eb99dbb729f1eb53f3fa3d2f735fd8ef5aba40 100644 (file)
@@ -242,6 +242,7 @@ IMAGE_TYPES = " \
     hdddirect \
     elf \
     wic wic.gz wic.bz2 wic.lzma \
+    container \
 "
 
 # Compression is a special case of conversion. The old variable