[meta-intel] [PATCH][V2] linux-yocto_4.4: Add INTEL_MACHINE_SUBTYPE code
Saul Wold
sgw at linux.intel.com
Wed Nov 9 13:46:55 PST 2016
This adds some a couple of bb.utils.contains() checks for an
INTEL_MACHINE_SUBSTPYE to pull the appropriate SRCREV
and KBRACH to build an alternate kernel.
Also adds support for Broxton-m/Joule device as an example.
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
v1: did not work as expected in a couple of cases that I tested later
common/recipes-kernel/linux/linux-yocto_4.4.bbappend | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/recipes-kernel/linux/linux-yocto_4.4.bbappend b/common/recipes-kernel/linux/linux-yocto_4.4.bbappend
index fca6231..948ece0 100644
--- a/common/recipes-kernel/linux/linux-yocto_4.4.bbappend
+++ b/common/recipes-kernel/linux/linux-yocto_4.4.bbappend
@@ -17,9 +17,9 @@ KERNEL_FEATURES_append_core2-32-intel-common = "${KERNEL_FEATURES_INTEL_COMMON}"
LINUX_VERSION_corei7-64-intel-common = "${LINUX_VERSION_INTEL_COMMON}"
COMPATIBLE_MACHINE_corei7-64-intel-common = "${MACHINE}"
KMACHINE_corei7-64-intel-common = "intel-corei7-64"
-KBRANCH_corei7-64-intel-common = "${KBRANCH_INTEL_COMMON}"
SRCREV_meta_corei7-64-intel-common ?= "${SRCREV_META_INTEL_COMMON}"
-SRCREV_machine_corei7-64-intel-common ?= "${SRCREV_MACHINE_INTEL_COMMON}"
+SRCREV_machine_corei7-64-intel-common ?= "${@bb.utils.contains('INTEL_MACHINE_SUBTYPE', 'broxton-m', 'b7ddcae5f0f374ab7ffd49b0f8636328f5e3386f', '${SRCREV_MACHINE_INTEL_COMMON}', d)}"
+KBRANCH_corei7-64-intel-common = "${@bb.utils.contains('INTEL_MACHINE_SUBTYPE', 'broxton-m', 'standard/intel/bxt-rebase;rebaseable=1', '${KBRANCH_INTEL_COMMON}', d)}"
KERNEL_FEATURES_append_corei7-64-intel-common = "${KERNEL_FEATURES_INTEL_COMMON}"
# Quark / X1000 BSP Info
--
2.7.4
More information about the meta-intel
mailing list