[yocto] [PATCH 6/7] ia32-base.inc: Use a weak default assignment for kernel provider and version

Darren Hart dvhart at linux.intel.com
Tue May 1 15:12:50 PDT 2012


Using the default assignment operator (?=) requires the including recipes
to ensure to assign the Linux kernel provider and version prior to including
ia32-base.inc. By use the weak default assignment operator (??=), the assignment
can come after the inclusion, which avoids confusion and can lead to a more
natural recipe structure.

Signed-off-by: Darren Hart <dvhart at linux.intel.com>
---
 conf/machine/include/ia32-base.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/conf/machine/include/ia32-base.inc b/conf/machine/include/ia32-base.inc
index 874e258..be1c8e0 100644
--- a/conf/machine/include/ia32-base.inc
+++ b/conf/machine/include/ia32-base.inc
@@ -26,8 +26,8 @@ GLIBC_EXTRA_OECONF += "--with-tls"
 #
 # kernel-related variables
 #
-PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
-PREFERRED_VERSION_linux-yocto ?= "3.0%"
+PREFERRED_PROVIDER_virtual/kernel ??= "linux-yocto"
+PREFERRED_VERSION_linux-yocto ??= "3.0%"
 
 #
 # XSERVER subcomponents, used to build the XSERVER variable
-- 
1.7.7.6




More information about the yocto mailing list