Guest User

Untitled

a guest
Apr 23rd, 2026
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. $ bitbake-getvar DISTRO_FEATURES -r virtual/kernel
  2. DISTRO_FEATURES=" systemd usrmerge acl argp ext2 ipv4 ipv6 largefile minidebuginfo pci manpages usbhost vfat virtualization xattr"
  3.  
  4. recipes-kernel/linux/linux-%.bbappend:
  5.  
  6. include ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', 'linux-${KERNEL_META_TYPE}_${LINUX_MAJOR}.${LINUX_MINOR}_virtualization.inc', '', d)}
  7. # ^- does not include (I changed it to require, and if I add something to the else path it errors out)
  8.  
  9. python __anonymous () {
  10. # Gather the variables
  11. virt_enabled = bb.utils.contains('DISTRO_FEATURES', 'virtualization', 'True', '', d )
  12. # ^- is true
  13. }
Advertisement
Add Comment
Please, Sign In to add comment