Anand Vaikar | 7ae2e28 | 2024-02-06 11:14:17 +0530 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
| 3 | bootblock-y += bootblock.c |
| 4 | bootblock-y += early_gpio.c |
| 5 | bootblock-y += ec.c |
| 6 | |
| 7 | romstage-$(CONFIG_BOARD_AMD_BIRMANPLUS_PHOENIX) += port_descriptors.c |
| 8 | |
| 9 | ramstage-y += chromeos.c |
| 10 | ramstage-y += gpio.c |
| 11 | ramstage-$(CONFIG_BOARD_AMD_BIRMANPLUS_PHOENIX) += port_descriptors.c |
| 12 | |
| 13 | |
| 14 | ifneq ($(wildcard $(MAINBOARD_BLOBS_DIR)/APCB_FP8_LPDDR5.bin),) |
| 15 | APCB_SOURCES = $(MAINBOARD_BLOBS_DIR)/APCB_FP8_LPDDR5.bin |
| 16 | APCB_SOURCES_RECOVERY = $(MAINBOARD_BLOBS_DIR)/APCB_FP8_LPDDR5_DefaultRecovery.bin |
| 17 | else |
| 18 | show_notices:: warn_no_apcb |
| 19 | endif |
| 20 | |
| 21 | ifeq ($(CONFIG_BIRMANPLUS_HAVE_MCHP_FW),y) |
| 22 | $(call add_intermediate, add_mchp_fw) |
| 23 | $(CBFSTOOL) $(obj)/coreboot.pre write -r EC_SIG -f $(CONFIG_BIRMANPLUS_MCHP_SIG_FILE) --fill-upward |
| 24 | $(CBFSTOOL) $(obj)/coreboot.pre write -r EC_BODY -f $(CONFIG_BIRMANPLUS_MCHP_FW_FILE) --fill-upward |
| 25 | |
| 26 | else |
| 27 | show_notices:: warn_no_mchp |
| 28 | endif # CONFIG_BIRMAN_HAVE_MCHP_FW |
| 29 | |
| 30 | PHONY+=warn_no_mchp |
| 31 | warn_no_mchp: |
| 32 | printf "\n\t** WARNING **\n" |
| 33 | printf "coreboot has been built without the EC FW.\n" |
| 34 | printf "Do not flash this image. Your Birman's power button\n" |
| 35 | printf "will not respond when you press it.\n\n" |