Pankaj Gupta | e4aa1bd | 2020-12-09 14:02:38 +0530 | [diff] [blame] | 1 | # |
| 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[]. |
| 10 | PLAT_DEF_UUID_CONFIG_FILE_NAME := plat_def_uuid_config |
| 11 | |
| 12 | PLAT_DEF_UUID_CONFIG_FILE_PATH := ../nxp/plat_fiptool |
| 13 | |
| 14 | PLAT_DEF_OID := yes |
| 15 | PLAT_DEF_UUID := yes |
| 16 | PLAT_DEF_UUID_OID_CONFIG_PATH := ../../plat/nxp/common/fip_handler/common |
| 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} |