Skip to contentSkip to conversation

qemu: move qemu setting to image and out of layer.conf

PATCH New Armin Kuster 1 participant 1 message Jun 28, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu: move qemu setting to image and out of layer.conf

I suspect its better form to have these in the image definition.

---
 conf/layer.conf                             | 2 --
 recipes-core/images/security-build-image.bb | 5 +++++
 2 files changed, 5 insertions(+), 2 deletions(-)
conf/layer.conf +0 -2
index 334a945..05f678a 100644
@@ -26,6 +26,4 @@ BBFILES_DYNAMIC += " \
 # Setting SKIP_META_SECURITY_SANITY_CHECK to "1" would skip the bbappend files check.
 INHERIT += "sanity-meta-security"
 
-QB_KERNEL_CMDLINE_APPEND = " ${@bb.utils.contains('DISTRO_FEATURES', 'apparmor', 'apparmor=1 security=apparmor', '', d)}"
-
 addpylib ${LAYERDIR}/lib oeqa
recipes-core/images/security-build-image.bb +5 -0
index 411cd20..9c82049 100644
@@ -18,3 +18,8 @@ inherit core-image
 export IMAGE_BASENAME = "security-build-image"
 
 IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
+
+QB_KERNEL_CMDLINE_APPEND = " ${@bb.utils.contains('DISTRO_FEATURES', 'apparmor', 'apparmor=1 security=apparmor', '', d)}"
+
+# We need more mem to run many apps in this layer
+QB_MEM = "-m 2048"
Signature · 1 line
2.34.1