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 \ |
| 22 | -I$(CURDIR)/include/lib/libc \ |
| 23 | -I$(CURDIR)/include/lib/libc/aarch64 \ |
Konstantin Porotchkin | 01851db | 2018-10-03 14:21:42 +0300 | [diff] [blame] | 24 | -I$(CURDIR)/drivers/marvell |
| 25 | |
| 26 | BLE_LINKERFILE := $(BLE_PATH)/ble.ld.S |
| 27 | |
| 28 | FORCE: |
| 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 |