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

The following build system variables have been renamed: - `LINKERFILE` -> `DEFAULT_LINKER_SCRIPT` - `BL_LINKERFILE` -> `DEFAULT_LINKER_SCRIPT_SOURCE` - `<IMAGE>_LINKERFILE` -> `<IMAGE>_DEFAULT_LINKER_SCRIPT_SOURCE` These new names better reflect how each variable is used: 1. the default linker script is passed via `-dT` instead of `-T` 2. linker script source files are first preprocessed Additionally, linker scripts are now placed in the build directory relative to where they exist in the source directory. For example, the `bl32/sp_min/sp_min.ld.S` would now preprocess to `sp_min/sp_min.ld` instead of just `bl32.ld` BREAKING-CHANGE: The `LINKERFILE`, `BL_LINKERFILE` and `<IMAGE_LINKERFILE>` build system variables have been renamed. See the commit message for more information. Change-Id: If8cef65dcb8820e8993736702c8741e97a66e6cc Signed-off-by: Chris Kay <chris.kay@arm.com>
35 lines
1.7 KiB
Makefile
35 lines
1.7 KiB
Makefile
# Copyright (C) 2018 Marvell International Ltd.
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
# https://spdx.org/licenses
|
|
|
|
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 \
|
|
drivers/marvell/iob.c \
|
|
$(PLAT_MARVELL)/common/aarch64/marvell_helpers.S \
|
|
$(PLAT_MARVELL)/common/plat_delay_timer.c \
|
|
$(PLAT_MARVELL)/common/marvell_console.c
|
|
|
|
MV_DDR_INCLUDES := -I$(CURDIR)/include \
|
|
-I$(CURDIR)/include/arch/aarch64 \
|
|
-I$(CURDIR)/include/lib/libc \
|
|
-I$(CURDIR)/include/lib/libc/aarch64
|
|
|
|
BLE_DEFAULT_LINKER_SCRIPT_SOURCE := $(BLE_PATH)/ble.ld.S
|
|
|
|
BLE_OBJS := $(addprefix $(BUILD_PLAT)/ble/,$(call SOURCES_TO_OBJS,$(BLE_SOURCES)))
|
|
$(BLE_OBJS): PLAT_INCLUDES += -I$(MV_DDR_PATH)
|
|
$(BLE_OBJS): $(MV_DDR_LIB)
|
|
|
|
$(MV_DDR_LIB): FORCE
|
|
# Do not remove! Following checks are required to ensure correct TF-A builds, removing these checks leads to broken TF-A builds
|
|
$(if $(value MV_DDR_PATH),,$(error "Platform '$(PLAT)' for BLE requires MV_DDR_PATH. Please set MV_DDR_PATH to point to the right directory"))
|
|
$(if $(wildcard $(value MV_DDR_PATH)/*),,$(error "'MV_DDR_PATH=$(value MV_DDR_PATH)' was specified, but '$(value MV_DDR_PATH)' directory does not exist"))
|
|
$(if $(shell git -C $(value MV_DDR_PATH) rev-parse --show-cdup 2>&1),$(error "'MV_DDR_PATH=$(value MV_DDR_PATH)' was specified, but '$(value MV_DDR_PATH)' does not contain valid mv-ddr-marvell git repository"))
|
|
@+make -C $(MV_DDR_PATH) --no-print-directory PLAT_INCLUDES="$(MV_DDR_INCLUDES)" PLATFORM=$(PLAT) ARCH=AARCH64 OBJ_DIR=$(BUILD_PLAT)/ble
|