From 390aa6e35472aca0c4017ce095585fcbad42295e Mon Sep 17 00:00:00 2001 From: Abdellatif El Khlifi Date: Mon, 16 Nov 2020 11:59:29 +0000 Subject: [PATCH] arm-bsp: use forcevariable override to set Corstone-500 kernel Corstone-500 is built against poky-tiny distro. poky-tiny sets PREFERRED_PROVIDER_virtual/kernel to linux-yocto-tiny. Since distro config is evaluated after the machine config, we need to use the strongest override possible (forcevariable) so the PREFERRED_PROVIDER_virtual/kernel specified in the machine config will apply. Change-Id: Iafa9209bf39cf63e83faa6eefa2a442513992290 Signed-off-by: Abdellatif El Khlifi Signed-off-by: Ross Burton --- meta-arm-bsp/conf/machine/corstone500.conf | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/meta-arm-bsp/conf/machine/corstone500.conf b/meta-arm-bsp/conf/machine/corstone500.conf index 0358f1c2..ec1d9e2f 100644 --- a/meta-arm-bsp/conf/machine/corstone500.conf +++ b/meta-arm-bsp/conf/machine/corstone500.conf @@ -4,7 +4,15 @@ require conf/machine/include/tune-cortexa5.inc -PREFERRED_PROVIDER_virtual/kernel = "linux-yocto" +# +# Corstone-500 is built against poky-tiny distro. +# poky-tiny sets PREFERRED_PROVIDER_virtual/kernel to linux-yocto-tiny. +# Since distro config is evaluated after the machine config, we need to +# use the strongest override possible (forcevariable) so the +# PREFERRED_PROVIDER_virtual/kernel specified in the machine config will +# apply. +# +PREFERRED_PROVIDER_virtual/kernel_forcevariable = "linux-yocto" PREFERRED_VERSION_linux-yocto ?= "5.3%" KBUILD_DEFCONFIG = "multi_v7_defconfig" KCONFIG_MODE = "--alldefconfig"