plat_fiptool.mk 885 B

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