From c64ade471ab70860604db2ade19ec6cfe9504f50 Mon Sep 17 00:00:00 2001 From: Nitin A Kamble Date: Wed, 17 Sep 2014 09:45:24 -0700 Subject: meta-intel: Add new intel-ucode MACHINE_FEATURE With this change, Intel microcode support can be enabled or disabled for any BSP by controlling the MACHINE_FEATURES variable. Any BSP from the meta-intel layer can enable Intel microcode loading support by adding the following line in the machine configuration. MACHINE_FEATURES += "intel-ucode" This change keeps the intel-microcode feature disabled by default; it can however be enabled as an "opt-in" feature via the MACHINE_FEATURES variable. Signed-off-by: Nitin A Kamble Signed-off-by: Tom Zanussi --- conf/machine/include/meta-intel.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/machine/include/meta-intel.inc b/conf/machine/include/meta-intel.inc index 9acce846..a3e1972e 100644 --- a/conf/machine/include/meta-intel.inc +++ b/conf/machine/include/meta-intel.inc @@ -22,11 +22,11 @@ XSERVER_X86_ASPEED_AST = "xf86-video-ast \ " # include the user space intel microcode loading support in the generated images. -MACHINE_ESSENTIAL_EXTRA_RDEPENDS_append = " intel-microcode iucode-tool" +MACHINE_ESSENTIAL_EXTRA_RDEPENDS_append = "${@bb.utils.contains('MACHINE_FEATURES', 'intel-ucode', ' intel-microcode', '', d)}" -# For the early boot time kernel microcode loading support, +# for the early boot time kernel microcode loading support, # merge the microcode data in the final initrd image. -INITRD_prepend = "${DEPLOY_DIR_IMAGE}/microcode.cpio " +INITRD_prepend = "${@bb.utils.contains('MACHINE_FEATURES', 'intel-ucode', '${DEPLOY_DIR_IMAGE}/microcode.cpio ', '', d)}" # Use the LTSI kernel for LSB images PREFERRED_VERSION_linux-yocto_linuxstdbase ?= "3.10%" -- cgit v1.2.3-54-g00ecf