summaryrefslogtreecommitdiffstats
path: root/Makefile.inc
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-05-17 12:12:39 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-05-18 11:43:49 +0000
commitf206cda84daef3bcc696c4593f8815a92a7319d1 (patch)
treeafcebd7f32a7bd499a8222120678e1a93740cf2c /Makefile.inc
parentb79d0a17992886d1e8558a9ebe536f12fcf336b1 (diff)
downloadcoreboot-f206cda84daef3bcc696c4593f8815a92a7319d1.tar.gz
coreboot-f206cda84daef3bcc696c4593f8815a92a7319d1.tar.bz2
coreboot-f206cda84daef3bcc696c4593f8815a92a7319d1.zip
option: Introduce `CMOS_LAYOUT_FILE` Kconfig symbol
Mainboards with variants may not always use the same cmos.layout file. Turn the hardcoded path into a Kconfig symbol to allow changing it. Tested with BUILD_TIMELESS=1: Without including the config file in the coreboot.rom and with `USE_OPTION_TABLE` selected, building for the Asus P8H61-M PRO produces an identical coreboot image. Change-Id: I4cc622dcb70855c06cb8a816c34406f8421180df Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/54366 Reviewed-by: Martin Roth <martinroth@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.inc b/Makefile.inc
index da54e3b46eb3..eb505e553db0 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -302,9 +302,9 @@ endef
# arg1: source file
# arg2: binary file name
cbfs-files-processor-nvramtool= \
- $(eval $(2): $(1) $(src)/mainboard/$(MAINBOARDDIR)/cmos.layout | $(objutil)/nvramtool/nvramtool ; \
+ $(eval $(2): $(1) $(top)/$(call strip_quotes,$(CONFIG_CMOS_LAYOUT_FILE)) | $(objutil)/nvramtool/nvramtool ; \
printf " CREATE $(2) (from $(1))\n"; \
- $(objutil)/nvramtool/nvramtool -y $(src)/mainboard/$(MAINBOARDDIR)/cmos.layout -D $(2).tmp -p $(1) && \
+ $(objutil)/nvramtool/nvramtool -y $(top)/$(call strip_quotes,$(CONFIG_CMOS_LAYOUT_FILE)) -D $(2).tmp -p $(1) && \
mv $(2).tmp $(2))
#######################################################################