aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/intel/common/firmware/Makefile.inc
diff options
context:
space:
mode:
authorLijian Zhao <lijian.zhao@intel.com>2017-05-16 12:11:45 -0700
committerAndrey Petrov <andrey.petrov@intel.com>2017-05-23 00:53:27 +0200
commit0fb6568444328ec62e9585d827c77fd8ecc66cd3 (patch)
treea1c0da442a40875ec1f3f9da839a242f39c45251 /src/southbridge/intel/common/firmware/Makefile.inc
parent4a907c79a2f5028104dfa9d960d261020832357f (diff)
sb/intel/common: Add common EC fw support
Add support to the Intel common firmware Kconfig and Makefile.inc to allow the embedded controller (EC) blob to be added to the final binary through ifdtool. TEST=Add ec.bin and enable in config, build is successful. Change-Id: Ib14732b4d263dde4770bf26b055c005de2540338 Signed-off-by: Lijian Zhao <lijian.zhao@intel.com> Reviewed-on: https://review.coreboot.org/19719 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Sumeet R Pawnikar <sumeet.r.pawnikar@intel.com> Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
Diffstat (limited to 'src/southbridge/intel/common/firmware/Makefile.inc')
-rw-r--r--src/southbridge/intel/common/firmware/Makefile.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/southbridge/intel/common/firmware/Makefile.inc b/src/southbridge/intel/common/firmware/Makefile.inc
index eb4c07e91d..7cdbdec84a 100644
--- a/src/southbridge/intel/common/firmware/Makefile.inc
+++ b/src/southbridge/intel/common/firmware/Makefile.inc
@@ -74,6 +74,14 @@ ifeq ($(CONFIG_HAVE_GBE_BIN),y)
$(obj)/coreboot.pre
mv $(obj)/coreboot.pre.new $(obj)/coreboot.pre
endif
+ifeq ($(CONFIG_HAVE_EC_BIN),y)
+ printf " IFDTOOL ec.bin -> coreboot.pre\n"
+ $(objutil)/ifdtool/ifdtool \
+ $(IFDTOOL_USE_CHIPSET) \
+ -i EC:$(CONFIG_EC_BIN_PATH) \
+ $(obj)/coreboot.pre
+ mv $(obj)/coreboot.pre.new $(obj)/coreboot.pre
+endif
ifeq ($(CONFIG_LOCK_MANAGEMENT_ENGINE),y)
printf " IFDTOOL Locking Management Engine\n"
$(objutil)/ifdtool/ifdtool \