1 # SPDX-License-Identifier: GPL-2.0-or-later
3 bootblock-y
+= bootblock.c
4 bootblock-
$(CONFIG_CHROMEOS
) += chromeos.c
6 romstage-y
+= port_descriptors.c
7 romstage-y
+= romstage.c
9 ramstage-y
+= mainboard.c
11 ramstage-y
+= port_descriptors.c
12 ramstage-
$(CONFIG_CHROMEOS
) += chromeos.c
16 verstage-
$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK
) += verstage.c
17 verstage-
$(CONFIG_CHROMEOS
) += chromeos.c
19 subdirs-y
+= variants
/baseboard
20 subdirs-y
+= variants
/$(VARIANT_DIR
)
22 CPPFLAGS_common
+= -I
$(src
)/mainboard
/$(MAINBOARDDIR
)/variants
/baseboard
/include
23 CPPFLAGS_common
+= -I
$(src
)/mainboard
/$(MAINBOARDDIR
)/variants
/$(VARIANT_DIR
)/include
26 APCB_PATH
=$(src
)/mainboard
/$(MAINBOARDDIR
)
28 LIB_SPD_DEPS
= $(SPD_SOURCES
)
30 APCB_SOURCES
= $(obj
)/$(APCB_NAME
).gen
31 APCB_SOURCES_RECOVERY
= $(obj
)/$(APCB_NAME
).gen
33 $(obj
)/$(APCB_NAME
).gen
: $(SPD_SOURCES
) \
34 $(APCB_V3_EDIT_TOOL
) \
35 $(APCB_PATH
)/$(APCB_NAME
)
36 $(APCB_V3_EDIT_TOOL
) $(APCB_PATH
)/$(APCB_NAME
) \
37 $(obj
)/$(APCB_NAME
).gen \
38 --spd_sources
$(SPD_SOURCES
)