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
)
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
18 APCB_PATH
=$(src
)/mainboard
/$(MAINBOARDDIR
)
20 $(obj
)/APCB_
%.gen
: $(SPD_SOURCES_DIR
)%.hex \
22 $(APCB_PATH
)/$(APCB_NAME
)
24 $(APCB_PATH
)/$(APCB_NAME
) \
27 --strip_manufacturer_information \
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
)