diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2016-07-12 16:50:03 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-31 14:43:02 +0000 |
commit | 5d847e64247bc856b9369cccd2775320135eb7b6 (patch) | |
tree | 674a83a2b8d23e27f405881c811c790785f02333 /meta | |
parent | d053ce30718ab17e6eef843f7acef249f4f0f6a5 (diff) | |
download | poky-5d847e64247bc856b9369cccd2775320135eb7b6.tar.gz |
core-image-tiny-initramfs: Add and image creating image artifacts only
Add an image that simply creates image artifacts using
image-live-artifacts support instead of creating an actual image.
The image artifacts can then be subsequently assembled by an external
tool such as wic to create an actual image.
This eliminates redundant image creation when using such tools.
(From OE-Core rev: 97237259a9acb9a1511823914dea52b9719fbafd)
Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/images/core-image-tiny-initramfs.bb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-core/images/core-image-tiny-initramfs.bb b/meta/recipes-core/images/core-image-tiny-initramfs.bb new file mode 100644 index 0000000000..846d58930e --- /dev/null +++ b/meta/recipes-core/images/core-image-tiny-initramfs.bb | |||
@@ -0,0 +1,30 @@ | |||
1 | # Simple initramfs image artifact generation for tiny images. | ||
2 | DESCRIPTION = "Tiny image capable of booting a device. The kernel includes \ | ||
3 | the Minimal RAM-based Initial Root Filesystem (initramfs), which finds the \ | ||
4 | first 'init' program more efficiently. core-image-tiny-initramfs doesn't \ | ||
5 | actually generate an image but rather generates boot and rootfs artifacts \ | ||
6 | into a common location that can subsequently be picked up by external image \ | ||
7 | generation tools such as wic." | ||
8 | |||
9 | PACKAGE_INSTALL = "initramfs-live-boot packagegroup-core-boot dropbear ${VIRTUAL-RUNTIME_base-utils} udev base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}" | ||
10 | |||
11 | # Do not pollute the initrd image with rootfs features | ||
12 | IMAGE_FEATURES = "" | ||
13 | |||
14 | export IMAGE_BASENAME = "core-image-tiny-initramfs" | ||
15 | IMAGE_LINGUAS = "" | ||
16 | |||
17 | LICENSE = "MIT" | ||
18 | |||
19 | # don't actually generate an image, just the artifacts needed for one | ||
20 | IMAGE_FSTYPES = "${INITRAMFS_FSTYPES} wic" | ||
21 | |||
22 | inherit core-image | ||
23 | |||
24 | IMAGE_ROOTFS_SIZE = "8192" | ||
25 | IMAGE_ROOTFS_EXTRA_SPACE = "0" | ||
26 | |||
27 | BAD_RECOMMENDATIONS += "busybox-syslog" | ||
28 | |||
29 | # Use the same restriction as initramfs-live-install | ||
30 | COMPATIBLE_HOST = "(i.86|x86_64).*-linux" | ||