Lionel Debieve | 15536e1 | 2022-10-06 08:54:23 +0200 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2021-2022, STMicroelectronics - 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_FILE_NAME := plat_def_uuid_config |
| 11 | |
| 12 | INCLUDE_PATHS += -I${PLAT_DIR}/include -I./ |
| 13 | |
| 14 | PLAT_DEF_UUID := yes |
| 15 | |
| 16 | ifeq (${PLAT_DEF_UUID},yes) |
| 17 | HOSTCCFLAGS += -DPLAT_DEF_FIP_UUID |
| 18 | |
| 19 | ${PLAT_DEF_UUID_FILE_NAME}.o: ${PLAT_DIR}${PLAT_DEF_UUID_FILE_NAME}.c |
| 20 | ${HOSTCC} -c ${CPPFLAGS} ${HOSTCCFLAGS} ${INCLUDE_PATHS} $< -o $@ |
| 21 | |
| 22 | PLAT_OBJECTS += ${PLAT_DEF_UUID_FILE_NAME}.o |
| 23 | endif |
| 24 | |
| 25 | OBJECTS += ${PLAT_OBJECTS} |