1 # SPDX-License-Identifier: GPL-2.0-or-later
3 bootblock-y
+= bootblock.c
5 romstage-y
+= port_descriptors.c
7 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
16 subdirs-y
+= variants
/baseboard
17 subdirs-y
+= variants
/$(VARIANT_DIR
)
19 CPPFLAGS_common
+= -I
$(src
)/mainboard
/$(MAINBOARDDIR
)/variants
/baseboard
/include
20 CPPFLAGS_common
+= -I
$(src
)/mainboard
/$(MAINBOARDDIR
)/variants
/$(VARIANT_DIR
)/include
23 APCB_PATH
=$(src
)/mainboard
/$(MAINBOARDDIR
)
25 ifneq ($(wildcard $(APCB_PATH
)/$(APCB_NAME
)),)
26 $(info APCB sources present.
)
28 ifneq ($(wildcard $(src
)/mainboard
/$(MAINBOARDDIR
)/variants
/$(VARIANT_DIR
)/memory
/Makefile.mk
),)
30 LIB_SPD_DEPS
= $(SPD_SOURCES
)
32 APCB_SOURCES
= $(obj
)/$(APCB_NAME
).gen
34 $(obj
)/$(APCB_NAME
).gen
: $(SPD_SOURCES
) \
35 $(APCB_V3_EDIT_TOOL
) \
36 $(APCB_PATH
)/$(APCB_NAME
)
37 $(APCB_V3_EDIT_TOOL
) $(APCB_PATH
)/$(APCB_NAME
) \
38 $(obj
)/$(APCB_NAME
).gen \
39 --spd_sources
$(SPD_SOURCES
) \
42 $(info SPD sources not found. Skipping APCB.
)
43 show_notices
:: die_no_apcb
46 $(info APCB sources not found. Skipping APCB.
)
47 show_notices
:: die_no_apcb