<p>Nico Huber has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/20626">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">lib: Prepare for libhwbase' generated config file<br><br>Add new libhwbase options and add a class for files generated during<br>build. This follows the same pattern as for libgfxinit.<br><br>Change-Id: Ie5b84992fa687e4e94b6d959a64086c638f66eb8<br>Signed-off-by: Nico Huber <nico.h@gmx.de><br>---<br>M src/lib/Kconfig<br>M src/lib/Makefile.inc<br>2 files changed, 20 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/26/20626/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/lib/Kconfig b/src/lib/Kconfig<br>index a1034a9..bce0291 100644<br>--- a/src/lib/Kconfig<br>+++ b/src/lib/Kconfig<br>@@ -22,4 +22,11 @@<br> config HWBASE_DYNAMIC_MMIO<br>      def_bool y<br> <br>+config HWBASE_DEFAULT_MMCONF<br>+ hex<br>+  default MMCONF_BASE_ADDRESS<br>+<br>+config HWBASE_DIRECT_PCIDEV<br>+ def_bool y<br>+<br> endif<br>diff --git a/src/lib/Makefile.inc b/src/lib/Makefile.inc<br>index e05b3fc..ce84cdd 100644<br>--- a/src/lib/Makefile.inc<br>+++ b/src/lib/Makefile.inc<br>@@ -287,8 +287,21 @@<br> <br> ifeq ($(CONFIG_RAMSTAGE_LIBHWBASE),y)<br> <br>+to-ada-hex = $(eval $(1) := 16\\\#$(patsubst 0x%,%,$($(1)))\\\#)<br>+<br>+$(call to-ada-hex,CONFIG_HWBASE_DEFAULT_MMCONF)<br>+<br> $(call add-special-class,hw)<br> hw-handler = $(eval ramstage-srcs += $$(addprefix $(1),$(2)))<br>+<br>+$(call add-special-class,hw-gen)<br>+hw-gen-handler = \<br>+      $(eval additional-dirs += $(dir $(2))) \<br>+     $(eval ramstage-srcs += $(2)) \<br>+      $(eval ramstage-ads-deps += $(2)) \<br>+  $(eval ramstage-adb-deps += $(2)) \<br>+  $(eval $(2): $(obj)/config.h)<br>+<br> subdirs-y += ../../3rdparty/libhwbase<br> <br> ramstage-$(CONFIG_HAVE_MONOTONIC_TIMER) += hw-time-timer.adb<br></pre><p>To view, visit <a href="https://review.coreboot.org/20626">change 20626</a>. To unsubscribe, 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/20626"/><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: Ie5b84992fa687e4e94b6d959a64086c638f66eb8 </div>
<div style="display:none"> Gerrit-Change-Number: 20626 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Nico Huber <nico.h@gmx.de> </div>