[coreboot-gerrit] Change in coreboot[master]: lib: Prepare for libhwbase' generated config file
Nico Huber (Code Review)
gerrit at coreboot.org
Mon Jul 17 23:30:25 CEST 2017
Nico Huber has uploaded this change for review. ( https://review.coreboot.org/20626
Change subject: lib: Prepare for libhwbase' generated config file
......................................................................
lib: Prepare for libhwbase' generated config file
Add new libhwbase options and add a class for files generated during
build. This follows the same pattern as for libgfxinit.
Change-Id: Ie5b84992fa687e4e94b6d959a64086c638f66eb8
Signed-off-by: Nico Huber <nico.h at gmx.de>
---
M src/lib/Kconfig
M src/lib/Makefile.inc
2 files changed, 20 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/26/20626/1
diff --git a/src/lib/Kconfig b/src/lib/Kconfig
index a1034a9..bce0291 100644
--- a/src/lib/Kconfig
+++ b/src/lib/Kconfig
@@ -22,4 +22,11 @@
config HWBASE_DYNAMIC_MMIO
def_bool y
+config HWBASE_DEFAULT_MMCONF
+ hex
+ default MMCONF_BASE_ADDRESS
+
+config HWBASE_DIRECT_PCIDEV
+ def_bool y
+
endif
diff --git a/src/lib/Makefile.inc b/src/lib/Makefile.inc
index e05b3fc..ce84cdd 100644
--- a/src/lib/Makefile.inc
+++ b/src/lib/Makefile.inc
@@ -287,8 +287,21 @@
ifeq ($(CONFIG_RAMSTAGE_LIBHWBASE),y)
+to-ada-hex = $(eval $(1) := 16\\\#$(patsubst 0x%,%,$($(1)))\\\#)
+
+$(call to-ada-hex,CONFIG_HWBASE_DEFAULT_MMCONF)
+
$(call add-special-class,hw)
hw-handler = $(eval ramstage-srcs += $$(addprefix $(1),$(2)))
+
+$(call add-special-class,hw-gen)
+hw-gen-handler = \
+ $(eval additional-dirs += $(dir $(2))) \
+ $(eval ramstage-srcs += $(2)) \
+ $(eval ramstage-ads-deps += $(2)) \
+ $(eval ramstage-adb-deps += $(2)) \
+ $(eval $(2): $(obj)/config.h)
+
subdirs-y += ../../3rdparty/libhwbase
ramstage-$(CONFIG_HAVE_MONOTONIC_TIMER) += hw-time-timer.adb
--
To view, visit https://review.coreboot.org/20626
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie5b84992fa687e4e94b6d959a64086c638f66eb8
Gerrit-Change-Number: 20626
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h at gmx.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170717/3b668d85/attachment.html>
More information about the coreboot-gerrit
mailing list