blob: ca2962a0450a24ed28c04eb83c6809edb94a4fa8 [file] [log] [blame]
Pankaj Guptae4aa1bd2020-12-09 14:02:38 +05301#
2# Copyright (c) 2021, NXP. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7# Name of the platform defined source file name,
8# which contains platform defined UUID entries populated
9# in the plat_def_toc_entries[].
10PLAT_DEF_UUID_CONFIG_FILE_NAME := plat_def_uuid_config
11
12PLAT_DEF_UUID_CONFIG_FILE_PATH := ../nxp/plat_fiptool
13
14PLAT_DEF_OID := yes
15PLAT_DEF_UUID := yes
16PLAT_DEF_UUID_OID_CONFIG_PATH := ../../plat/nxp/common/fip_handler/common
17
18
19INCLUDE_PATHS += -I${PLAT_DEF_UUID_OID_CONFIG_PATH} \
20 -I./
21# Clean the stale object file.
22$(shell rm ${PLAT_DEF_UUID_CONFIG_FILE_PATH}/${PLAT_DEF_UUID_CONFIG_FILE_NAME}.o)
23
24ifeq (${PLAT_DEF_OID},yes)
25HOSTCCFLAGS += -DPLAT_DEF_OID
26endif
27
28ifeq (${PLAT_DEF_UUID},yes)
29HOSTCCFLAGS += -DPLAT_DEF_FIP_UUID
30PLAT_OBJECTS += ${PLAT_DEF_UUID_CONFIG_FILE_PATH}/${PLAT_DEF_UUID_CONFIG_FILE_NAME}.o
31endif
32
33OBJECTS += ${PLAT_OBJECTS}