mirror of
https://github.com/CTCaer/switch-l4t-atf.git
synced 2025-02-21 11:00:28 +00:00

Generic framework is added to include platform defined UUID. This framework is added for the following: - All NXP SoC based platforms needed additional fip-fuse.bin - NXP SoC lx2160a based platforms requires additional fip-ddr.bin Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com> Change-Id: Ibe05d9c596256e34077287a490dfcd5b731ef2cf
34 lines
885 B
Makefile
34 lines
885 B
Makefile
#
|
|
# Copyright (c) 2021, NXP. 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 := ../nxp/plat_fiptool
|
|
|
|
PLAT_DEF_OID := yes
|
|
PLAT_DEF_UUID := yes
|
|
PLAT_DEF_UUID_OID_CONFIG_PATH := ../../plat/nxp/common/fip_handler/common
|
|
|
|
|
|
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}
|