Hook up libhwbase in ramstage
It's hidden behind a configuration option `CONFIG_RAMSTAGE_LIBHWBASE`. This also adds some glue code to use the coreboot console for debug output and our monotonic timer framework as timer backend. v2: Also update 3rdparty/libhwbase to the latest master commit. Change-Id: I8e8d50271b46aac1141f95ab55ad323ac0889a8d Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/16951 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
@@ -269,3 +269,13 @@ $(objcbfs)/%.debug.rmod: $(objcbfs)/%.debug | $(RMODTOOL)
|
||||
|
||||
$(obj)/%.elf.rmod: $(obj)/%.elf | $(RMODTOOL)
|
||||
$(RMODTOOL) -i $< -o $@
|
||||
|
||||
ifeq ($(CONFIG_RAMSTAGE_LIBHWBASE),y)
|
||||
|
||||
$(call add-special-class,hw)
|
||||
hw-handler = $(eval ramstage-srcs += $$(addprefix $(1),$(2)))
|
||||
subdirs-y += ../../3rdparty/libhwbase
|
||||
|
||||
ramstage-$(CONFIG_HAVE_MONOTONIC_TIMER) += hw-time-timer.adb
|
||||
|
||||
endif # CONFIG_RAMSTAGE_LIBHWBASE
|
||||
|
Reference in New Issue
Block a user