blob: fb194d8b030cbee6918227cfaf72ff62c8ea8730 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# SPDX-License-Identifier: GPL-2.0-or-later
bootblock-y += bootblock.c
romstage-y += port_descriptors.c
ramstage-y += mainboard.c
ramstage-y += ec.c
ramstage-$(CONFIG_CHROMEOS) += chromeos.c
verstage-$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK) += verstage.c
subdirs-y += variants/baseboard
subdirs-y += variants/$(VARIANT_DIR)
CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/baseboard/include
CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/include
ifneq ($(wildcard $(MAINBOARD_BLOBS_DIR)/APCB_SBR_D5.bin),)
$(info APCB sources present.)
ifneq ($(wildcard $(top)/$(SPD_SOURCES)),)
LIB_SPD_DEPS = $(SPD_SOURCES)
APCB_SOURCES = $(obj)/APCB_SBR_D5.gen
APCB_SOURCES_RECOVERY = $(obj)/APCB_SBR_D5.gen
$(obj)/APCB_SBR_D5.gen: $(SPD_SOURCES) \
$(APCB_V3_EDIT_TOOL) \
$(MAINBOARD_BLOBS_DIR)/APCB_SBR_D5.bin
$(APCB_V3_EDIT_TOOL) $(MAINBOARD_BLOBS_DIR)/APCB_SBR_D5.bin \
$(obj)/APCB_SBR_D5.gen \
--spd_sources $(SPD_SOURCES) \
--mem_type 'lp5'
else
$(info SPD sources not found. Skipping APCB.)
endif
else
$(info APCB sources not found. Skipping APCB.)
endif
|