arago-prefs: Change how variants interact with the kernel choice
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
@@ -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
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.
Signed-off-by Ryan Eatmon <[email protected]>
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@@ -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"