From: Nitin A Kamble <nitin.a.kam...@intel.com>

With this change, the Intel microcode support can be enabled or disabled
for any BSP by controlling the MACHINE_FEATURES variable.

Any BSP from meta-intel layer can enable the Intel microcode loading support
by adding the following line in the machine configuration.

MACHINE_FEATURES += "intel-ucode"

This change keeps the intel-microcode loading feature disabled by default,
and it is enabled as an "opt-in" feature using the MACHINE_FEATURES variable.

Signed-off-by: Nitin A Kamble <nitin.a.kam...@intel.com>
---
 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 f43903e..7dc0095 100644
--- a/conf/machine/include/meta-intel.inc
+++ b/conf/machine/include/meta-intel.inc
@@ -22,8 +22,8 @@ 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)}"
-- 
1.8.1.4

-- 
_______________________________________________
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel

Reply via email to