Skip to content

Commit 32e7492

Browse files
committed
qcom-base: handle kvm via MACHINE_FEATURES or DISTRO_FEATURES
Enable KVM distro feature conditionally in qcom-base.inc based on MACHINE_FEATURES. This allows users to enable KVM either by setting 'kvm' in MACHINE_FEATURES (e.g. on boards like iq-9075-evk and qcs9100-ride-sx) or by explicitly selecting the qcom-distro-kvm distro variant. Signed-off-by: Viswanath Kraleti <viswanath.kraleti@oss.qualcomm.com>
1 parent f6b3b5d commit 32e7492

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

conf/distro/include/qcom-base.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ DISTRO_FEATURES:append = " \
2727
x11 \
2828
"
2929

30+
# Enable KVM distro feature if corresponding machine feature is set.
31+
# This allows users to enable KVM either via MACHINE_FEATURES or DISTRO_FEATURES.
32+
DISTRO_FEATURES:append = "${@bb.utils.contains('MACHINE_FEATURES', 'kvm', ' kvm', '', d)}"
33+
3034
# Use systemd init manager for system initialization.
3135
INIT_MANAGER = "systemd"
3236

0 commit comments

Comments
 (0)