Raef Coles | aa70fe2 | 2022-12-14 15:02:16 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2021, NXP. All rights reserved. |
| 3 | # Copyright (c) 2022, Arm Limited. All rights reserved. |
| 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | # Name of the platform defined source file name, |
| 9 | # which contains platform defined UUID entries populated |
| 10 | # in the plat_def_toc_entries[]. |
| 11 | PLAT_DEF_UUID_CONFIG_FILE_NAME := plat_def_uuid_config |
| 12 | |
| 13 | PLAT_DEF_UUID_CONFIG_FILE_PATH := ../../plat/arm/board/tc |
| 14 | |
| 15 | PLAT_DEF_UUID := yes |
| 16 | PLAT_DEF_UUID_OID_CONFIG_PATH := ../../plat/arm/board/tc |
| 17 | |
| 18 | |
| 19 | INCLUDE_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 | |
| 24 | ifeq (${PLAT_DEF_OID},yes) |
| 25 | HOSTCCFLAGS += -DPLAT_DEF_OID |
| 26 | endif |
| 27 | |
| 28 | ifeq (${PLAT_DEF_UUID},yes) |
| 29 | HOSTCCFLAGS += -DPLAT_DEF_FIP_UUID |
| 30 | PLAT_OBJECTS += ${PLAT_DEF_UUID_CONFIG_FILE_PATH}/${PLAT_DEF_UUID_CONFIG_FILE_NAME}.o |
| 31 | endif |
| 32 | |
| 33 | OBJECTS += ${PLAT_OBJECTS} |