images: use 512M of RAM in qemu if 'opengl" is in DISTRO_FEATURES

256M was found to be no longer sufficient, as the X server fails to
start with the modesetting driver and 3D enabled.

Only images that actually include X11 are adjusted.

(From OE-Core rev: 9dd0812acc73287287b48d28e0935baf7f545b58)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexander Kanavin
2019-08-20 17:32:10 +02:00
committed by Richard Purdie
parent 1ff7748a61
commit 3f5c70649a
4 changed files with 8 additions and 0 deletions

View File

@@ -11,3 +11,5 @@ IMAGE_INSTALL = "\
"
inherit core-image
QB_MEM = '${@bb.utils.contains("DISTRO_FEATURES", "opengl", "-m 512", "-m 256", d)}'

View File

@@ -7,3 +7,5 @@ LICENSE = "MIT"
inherit core-image distro_features_check
REQUIRED_DISTRO_FEATURES = "x11"
QB_MEM = '${@bb.utils.contains("DISTRO_FEATURES", "opengl", "-m 512", "-m 256", d)}'