diff options
Diffstat (limited to 'src/ec/hp/mec1322/Makefile.inc')
-rw-r--r-- | src/ec/hp/mec1322/Makefile.inc | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/ec/hp/mec1322/Makefile.inc b/src/ec/hp/mec1322/Makefile.inc new file mode 100644 index 0000000000..5aec41882c --- /dev/null +++ b/src/ec/hp/mec1322/Makefile.inc @@ -0,0 +1,35 @@ +## SPDX-License-Identifier: GPL-2.0-only + +ifeq ($(CONFIG_EC_HP_MEC1322),y) +MEC1322:=$(top)/util/mec1322/mec1322 +INTERMEDIATE+=mec1322_ec_insert + +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-type := raw + +endif + +mec1322_ec_insert: $(obj)/coreboot.pre +ifeq ($(CONFIG_MEC1322_FIRMWARE),y) + $(MAKE) -C util/mec1322 + printf " MEC1322 Inserting MEC1322 firmware blobs.\n" + $(MEC1322) insert $(obj)/coreboot.pre $(CONFIG_MEC1322_FW_OFFSET) +endif + +PHONY+=mec1322_ec_insert + +build_complete:: +ifeq ($(CONFIG_MEC1322_FIRMWARE),) + printf "\n** WARNING **\n" + printf "You haven't added the firmware blobs for MEC1322 EC.\n" + printf "You may be unable to power on your laptop without these blobs.\n" + printf "Please select the following option to add them:\n\n" + printf " Chipset --->\n" + printf " [*] Add firmware images for MEC1322 EC\n\n" +endif + +endif |