summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2020-08-16 22:08:30 +0800
committerIru Cai <mytbk920423@gmail.com>2020-09-16 01:06:29 +0800
commit4a6fd6a5798ce3b985f23adbb346574e1f1c2b93 (patch)
tree8fba68a915d9d8366aa92b9810bdf3bd469a7733
parenta86e9a4de8afa716d2cddc6923f244f5634e3476 (diff)
downloadcoreboot-4a6fd6a5798ce3b985f23adbb346574e1f1c2b93.tar.xz
fix ec/mec1322
-rw-r--r--src/ec/hp/mec1322/Makefile.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ec/hp/mec1322/Makefile.inc b/src/ec/hp/mec1322/Makefile.inc
index 5aec41882c..444e7e988a 100644
--- a/src/ec/hp/mec1322/Makefile.inc
+++ b/src/ec/hp/mec1322/Makefile.inc
@@ -8,7 +8,8 @@ ifeq ($(CONFIG_MEC1322_FIRMWARE),y)
cbfs-files-y += ecfw.bin
ecfw.bin-file := $(call strip_quotes,$(CONFIG_MEC1322_FW))
-ecfw.bin-position := $(CONFIG_MEC1322_FW_OFFSET)
+ecfw.bin-position := $(shell printf "0x%x" \
+ $$(( 0x100000000 - $(CONFIG_ROM_SIZE) + $(CONFIG_MEC1322_FW_OFFSET))))
ecfw.bin-type := raw
endif