Debian Codegraph @

src/mainboard/amd/crater/Makefile.mk

raw symbols SCIP
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_CRATER_RENOIR) += port_descriptors_renoir.c
8
9 ramstage-y += chromeos.c
10 ramstage-y += gpio.c
11 ramstage-$(CONFIG_BOARD_AMD_CRATER_RENOIR) += port_descriptors_renoir.c
12
13 ifneq ($(wildcard $(MAINBOARD_BLOBS_DIR)/APCB_RN_D4_Updatable.bin),)
14 APCB_SOURCES = $(MAINBOARD_BLOBS_DIR)/APCB_RN_D4_Updatable.bin
15 APCB_SOURCES_RECOVERY = $(MAINBOARD_BLOBS_DIR)/APCB_RN_D4_DefaultRecovery.bin
16 else
17 show_notices:: warn_no_apcb
18 endif
19
20 ifeq ($(CONFIG_CRATER_HAVE_MCHP_FW),y)
21 subdirs-y += ../../../../util/mec152x
22
23 $(call add_intermediate, add_mchp_fw, $(objutil)/mec152x/mec152xtool)
24 $(CBFSTOOL) $(obj)/coreboot.pre write -r EC_BODY -f $(CONFIG_CRATER_MCHP_FW_FILE) --fill-upward
25 $(objutil)/mec152x/mec152xtool $(obj)/coreboot.pre GEN_ECFW_PTR -f EC_BODY
26 else
27 show_notices:: warn_no_mchp
28 endif
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 Crater's power button\n"
35 printf "will not respond when you press it.\n\n"