UPSTREAM: 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: Ic4cc8d05f5cc6a303fe33807cf99c3081ac87dba
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Original-Commit-Id: 0fb6568444
Original-Change-Id: Ib14732b4d263dde4770bf26b055c005de2540338
Original-Signed-off-by: Lijian Zhao <lijian.zhao@intel.com>
Original-Reviewed-on: https://review.coreboot.org/19719
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-by: Sumeet R Pawnikar <sumeet.r.pawnikar@intel.com>
Original-Reviewed-by: Philippe Mathieu-Daud <philippe.mathieu.daude@gmail.com>
Reviewed-on: https://chromium-review.googlesource.com/513956
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
This commit is contained in:
parent
0175193c9e
commit
6707794edb
2 changed files with 23 additions and 0 deletions
|
|
@ -102,6 +102,21 @@ config GBE_BIN_PATH
|
|||
depends on HAVE_GBE_BIN
|
||||
default "3rdparty/blobs/mainboard/$(MAINBOARDDIR)/gbe.bin"
|
||||
|
||||
config HAVE_EC_BIN
|
||||
bool "Add EC firmware"
|
||||
depends on HAVE_IFD_BIN
|
||||
help
|
||||
The embedded controller needs a firmware file.
|
||||
|
||||
Select this if you are going to use the PCH integrated controller
|
||||
and have the EC firmware. EC firmware will be added to final image
|
||||
through ifdtool.
|
||||
|
||||
config EC_BIN_PATH
|
||||
string "Path to EC firmware"
|
||||
depends on HAVE_EC_BIN
|
||||
default "3rdparty/blobs/mainboard/$(MAINBOARDDIR)/ec.bin"
|
||||
|
||||
##### Fake IFD #####
|
||||
|
||||
config BUILD_WITH_FAKE_IFD
|
||||
|
|
|
|||
|
|
@ -71,6 +71,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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue