<p>Youness Alaoui has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/26497">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">intel/common/firmware: Add config to specify me_cleaner arguments<br><br>Having the ME stripping integrated in coreboot is great, but useless<br>if you can't specify the -S option (to set HAP bit) or other custom<br>options you might need (such as '-w MFS' for librems).<br><br>This commit adds a config option to specify the me_cleaner arguments.<br>In the Makefile, the quotes around the config variables are removed but<br>escaped characters are not unescaped.<br><br>Change-Id: I7c39533ac07f517c1d652f1fb907be99eb62b836<br>Signed-off-by: Youness Alaoui <youness.alaoui@puri.sm><br>---<br>M src/southbridge/intel/common/firmware/Kconfig<br>M src/southbridge/intel/common/firmware/Makefile.inc<br>2 files changed, 15 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/97/26497/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/southbridge/intel/common/firmware/Kconfig b/src/southbridge/intel/common/firmware/Kconfig</span><br><span>index fd6a523..a0f8274 100644</span><br><span>--- a/src/southbridge/intel/common/firmware/Kconfig</span><br><span>+++ b/src/southbridge/intel/common/firmware/Kconfig</span><br><span>@@ -100,6 +100,20 @@</span><br><span> </span><br><span>     If unsure, say N.</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+config ME_CLEANER_ARGUMENTS</span><br><span style="color: hsl(120, 100%, 40%);">+  string "Optional arguments to pass to me_cleaner for ME stripping"</span><br><span style="color: hsl(120, 100%, 40%);">+  depends on USE_ME_CLEANER</span><br><span style="color: hsl(120, 100%, 40%);">+     default ""</span><br><span style="color: hsl(120, 100%, 40%);">+  help</span><br><span style="color: hsl(120, 100%, 40%);">+    The me_cleaner tool can take additional arguments such as -S to enable</span><br><span style="color: hsl(120, 100%, 40%);">+        the HAP/AltMeDisable bit, or -w to whitelist specific partitions, etc..</span><br><span style="color: hsl(120, 100%, 40%);">+       Be careful with using quotes in your arguments here, as a</span><br><span style="color: hsl(120, 100%, 40%);">+     -w "MFS"</span><br><span style="color: hsl(120, 100%, 40%);">+    argument will result with me_cleaner receiving :</span><br><span style="color: hsl(120, 100%, 40%);">+      -w \"MFS\"</span><br><span style="color: hsl(120, 100%, 40%);">+          and since no partition is named "MFS" (including quotes), it won't find</span><br><span style="color: hsl(120, 100%, 40%);">+         it and won't whitelist it.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> comment "Please test the modified ME/TXE firmware and coreboot in two steps"</span><br><span>         depends on USE_ME_CLEANER</span><br><span> </span><br><span>diff --git a/src/southbridge/intel/common/firmware/Makefile.inc b/src/southbridge/intel/common/firmware/Makefile.inc</span><br><span>index d6e6296..c2ebd13 100644</span><br><span>--- a/src/southbridge/intel/common/firmware/Makefile.inc</span><br><span>+++ b/src/southbridge/intel/common/firmware/Makefile.inc</span><br><span>@@ -63,7 +63,7 @@</span><br><span> endif</span><br><span> ifeq ($(CONFIG_USE_ME_CLEANER),y)</span><br><span>         printf "    ME_CLEANER coreboot.pre\n"</span><br><span style="color: hsl(0, 100%, 40%);">-        util/me_cleaner/me_cleaner.py $(obj)/coreboot.pre > \</span><br><span style="color: hsl(120, 100%, 40%);">+      util/me_cleaner/me_cleaner.py $(patsubst "%,%,$(patsubst %",%,$(CONFIG_ME_CLEANER_ARGUMENTS))) $(obj)/coreboot.pre > \</span><br><span>          $(obj)/me_cleaner.log</span><br><span> endif</span><br><span> ifeq ($(CONFIG_HAVE_GBE_BIN),y)</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/26497">change 26497</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/26497"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I7c39533ac07f517c1d652f1fb907be99eb62b836 </div>
<div style="display:none"> Gerrit-Change-Number: 26497 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Youness Alaoui <snifikino@gmail.com> </div>