From 8e8ca5c9b1497dd98a172c53f43171138d7cd47b Mon Sep 17 00:00:00 2001 From: Rizwan Qureshi Date: Mon, 1 Oct 2018 14:35:25 +0530 Subject: arch/x86: Make mb/romstage.c optional Currently src/mainboard/*/romstage.c is mandatory for compiling, this makes having the file present even though there is nothing to initialize in romstage on the mainboard side. Eliminate the need to have empty romstage.c files using the wildcard function. BUG=None BRANCH=None TEST= build cannonlake_rvp after removing the romstage.c file. Change-Id: Id6335a473d413d1aa89389d3a3d174ed4a1bda90 Signed-off-by: Rizwan Qureshi Reviewed-on: https://review.coreboot.org/28849 Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik --- src/arch/x86/Makefile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/arch') diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc index 3e272dd8b6..7f85b6a3e6 100644 --- a/src/arch/x86/Makefile.inc +++ b/src/arch/x86/Makefile.inc @@ -224,7 +224,7 @@ romstage-$(CONFIG_X86_TOP4G_BOOTMEDIA_MAP) += mmap_boot.c romstage-y += postcar_loader.c romstage-$(CONFIG_COLLECT_TIMESTAMPS_TSC) += timestamp.c -romstage-srcs += $(src)/mainboard/$(MAINBOARDDIR)/romstage.c +romstage-srcs += $(wildcard $(src)/mainboard/$(MAINBOARDDIR)/romstage.c) romstage-libs ?= $(eval $(call early_x86_assembly_entry_rule,romstage)) -- cgit v1.2.3