mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-06-06 14:50:03 +00:00
arm-autonomy/n1sdp: Use anonymous function to set kernel provider
Only set PREFERRED_PROVIDER_virtual/kernel in arm-autonomy to linux-linaro-arm if it is set to linux-yocto. Allows it to be modifed from local.conf, e.g. for RT builds. Issue-Id: SCM-2185 Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: Ied871389ccaa017437babb4f0cb48d23862eb7bd Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -50,8 +50,11 @@ IMAGE_EFI_BOOT_FILES += "xen-n1sdp.efi;xen.efi"
|
||||
IMAGE_EFI_BOOT_FILES += "${XEN_MOD_DEVICETREE_DTBS}"
|
||||
|
||||
# Use 5.4 kernel until later versions have been validated for autonomy-host
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-linaro-arm"
|
||||
PREFERRED_VERSION_linux-linaro-arm = "5.4%"
|
||||
python() {
|
||||
if d.getVar('PREFERRED_PROVIDER_virtual/kernel') == 'linux-yocto':
|
||||
d.setVar('PREFERRED_PROVIDER_virtual/kernel', 'linux-linaro-arm')
|
||||
d.setVar('PREFERRED_VERSION_linux-linaro-arm', '5.4%')
|
||||
}
|
||||
|
||||
# When alternate-kernel DISTRO_FEATURE is present we set the linux-linaro-arm-rt
|
||||
# by default
|
||||
|
||||
Reference in New Issue
Block a user