ble.mk 1008 Bytes
Newer Older
1
2
3
4
5
6
7
# Copyright (C) 2018 Marvell International Ltd.
#
# SPDX-License-Identifier:     BSD-3-Clause
# https://spdx.org/licenses

MV_DDR_PATH		?=	drivers/marvell/mv_ddr

8
9
10
MV_DDR_LIB		=	$(BUILD_PLAT)/ble/mv_ddr_lib.a
LIBC_LIB		=	$(BUILD_PLAT)/lib/libc.a
BLE_LIBS		=	$(MV_DDR_LIB) $(LIBC_LIB)
11
PLAT_MARVELL		=	plat/marvell/armada
12
13
14

BLE_SOURCES		+= 	$(BLE_PATH)/ble_main.c				\
				$(BLE_PATH)/ble_mem.S				\
15
				drivers/delay_timer/delay_timer.c		\
16
				$(PLAT_MARVELL)/common/aarch64/marvell_helpers.S \
17
18
				$(PLAT_MARVELL)/common/plat_delay_timer.c	\
				$(PLAT_MARVELL)/common/marvell_console.c
19

20
21
PLAT_INCLUDES		+= 	-I$(MV_DDR_PATH)				\
				-I$(CURDIR)/include				\
22
				-I$(CURDIR)/include/arch/aarch64		\
23
24
				-I$(CURDIR)/include/lib/libc			\
				-I$(CURDIR)/include/lib/libc/aarch64		\
25
26
27
28
29
				-I$(CURDIR)/drivers/marvell

BLE_LINKERFILE		:=	$(BLE_PATH)/ble.ld.S

$(MV_DDR_LIB): FORCE
30
	@+make -C $(MV_DDR_PATH) --no-print-directory PLAT_INCLUDES="$(PLAT_INCLUDES)" PLATFORM=$(PLAT) ARCH=AARCH64 OBJ_DIR=$(BUILD_PLAT)/ble