diff options
author | Randy Witt <randy.e.witt@linux.intel.com> | 2017-01-18 10:31:50 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-02-19 06:49:00 -0800 |
commit | 1b8f485c2431582abd5f709ea4cc919477bec97b (patch) | |
tree | 6819e57e585fe47e0e74d77be9af99a49780ca03 /meta | |
parent | b57e93c5c8653c983c28a037c0d4824b739285d9 (diff) | |
download | poky-1b8f485c2431582abd5f709ea4cc919477bec97b.tar.gz |
image-container.bbclass: Add the "container" IMAGE_FSTYPES
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]
(From OE-Core rev: e45f074b792a43aa2fd84a5a3f0e20bf1d88ad7e)
Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/image-container.bbclass | 3 | ||||
-rw-r--r-- | meta/classes/image.bbclass | 3 | ||||
-rw-r--r-- | meta/classes/image_types.bbclass | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/image-container.bbclass b/meta/classes/image-container.bbclass new file mode 100644 index 0000000000..a10ee326ce --- /dev/null +++ b/meta/classes/image-container.bbclass | |||
@@ -0,0 +1,3 @@ | |||
1 | ROOTFS_BOOTSTRAP_INSTALL = "" | ||
2 | IMAGE_TYPES_MASKED += "container" | ||
3 | IMAGE_TYPEDEP_container = "tar.bz2" | ||
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 5c9dc62861..127e62d5d9 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -142,6 +142,9 @@ inherit ${IMAGE_TYPE_live} | |||
142 | IMAGE_TYPE_vm = '${@bb.utils.contains_any("IMAGE_FSTYPES", ["vmdk", "vdi", "qcow2", "hdddirect"], "image-vm", "", d)}' | 142 | IMAGE_TYPE_vm = '${@bb.utils.contains_any("IMAGE_FSTYPES", ["vmdk", "vdi", "qcow2", "hdddirect"], "image-vm", "", d)}' |
143 | inherit ${IMAGE_TYPE_vm} | 143 | inherit ${IMAGE_TYPE_vm} |
144 | 144 | ||
145 | IMAGE_TYPE_container = '${@bb.utils.contains("IMAGE_FSTYPES", "container", "image-container", "", d)}' | ||
146 | inherit ${IMAGE_TYPE_container} | ||
147 | |||
145 | def build_uboot(d): | 148 | def build_uboot(d): |
146 | if 'u-boot' in (d.getVar('IMAGE_FSTYPES') or ''): | 149 | if 'u-boot' in (d.getVar('IMAGE_FSTYPES') or ''): |
147 | return "image_types_uboot" | 150 | return "image_types_uboot" |
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index fd19112a12..d2eb99dbb7 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass | |||
@@ -242,6 +242,7 @@ IMAGE_TYPES = " \ | |||
242 | hdddirect \ | 242 | hdddirect \ |
243 | elf \ | 243 | elf \ |
244 | wic wic.gz wic.bz2 wic.lzma \ | 244 | wic wic.gz wic.bz2 wic.lzma \ |
245 | container \ | ||
245 | " | 246 | " |
246 | 247 | ||
247 | # Compression is a special case of conversion. The old variable | 248 | # Compression is a special case of conversion. The old variable |