blob: b24083fc38267ba2c3873e93983d1b41af305754 [file] [log] [blame]
Konstantin Porotchkin01851db2018-10-03 14:21:42 +03001# Copyright (C) 2018 Marvell International Ltd.
2#
3# SPDX-License-Identifier: BSD-3-Clause
4# https://spdx.org/licenses
5
6MV_DDR_PATH ?= drivers/marvell/mv_ddr
7
8MV_DDR_LIB = $(CURDIR)/$(BUILD_PLAT)/ble/mv_ddr_lib.a
9LIBC_LIB = $(CURDIR)/$(BUILD_PLAT)/lib/libc.a
10BLE_LIBS = $(MV_DDR_LIB) $(LIBC_LIB)
11PLAT_MARVELL = plat/marvell
12
13BLE_SOURCES += $(BLE_PATH)/ble_main.c \
14 $(BLE_PATH)/ble_mem.S \
Konstantin Porotchkind8e39572018-11-14 17:15:08 +020015 drivers/delay_timer/delay_timer.c \
Antonio Nino Diaze0f90632018-12-14 00:18:21 +000016 $(PLAT_MARVELL)/common/aarch64/marvell_helpers.S \
Konstantin Porotchkind8e39572018-11-14 17:15:08 +020017 $(PLAT_MARVELL)/common/plat_delay_timer.c \
18 $(PLAT_MARVELL)/common/marvell_console.c
Konstantin Porotchkin01851db2018-10-03 14:21:42 +030019
Antonio Nino Diaz50a4d1a2019-02-01 12:22:22 +000020PLAT_INCLUDES += -I$(MV_DDR_PATH) \
21 -I$(CURDIR)/include \
22 -I$(CURDIR)/include/lib/libc \
23 -I$(CURDIR)/include/lib/libc/aarch64 \
Konstantin Porotchkin01851db2018-10-03 14:21:42 +030024 -I$(CURDIR)/drivers/marvell
25
26BLE_LINKERFILE := $(BLE_PATH)/ble.ld.S
27
28FORCE:
29
30$(MV_DDR_LIB): FORCE
31 @+make -C $(MV_DDR_PATH) --no-print-directory PLAT_INCLUDES="$(PLAT_INCLUDES)" PLATFORM=$(PLAT) ARCH=AARCH64 OBJ_DIR=$(CURDIR)/$(BUILD_PLAT)/ble