blob: 8aaec21cdc1618f27908f82f965595f122b4e58c [file] [log] [blame]
Felix Heldc6ef5142020-12-02 19:24:18 +01001# SPDX-License-Identifier: GPL-2.0-only
2
Zheng Baoc1363d72021-01-29 18:07:49 +08003bootblock-y += bootblock.c
Zheng Baoadac6f42021-01-29 18:10:00 +08004bootblock-y += early_gpio.c
Zheng Baoc1363d72021-01-29 18:07:49 +08005
Matt Papageorgeea0f2252021-03-30 11:41:22 -05006romstage-y += port_descriptors.c
7
Raul E Rangeld211ede2021-03-16 11:39:30 -06008ramstage-y += chromeos.c
Robert Ziebae2bde832022-01-19 14:15:24 -07009ramstage-y += port_descriptors.c
Raul E Rangeld211ede2021-03-16 11:39:30 -060010
Matt Papageorgea37ec522021-02-22 19:36:34 -060011APCB_SOURCES = $(MAINBOARD_BLOBS_DIR)/APCB_CZN_D4.bin
Zheng Bao0ada7202020-12-10 16:23:56 +080012APCB_SOURCES_RECOVERY = $(MAINBOARD_BLOBS_DIR)/APCB_CZN_D4_DefaultRecovery.bin
13
Felix Heldc6ef5142020-12-02 19:24:18 +010014ifeq ($(CONFIG_MAJOLICA_HAVE_MCHP_FW),y)
Patrick Georgi2cc5bcb2021-01-13 09:15:07 +010015$(call add_intermediate, add_mchp_fw)
Arthur Heymans8ceef402021-07-06 16:20:09 +020016 $(CBFSTOOL) $< write -r EC -f $(CONFIG_MAJOLICA_MCHP_FW_FILE) --fill-upward
Felix Heldc6ef5142020-12-02 19:24:18 +010017else
Martin Roth372503f2023-12-08 00:43:23 -070018show_notices:: warn_no_mchp
Felix Heldc6ef5142020-12-02 19:24:18 +010019endif # CONFIG_MAJOLICA_HAVE_MCHP_FW
20
21PHONY+=warn_no_mchp
22warn_no_mchp:
23 printf "\n\t** WARNING **\n"
Paul Menzela5e94fe2021-03-26 08:26:16 +010024 printf "coreboot has been built without the Microchip EC FW.\n"
Felix Heldc6ef5142020-12-02 19:24:18 +010025 printf "Do not flash this image. Your Majolica's power button\n"
26 printf "will not respond when you press it.\n\n"