From 4a6fd6a5798ce3b985f23adbb346574e1f1c2b93 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Sun, 16 Aug 2020 22:08:30 +0800 Subject: fix ec/mec1322 --- src/ec/hp/mec1322/Makefile.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ec') 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 -- cgit v1.2.3