blob: 6315fc27e3bf41e73117b9c1b413be4941052687 [file] [log] [blame]
Ritul Guruf123ffe2022-11-25 11:31:26 +05301# SPDX-License-Identifier: GPL-2.0-only
2
3bootblock-y += bootblock.c
4bootblock-y += early_gpio.c
5bootblock-y += ec.c
6
7romstage-y += port_descriptors.c
8
9ramstage-y += chromeos.c
10ramstage-y += gpio.c
Fred Reitbergera6514e22022-12-07 08:39:55 -050011ramstage-y += port_descriptors.c
Ritul Guruf123ffe2022-11-25 11:31:26 +053012
13ifneq ($(wildcard $(MAINBOARD_BLOBS_DIR)/APCB_Updatable.bin),)
14APCB_SOURCES = $(MAINBOARD_BLOBS_DIR)/APCB_Updatable.bin
15APCB_SOURCES_RECOVERY = $(MAINBOARD_BLOBS_DIR)/APCB_DefaultRecovery.bin
16else
Martin Roth372503f2023-12-08 00:43:23 -070017show_notices:: warn_no_apcb
Ritul Guruf123ffe2022-11-25 11:31:26 +053018endif
19
20ifeq ($(CONFIG_MAYAN_HAVE_MCHP_FW),y)
21$(call add_intermediate, add_mchp_fw)
22 $(CBFSTOOL) $(obj)/coreboot.pre write -r EC -f $(CONFIG_MAYAN_MCHP_SIG_FILE) --fill-upward
23
Fred Reitberger64bfc672022-11-29 14:58:49 -050024cbfs-files-y += ec/ecfw
25ec/ecfw-file := $(CONFIG_MAYAN_MCHP_FW_FILE)
Zheng Bao5e9e7bf2023-02-11 15:27:08 +080026ec/ecfw-position := $(CONFIG_MAYAN_MCHP_FW_OFFSET)
Fred Reitberger64bfc672022-11-29 14:58:49 -050027ec/ecfw-type := raw
Ritul Guruf123ffe2022-11-25 11:31:26 +053028
29else
Martin Roth372503f2023-12-08 00:43:23 -070030show_notices:: warn_no_mchp
Ritul Guruf123ffe2022-11-25 11:31:26 +053031endif # CONFIG_MAYAN_HAVE_MCHP_FW
32
33PHONY+=warn_no_mchp
34warn_no_mchp:
35 printf "\n\t** WARNING **\n"
36 printf "coreboot has been built without the EC FW.\n"
37 printf "Do not flash this image. Your Mayan's power button\n"
38 printf "will not respond when you press it.\n\n"