<p>Rizwan Qureshi has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/27151">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Kconfig: config to insert ucode address in second FIT<br><br>Add a config to insert the address of a FMAP region (which should<br>hold a microcode) as the first entry in the second FIT.<br><br>Change-Id: I4ee41d90bae34862aa68c9b8bd69288de1335585<br>Signed-off-by: Rizwan Qureshi <rizwan.qureshi@intel.com><br>---<br>M Makefile.inc<br>M src/soc/intel/Kconfig<br>2 files changed, 15 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/27151/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/Makefile.inc b/Makefile.inc</span><br><span>index 16d6f18..f8e134e 100644</span><br><span>--- a/Makefile.inc</span><br><span>+++ b/Makefile.inc</span><br><span>@@ -1005,6 +1005,10 @@</span><br><span>    $(RMODTOOL) -i $(CONFIG_REFCODE_BLOB_FILE) -o $@</span><br><span> endif</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ifneq ($(CONFIG_TOP_SWAP_FIT_ENTRY),"")</span><br><span style="color: hsl(120, 100%, 40%);">+FIT_OPTIONS := -j $(CONFIG_INTEL_TOP_SWAP_BOOTBLOCK_SIZE) -q $(CONFIG_TOP_SWAP_FIT_ENTRY)</span><br><span style="color: hsl(120, 100%, 40%);">+endif</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> $(obj)/coreboot.rom: $(obj)/coreboot.pre $(objcbfs)/ramstage.elf $(CBFSTOOL) $$(INTERMEDIATE)</span><br><span>        @printf "    CBFS       $(subst $(obj)/,,$(@))\n"</span><br><span> # The full ROM may be larger than the CBFS part, so create an empty</span><br><span>@@ -1022,12 +1026,14 @@</span><br><span> ifeq ($(CONFIG_CPU_INTEL_FIRMWARE_INTERFACE_TABLE),y)</span><br><span> ifeq ($(CONFIG_CPU_MICROCODE_CBFS_EXTERNAL_HEADER),y)</span><br><span>       @printf "    UPDATE-FIT\n"</span><br><span style="color: hsl(0, 100%, 40%);">-    $(CBFSTOOL) $@.tmp update-fit -n cpu_microcode_blob.bin -x $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES)</span><br><span style="color: hsl(120, 100%, 40%);">+        $(CBFSTOOL) $@.tmp update-fit -n cpu_microcode_blob.bin -x $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES) \</span><br><span style="color: hsl(120, 100%, 40%);">+      $(FIT_OPTIONS)</span><br><span> endif</span><br><span> </span><br><span> ifeq ($(CONFIG_CPU_MICROCODE_CBFS_GENERATE),y)</span><br><span>        @printf "    UPDATE-FIT\n"</span><br><span style="color: hsl(0, 100%, 40%);">-    $(CBFSTOOL) $@.tmp update-fit -n cpu_microcode_blob.bin -x $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES)</span><br><span style="color: hsl(120, 100%, 40%);">+        $(CBFSTOOL) $@.tmp update-fit -n cpu_microcode_blob.bin -x $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES) \</span><br><span style="color: hsl(120, 100%, 40%);">+      $(FIT_OPTIONS)</span><br><span> endif</span><br><span> endif</span><br><span>     mv $@.tmp $@</span><br><span>diff --git a/src/soc/intel/Kconfig b/src/soc/intel/Kconfig</span><br><span>index a80101a..1e4b1c5 100644</span><br><span>--- a/src/soc/intel/Kconfig</span><br><span>+++ b/src/soc/intel/Kconfig</span><br><span>@@ -28,3 +28,10 @@</span><br><span>   hex</span><br><span>  depends on INTEL_TOP_SWAP_BOOTBLOCK</span><br><span>  default C_ENV_BOOTBLOCK_SIZE if C_ENVIRONMENT_BOOTBLOCK</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+config TOP_SWAP_FIT_ENTRY</span><br><span style="color: hsl(120, 100%, 40%);">+  string</span><br><span style="color: hsl(120, 100%, 40%);">+        depends on INTEL_TOP_SWAP_BOOTBLOCK</span><br><span style="color: hsl(120, 100%, 40%);">+   help</span><br><span style="color: hsl(120, 100%, 40%);">+    Use thi config to insert the address of a FMAP region (which should</span><br><span style="color: hsl(120, 100%, 40%);">+   hold a microcode) as the first entry in the second FIT.</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/27151">change 27151</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/27151"/><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: I4ee41d90bae34862aa68c9b8bd69288de1335585 </div>
<div style="display:none"> Gerrit-Change-Number: 27151 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Rizwan Qureshi <rizwan.qureshi@intel.com> </div>