blob: 82ac098829db70cf325632037ea7266b30c347b2 [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)
Grzegorz Jaszczyk3039bce2019-11-05 13:14:59 +010011PLAT_MARVELL = plat/marvell/armada
Konstantin Porotchkin01851db2018-10-03 14:21:42 +030012
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 \
Lionel Debieve94a552f2019-09-24 16:59:56 +020022 -I$(CURDIR)/include/arch/aarch64 \
Antonio Nino Diaz50a4d1a2019-02-01 12:22:22 +000023 -I$(CURDIR)/include/lib/libc \
24 -I$(CURDIR)/include/lib/libc/aarch64 \
Konstantin Porotchkin01851db2018-10-03 14:21:42 +030025 -I$(CURDIR)/drivers/marvell
26
27BLE_LINKERFILE := $(BLE_PATH)/ble.ld.S
28
29FORCE:
30
31$(MV_DDR_LIB): FORCE
32 @+make -C $(MV_DDR_PATH) --no-print-directory PLAT_INCLUDES="$(PLAT_INCLUDES)" PLATFORM=$(PLAT) ARCH=AARCH64 OBJ_DIR=$(CURDIR)/$(BUILD_PLAT)/ble