Konstantin Porotchkin | 01851db | 2018-10-03 14:21:42 +0300 | [diff] [blame] | 1 | # Copyright (C) 2018 Marvell International Ltd. |
| 2 | # |
| 3 | # SPDX-License-Identifier: BSD-3-Clause |
| 4 | # https://spdx.org/licenses |
| 5 | |
| 6 | MV_DDR_PATH ?= drivers/marvell/mv_ddr |
| 7 | |
| 8 | MV_DDR_LIB = $(CURDIR)/$(BUILD_PLAT)/ble/mv_ddr_lib.a |
| 9 | LIBC_LIB = $(CURDIR)/$(BUILD_PLAT)/lib/libc.a |
| 10 | BLE_LIBS = $(MV_DDR_LIB) $(LIBC_LIB) |
| 11 | PLAT_MARVELL = plat/marvell |
| 12 | |
| 13 | BLE_SOURCES += $(BLE_PATH)/ble_main.c \ |
| 14 | $(BLE_PATH)/ble_mem.S \ |
Konstantin Porotchkin | d8e3957 | 2018-11-14 17:15:08 +0200 | [diff] [blame] | 15 | drivers/delay_timer/delay_timer.c \ |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 16 | $(PLAT_MARVELL)/common/aarch64/marvell_helpers.S \ |
Konstantin Porotchkin | d8e3957 | 2018-11-14 17:15:08 +0200 | [diff] [blame] | 17 | $(PLAT_MARVELL)/common/plat_delay_timer.c \ |
| 18 | $(PLAT_MARVELL)/common/marvell_console.c |
Konstantin Porotchkin | 01851db | 2018-10-03 14:21:42 +0300 | [diff] [blame] | 19 | |
Antonio Nino Diaz | 50a4d1a | 2019-02-01 12:22:22 +0000 | [diff] [blame] | 20 | PLAT_INCLUDES += -I$(MV_DDR_PATH) \ |
| 21 | -I$(CURDIR)/include \ |
Lionel Debieve | 94a552f | 2019-09-24 16:59:56 +0200 | [diff] [blame] | 22 | -I$(CURDIR)/include/arch/aarch64 \ |
Antonio Nino Diaz | 50a4d1a | 2019-02-01 12:22:22 +0000 | [diff] [blame] | 23 | -I$(CURDIR)/include/lib/libc \ |
| 24 | -I$(CURDIR)/include/lib/libc/aarch64 \ |
Konstantin Porotchkin | 01851db | 2018-10-03 14:21:42 +0300 | [diff] [blame] | 25 | -I$(CURDIR)/drivers/marvell |
| 26 | |
| 27 | BLE_LINKERFILE := $(BLE_PATH)/ble.ld.S |
| 28 | |
| 29 | FORCE: |
| 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 |