mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00

If the user tries to change BUILD_BASE to put the build products outside the build tree the compile will fail due to hard coded assumptions that $BUILD_BASE is a relative path. Fix by using $(abspath $(BUILD_BASE)) to rationalize to an absolute path every time and remove the relative path assumptions. This patch also adds documentation that BUILD_BASE can be specified by the user. Signed-off-by: Grant Likely <grant.likely@arm.com> Signed-off-by: Manish Pandey <manish.pandey2@arm.com> Change-Id: Ib1af874de658484aaffc672f30029b852d2489c8
32 lines
1,016 B
Makefile
32 lines
1,016 B
Makefile
# Copyright (C) 2018 Marvell International Ltd.
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
# https://spdx.org/licenses
|
|
|
|
MV_DDR_PATH ?= drivers/marvell/mv_ddr
|
|
|
|
MV_DDR_LIB = $(BUILD_PLAT)/ble/mv_ddr_lib.a
|
|
LIBC_LIB = $(BUILD_PLAT)/lib/libc.a
|
|
BLE_LIBS = $(MV_DDR_LIB) $(LIBC_LIB)
|
|
PLAT_MARVELL = plat/marvell/armada
|
|
|
|
BLE_SOURCES += $(BLE_PATH)/ble_main.c \
|
|
$(BLE_PATH)/ble_mem.S \
|
|
drivers/delay_timer/delay_timer.c \
|
|
$(PLAT_MARVELL)/common/aarch64/marvell_helpers.S \
|
|
$(PLAT_MARVELL)/common/plat_delay_timer.c \
|
|
$(PLAT_MARVELL)/common/marvell_console.c
|
|
|
|
PLAT_INCLUDES += -I$(MV_DDR_PATH) \
|
|
-I$(CURDIR)/include \
|
|
-I$(CURDIR)/include/arch/aarch64 \
|
|
-I$(CURDIR)/include/lib/libc \
|
|
-I$(CURDIR)/include/lib/libc/aarch64 \
|
|
-I$(CURDIR)/drivers/marvell
|
|
|
|
BLE_LINKERFILE := $(BLE_PATH)/ble.ld.S
|
|
|
|
FORCE:
|
|
|
|
$(MV_DDR_LIB): FORCE
|
|
@+make -C $(MV_DDR_PATH) --no-print-directory PLAT_INCLUDES="$(PLAT_INCLUDES)" PLATFORM=$(PLAT) ARCH=AARCH64 OBJ_DIR=$(BUILD_PLAT)/ble
|