Skip to contentSkip to conversation

arago-prefs: Change how variants interact with the kernel choice

PATCH In review Ryan Eatmon 2 participants 2 messages Feb 1, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arago-prefs: Change how variants interact with the kernel choice

Rather than just explicitly locking the PREFERRED_PROVIDER_virtual/kernel to linux-ti-staging and the suffix, use the :append to add the suffix to whatever value PREFERRED_PROVIDER_virtual/kernel is. This allows a machine in a BSP layer to control which kernel to use as the bsse.

In the event that the kernel/variant choice is not valid the error report from bitbake is very vague, but it does fail so you will not get an incorrect build.

---
 meta-arago-distro/conf/distro/include/arago-prefs.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-distro/conf/distro/include/arago-prefs.inc +1 -1
index 2dc4f212..34c3c539 100644
@@ -6,7 +6,7 @@ PREFERRED_PROVIDER_ltp-ddt = "ltp-ddt"
 
 PREFERRED_PROVIDER_virtual/gettext = "gettext"
 
-PREFERRED_PROVIDER_virtual/kernel = "linux-ti-staging${ARAGO_KERNEL_SUFFIX}"
+PREFERRED_PROVIDER_virtual/kernel:append = "${ARAGO_KERNEL_SUFFIX}"
 
 PREFERRED_PROVIDER_jpeg = "libjpeg-turbo"
 
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Ryan Eatmon via lists.yoctoproject.org

Rather than just explicitly locking the PREFERRED_PROVIDER_virtual/kernel to linux-ti-staging and the suffix, use the :append to add the suffix to whatever value PREFERRED_PROVIDER_virtual/kernel is. This allows a machine in a BSP layer to control which kernel to use as the bsse.

In the event that the kernel/variant choice is not valid the error report from bitbake is very vague, but it does fail so you will not get an incorrect build.

Quoted 16 lines
---
 meta-arago-distro/conf/distro/include/arago-prefs.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-distro/conf/distro/include/arago-prefs.inc +1 -1
index 2dc4f212..34c3c539 100644
@@ -6,7 +6,7 @@ PREFERRED_PROVIDER_ltp-ddt = "ltp-ddt"
 
 PREFERRED_PROVIDER_virtual/gettext = "gettext"
 
-PREFERRED_PROVIDER_virtual/kernel = "linux-ti-staging${ARAGO_KERNEL_SUFFIX}"
+PREFERRED_PROVIDER_virtual/kernel:append = "${ARAGO_KERNEL_SUFFIX}"
 
 PREFERRED_PROVIDER_jpeg = "libjpeg-turbo"