diff options
author | Christopher Clark <christopher.w.clark@gmail.com> | 2017-09-17 18:21:38 -0700 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2017-09-19 09:22:55 -0400 |
commit | 33e8e20d3c52afbbaf3675383fedc20225f2c19b (patch) | |
tree | 12e928185ed2e581331261c4b318f6b84013140c /recipes-extended/images/xen-guest-image-minimal.bb | |
parent | 55b1cbe55dcd356e4d6b257ee1f58df9bb728665 (diff) | |
download | meta-virtualization-33e8e20d3c52afbbaf3675383fedc20225f2c19b.tar.gz |
xen-guest-image-minimal: Fix non-x86. Select x11 via IMAGE_FEATURES.
Fix the image for non-x86, both with and without x11 included.
* Only install xf86-video-vesa on x86 platforms as it is not
available elsewhere.
* In the absence of xf86-video-vesa (ie. on non-x86 platforms)
enable opengl and remove wayland from IMAGE_INSTALL to
satisfy build requirements for x11.
* Use IMAGE_FEATURES instead of DISTRO_FEATURES to enable x11
inclusion in the image.
* Verify the required DISTRO_FEATURE of 'xen' and if enabled, 'x11'.
* When building the Xserver with Xen in DISTRO_FEATURES, on non-x86,
turn off glamor by default, to remove dependency on egl.
Introduces: xserver-xorg_%.bbappend
Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-extended/images/xen-guest-image-minimal.bb')
-rw-r--r-- | recipes-extended/images/xen-guest-image-minimal.bb | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/recipes-extended/images/xen-guest-image-minimal.bb b/recipes-extended/images/xen-guest-image-minimal.bb index ab7e92c3..bca60178 100644 --- a/recipes-extended/images/xen-guest-image-minimal.bb +++ b/recipes-extended/images/xen-guest-image-minimal.bb | |||
@@ -1,14 +1,24 @@ | |||
1 | DESCRIPTION = "A Xen guest image." | 1 | DESCRIPTION = "A Xen guest image." |
2 | 2 | ||
3 | inherit core-image | 3 | inherit core-image distro_features_check |
4 | 4 | ||
5 | IMAGE_INSTALL += " \ | 5 | IMAGE_INSTALL += " \ |
6 | packagegroup-core-boot \ | 6 | packagegroup-core-boot \ |
7 | ${@bb.utils.contains('MACHINE_FEATURES', 'acpi', 'kernel-module-xen-acpi-processor', '', d)} \ | 7 | ${@bb.utils.contains('MACHINE_FEATURES', 'acpi', 'kernel-module-xen-acpi-processor', '', d)} \ |
8 | " | 8 | " |
9 | 9 | ||
10 | IMAGE_INSTALL += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' xf86-video-fbdev', '', d)}" | 10 | IMAGE_INSTALL += "${@bb.utils.contains('IMAGE_FEATURES', 'x11', ' xf86-video-fbdev', '', d)}" |
11 | IMAGE_INSTALL += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' xf86-video-vesa', '', d)}" | 11 | |
12 | # Install xf86-video-vesa on x86 platforms. | ||
13 | IMAGE_INSTALL_append_x86-64 = "${@bb.utils.contains('IMAGE_FEATURES', 'x11', ' xf86-video-vesa', '', d)}" | ||
14 | IMAGE_INSTALL_append_x86 = "${@bb.utils.contains('IMAGE_FEATURES', 'x11', ' xf86-video-vesa', '', d)}" | ||
15 | |||
16 | # When xf86-video-vesa is not present, add opengl and don't require wayland: | ||
17 | DISTRO_FEATURES_append = "${@bb.utils.contains('IMAGE_FEATURES', 'x11', \ | ||
18 | bb.utils.contains('IMAGE_INSTALL', 'xf86-video-vesa', '', ' opengl', d), '', d)}" | ||
19 | DISTRO_FEATURES_remove = "${@bb.utils.contains('IMAGE_INSTALL', 'xf86-video-vesa', '', 'wayland', d)}" | ||
20 | |||
21 | REQUIRED_DISTRO_FEATURES += "${@bb.utils.contains('IMAGE_FEATURES', 'x11', ' x11', '', d)} xen" | ||
12 | 22 | ||
13 | LICENSE = "MIT" | 23 | LICENSE = "MIT" |
14 | 24 | ||