mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / zork / spd / Makefile.mk
blob1f0b20ce0d460d631945a317b3942cae6255549d
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 SPD_SOURCES_DIR=$(dir $(word 1, $(SPD_SOURCES)))
5 APCB_SOURCES=$(foreach f, $(basename $(notdir $(SPD_SOURCES))), $(obj)/APCB_$(f).gen)
7 # APCB binary with magic numbers to be replaced by apcb_edit tool
8 ifeq ($(CONFIG_ZORK_UMA_SIZE_64MB),y)
9 APCB_NAME=uma_64.apcb
10 else ifeq ($(CONFIG_ZORK_UMA_SIZE_128MB),y)
11 APCB_NAME=uma_128.apcb
12 else ifeq ($(CONFIG_ZORK_UMA_SIZE_256MB),y)
13 APCB_NAME=uma_256.apcb
14 else ifeq ($(CONFIG_ZORK_UMA_SIZE_512MB),y)
15 APCB_NAME=uma_512.apcb
16 endif
18 APCB_PATH=$(src)/mainboard/$(MAINBOARDDIR)
20 $(obj)/APCB_%.gen: $(SPD_SOURCES_DIR)%.hex \
21 $(APCB_EDIT_TOOL) \
22 $(APCB_PATH)/$(APCB_NAME)
23 $(APCB_EDIT_TOOL) \
24 $(APCB_PATH)/$(APCB_NAME) \
25 $@ \
26 --hex \
27 --strip_manufacturer_information \
28 --spd_0_0 $< \
29 $(if $(APCB_POPULATE_2ND_CHANNEL), --spd_1_0 $<, ) \
30 --board_id_gpio0 $(APCB_BOARD_ID_GPIO0) \
31 --board_id_gpio1 $(APCB_BOARD_ID_GPIO1) \
32 --board_id_gpio2 $(APCB_BOARD_ID_GPIO2) \
33 --board_id_gpio3 $(APCB_BOARD_ID_GPIO3)