]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
images: use 512M of RAM in qemu if 'opengl" is in DISTRO_FEATURES
authorAlexander Kanavin <alex.kanavin@gmail.com>
Tue, 20 Aug 2019 15:32:10 +0000 (17:32 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 22 Aug 2019 21:54:04 +0000 (22:54 +0100)
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.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/images/build-appliance-image_15.0.0.bb
meta/recipes-graphics/images/core-image-clutter.bb
meta/recipes-graphics/images/core-image-x11.bb
meta/recipes-sato/images/core-image-sato.bb

index e9cac98c572b823cba1005f31efff1e244b4ea48..3f1b1c7a5eed387cd1bbc2add34c9694c359379e 100644 (file)
@@ -11,6 +11,8 @@ IMAGE_INSTALL = "packagegroup-core-boot packagegroup-core-ssh-openssh packagegro
 
 IMAGE_FEATURES += "x11-base package-management splash"
 
+QB_MEM = '${@bb.utils.contains("DISTRO_FEATURES", "opengl", "-m 512", "-m 256", d)}'
+
 # Ensure there's enough space to do a core-image-sato build, with rm_work enabled
 IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
 
index b0f25cf1b14ad4f8240abe1d06ce315f06b2d6a9..a594461022f2f5008e74543789947beba9ca3126 100644 (file)
@@ -11,3 +11,5 @@ IMAGE_INSTALL = "\
     "
 
 inherit core-image
+
+QB_MEM = '${@bb.utils.contains("DISTRO_FEATURES", "opengl", "-m 512", "-m 256", d)}'
index 8455bb8caecbe3bfec319329d87b70c56af55553..cd5374949d54d40d92b69fa76e013830312334d4 100644 (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)}'
index b897950285621c376e527c614b97580aee21b18b..878e0eaa8d2433e390159bb68f9bfb7453716096 100644 (file)
@@ -10,3 +10,5 @@ inherit core-image
 
 TOOLCHAIN_HOST_TASK_append = " nativesdk-intltool nativesdk-glib-2.0"
 TOOLCHAIN_HOST_TASK_remove_task-populate-sdk-ext = " nativesdk-intltool nativesdk-glib-2.0"
+
+QB_MEM = '${@bb.utils.contains("DISTRO_FEATURES", "opengl", "-m 512", "-m 256", d)}'