[meta-intel] [PATCH 2/2] meta-intel.inc: allow disabling of Intel microcode

nitin.a.kamble at intel.com nitin.a.kamble at intel.com
Wed Sep 17 12:44:45 PDT 2014


From: Nitin A Kamble <nitin.a.kamble at intel.com>

As per request from Tom, allow disabling of the Intel microcode
feature for meta-intel BSPs.

If one adds this line to local.conf while build a meta-intel BSP,
the microcode feature will be disabled for the build target.

DISABLE_INTEL_MICROCODE = "1"

Signed-off-by: Nitin A Kamble <nitin.a.kamble at intel.com>
---
 conf/machine/include/meta-intel.inc | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/conf/machine/include/meta-intel.inc b/conf/machine/include/meta-intel.inc
index f43903e..e8134a7 100644
--- a/conf/machine/include/meta-intel.inc
+++ b/conf/machine/include/meta-intel.inc
@@ -20,10 +20,11 @@ XSERVER_X86_MATROX_MGA = "xf86-video-mga \
 
 XSERVER_X86_ASPEED_AST = "xf86-video-ast \
            "
-
+# if not disabled,
 # 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 = "${@[' intel-microcode iucode-tool', ''][d.getVar('DISABLE_INTEL_MICROCODE', True) != '1']}"
 
-# For the early boot time kernel microcode loading support,
+# if not disabled,
+# 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 = "${@['${DEPLOY_DIR_IMAGE}/microcode.cpio ', ''][d.getVar('DISABLE_INTEL_MICROCODE', True) != '1']}"
-- 
1.8.1.4



More information about the meta-intel mailing list