Skip to contentSkip to conversation

container-base: Allow building with a specific kernel binding

PATCH In review Jason Wessel 2 participants 2 messages Apr 4, 2019 – Apr 8, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 container-base: Allow building with a specific kernel binding

The oe-core layer sets a variable which intends that linux-dummy is set for container building. This commit would allow you to have a specific kernel and board setup as well as generate multiple containers by turrning off the linux-dummy check found in:

oe-core/meta/classes/image-container.bbclass

---
 recipes-extended/images/container-base.bb | 3 +++
 1 file changed, 3 insertions(+)
recipes-extended/images/container-base.bb +3 -0
index 3e636ca..434239a 100644
@@ -20,6 +20,9 @@ IMAGE_INSTALL = " \
        netbase \
 "
 
+# Allow build with or without a specific kernel
+IMAGE_CONTAINER_NO_DUMMY = "1"
+
 # Workaround /var/volatile for now
 ROOTFS_POSTPROCESS_COMMAND += "rootfs_fixup_var_volatile ; "
 rootfs_fixup_var_volatile () {
Signature · 1 line
2.18.1
#1 lore raw
Quoted 5 lines · Jason Wessel

The oe-core layer sets a variable which intends that linux-dummy is set for container building. This commit would allow you to have a specific kernel and board setup as well as generate multiple containers by turrning off the linux-dummy check found in:

Makes sense to me as well.

Merged

Bruce

Quoted 30 lines

oe-core/meta/classes/image-container.bbclass

---
 recipes-extended/images/container-base.bb | 3 +++
 1 file changed, 3 insertions(+)
recipes-extended/images/container-base.bb +3 -1
index 3e636ca..434239a 100644
@@ -20,6 +20,9 @@ IMAGE_INSTALL = " \
        netbase \
 "
 
+# Allow build with or without a specific kernel
+IMAGE_CONTAINER_NO_DUMMY = "1"
+
 # Workaround /var/volatile for now
 ROOTFS_POSTPROCESS_COMMAND += "rootfs_fixup_var_volatile ; "
 rootfs_fixup_var_volatile () {
--

2.18.1

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II