Browse Source
Move all plat_fiptool.mks into tools, change the logic to recursively check for tools/fiptool/plat_fiptool/<plat_path>/plat_fiptool.mk I.e. for a platform that has the path "plat/arm/board/tc/platform.mk", the makefile will now load the first existing file from: - tools/fiptool/plat_fiptool/arm/board/tc/plat_fiptool.mk - tools/fiptool/plat_fiptool/arm/board/plat_fiptool.mk - tools/fiptool/plat_fiptool/arm/plat_fiptool.mk This enables fiptool to support multiple platforms, or a specific one. Remove file-copying previously being used to handle old default path. Remove custom file cleaning in plat_fiptool.mk. Change-Id: I95245bcf7143b329481d4394ab64f29bfe9de5ab Signed-off-by: Raef Coles <raef.coles@arm.com>pull/1997/head
Raef Coles
2 years ago
11 changed files with 24 additions and 48 deletions
@ -1,33 +0,0 @@ |
|||
#
|
|||
# Copyright (c) 2021, NXP. All rights reserved.
|
|||
# Copyright (c) 2022, Arm Limited. All rights reserved.
|
|||
#
|
|||
# SPDX-License-Identifier: BSD-3-Clause
|
|||
#
|
|||
|
|||
# Name of the platform defined source file name,
|
|||
# which contains platform defined UUID entries populated
|
|||
# in the plat_def_toc_entries[].
|
|||
PLAT_DEF_UUID_CONFIG_FILE_NAME := plat_def_uuid_config |
|||
|
|||
PLAT_DEF_UUID_CONFIG_FILE_PATH := ../../plat/arm/board/tc |
|||
|
|||
PLAT_DEF_UUID := yes |
|||
PLAT_DEF_UUID_OID_CONFIG_PATH := ../../plat/arm/board/tc |
|||
|
|||
|
|||
INCLUDE_PATHS += -I${PLAT_DEF_UUID_OID_CONFIG_PATH} \
|
|||
-I./ |
|||
# Clean the stale object file.
|
|||
$(shell rm ${PLAT_DEF_UUID_CONFIG_FILE_PATH}/${PLAT_DEF_UUID_CONFIG_FILE_NAME}.o) |
|||
|
|||
ifeq (${PLAT_DEF_OID},yes) |
|||
HOSTCCFLAGS += -DPLAT_DEF_OID |
|||
endif |
|||
|
|||
ifeq (${PLAT_DEF_UUID},yes) |
|||
HOSTCCFLAGS += -DPLAT_DEF_FIP_UUID |
|||
PLAT_OBJECTS += ${PLAT_DEF_UUID_CONFIG_FILE_PATH}/${PLAT_DEF_UUID_CONFIG_FILE_NAME}.o |
|||
endif |
|||
|
|||
OBJECTS += ${PLAT_OBJECTS} |
@ -0,0 +1,12 @@ |
|||
#
|
|||
# Copyright (c) 2021, NXP. All rights reserved.
|
|||
# Copyright (c) 2022-2023, Arm Limited. All rights reserved.
|
|||
#
|
|||
# SPDX-License-Identifier: BSD-3-Clause
|
|||
#
|
|||
|
|||
INCLUDE_PATHS += -I./ \
|
|||
-I../../plat/arm/board/tc |
|||
|
|||
HOSTCCFLAGS += -DPLAT_DEF_FIP_UUID |
|||
OBJECTS += plat_fiptool/arm/board/tc/plat_def_uuid_config.o |
Loading…
Reference in new issue