xref: /rk3399_ARM-atf/tools/fiptool/plat_fiptool/nxp/plat_fiptool.mk (revision ba3668f1865b44635e8c7aa3a38d0d315850cec3)
1034a2e3eSRaef Coles#
2*ba3668f1SKhristine Andreea Barbulescu# Copyright (c) 2021, 2025 NXP. All rights reserved.
3cbd6cec3SBoyan Karatotev# Copyright (c) 2023-2025, Arm Limited. All rights reserved.
4034a2e3eSRaef Coles#
5034a2e3eSRaef Coles# SPDX-License-Identifier: BSD-3-Clause
6034a2e3eSRaef Coles#
7034a2e3eSRaef Coles
8034a2e3eSRaef Coles# Name of the platform defined source file name,
9034a2e3eSRaef Coles# which contains platform defined UUID entries populated
10034a2e3eSRaef Coles# in the plat_def_toc_entries[].
11*ba3668f1SKhristine Andreea Barbulescuifeq (,$(findstring s32,${PLAT}))
12034a2e3eSRaef ColesPLAT_DEF_UUID_CONFIG_FILE_NAME	:= plat_def_uuid_config
13034a2e3eSRaef Coles
14034a2e3eSRaef ColesPLAT_DEF_UUID_CONFIG_FILE_PATH := plat_fiptool/nxp/
15034a2e3eSRaef Coles
16034a2e3eSRaef ColesPLAT_DEF_OID := yes
17034a2e3eSRaef ColesPLAT_DEF_UUID := yes
18034a2e3eSRaef ColesPLAT_DEF_UUID_OID_CONFIG_PATH := ../../plat/nxp/common/fip_handler/common
19034a2e3eSRaef Coles
20034a2e3eSRaef Coles
21cbd6cec3SBoyan KaratotevFIPTOOL_INCLUDE_DIRS += ${PLAT_DEF_UUID_OID_CONFIG_PATH} \
22cbd6cec3SBoyan Karatotev			./
23034a2e3eSRaef Coles
24034a2e3eSRaef Colesifeq (${PLAT_DEF_OID},yes)
25cbd6cec3SBoyan KaratotevFIPTOOL_DEFINES += PLAT_DEF_OID
26034a2e3eSRaef Colesendif
27034a2e3eSRaef Coles
28034a2e3eSRaef Colesifeq (${PLAT_DEF_UUID},yes)
29cbd6cec3SBoyan KaratotevFIPTOOL_DEFINES += PLAT_DEF_FIP_UUID
30cbd6cec3SBoyan KaratotevFIPTOOL_SOURCES += ${PLAT_DEF_UUID_CONFIG_FILE_PATH}/${PLAT_DEF_UUID_CONFIG_FILE_NAME}.c
31034a2e3eSRaef Colesendif
32*ba3668f1SKhristine Andreea Barbulescu
33*ba3668f1SKhristine Andreea Barbulescuendif
34