1 # SPDX-License-Identifier: GPL-2.0-or-later
3 bootblock-y
+= bootblock.c
5 romstage-y
+= port_descriptors.c
8 ramstage-y
+= mainboard.c
9 ramstage-y
+= port_descriptors.c
10 ramstage-
$(CONFIG_CHROMEOS
) += chromeos.c
12 verstage-
$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK
) += verstage.c
14 subdirs-y
+= variants
/baseboard
15 subdirs-y
+= variants
/$(VARIANT_DIR
)
17 CPPFLAGS_common
+= -I
$(src
)/mainboard
/$(MAINBOARDDIR
)/variants
/baseboard
/include
18 CPPFLAGS_common
+= -I
$(src
)/mainboard
/$(MAINBOARDDIR
)/variants
/$(VARIANT_DIR
)/include
22 ifneq ($(wildcard $(MAINBOARD_BLOBS_DIR
)/$(APCB_NAME
).bin
),)
23 $(info APCB sources present.
)
25 APCB_SOURCES
= $(MAINBOARD_BLOBS_DIR
)/$(APCB_NAME
).bin
27 # The SPD is currently built directly into the APCB.
28 # Add the below section back in after the apcbtool is updated to handle the
29 # Phoenix APCB SPD configuration.
31 ifneq ($(wildcard $(src
)/mainboard
/$(MAINBOARDDIR
)/variants
/$(VARIANT_DIR
)/memory
/Makefile.mk
),)
33 LIB_SPD_DEPS
= $(SPD_SOURCES
)
35 APCB_SOURCES
= $(obj
)/$(APCB_NAME
).gen
37 $(obj
)/$(APCB_NAME
).gen
: $(SPD_SOURCES
) \
38 $(APCB_V3A_EDIT_TOOL
) \
39 $(MAINBOARD_BLOBS_DIR
)/$(APCB_NAME
).bin
40 $(APCB_V3A_EDIT_TOOL
) $(MAINBOARD_BLOBS_DIR
)/$(APCB_NAME
).bin \
41 $(obj
)/$(APCB_NAME
).gen \
42 --spd_sources
$(SPD_SOURCES
)
44 $(info SPD sources not found. Skipping APCB.
)
45 show_notices
:: die_no_apcb
49 $(info APCB sources not found. Skipping APCB.
)
50 show_notices
:: warn_no_apcb