#-------------------------------------------------------------------------------
# Copyright (c) 2018-2022, Arm Limited. All rights reserved.
# Copyright (c) 2021-2024 Cypress Semiconductor Corporation (an Infineon company)
# or an affiliate of Cypress Semiconductor Corporation. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
#-------------------------------------------------------------------------------

# The "manifest" field must be a path relative to this file, a path relative to
# the directory that tfm_parse_manifest_list.py is run in (which by default is
# the TF-M root directory), or an absolute path.
#
# Files per Secure Partition are generated to:
#   - "output_path", if it is a absolute path - not recommended
#   - generated_file_root/"output_path", if "output_path" is relative path
#   - generated_file_root/, if "output_path" is not specified
#       * generated_file_root is the path passed to tfm_parse_manifest_list.py
#         by -o/--outdir

{
  "description": "TF-M secure partition manifests",
  "type": "manifest_list",
  "version_major": 0,
  "version_minor": 1,
  "manifest_list": [
    {
      "description": "Non-Secure Mailbox Agent",
      "manifest": "../secure_fw/partitions/ns_agent_mailbox/ns_agent_mailbox.yaml",
      "output_path": "secure_fw/partitions/ns_agent_mailbox",
      "conditional": "TFM_PARTITION_NS_AGENT_MAILBOX",
      "version_major": 0,
      "version_minor": 1,
      "pid": 262,
      "linker_pattern": {
        "library_list": [
           "*tfm_*ns_agent_mailbox.*"
         ],
      },
      "non_ffm_attributes": ['ns_agent']
    },
    {
      "description": "Protected Storage Partition",
      "manifest": "../secure_fw/partitions/protected_storage/tfm_protected_storage.yaml",
      "output_path": "secure_fw/partitions/protected_storage",
      "conditional": "TFM_PARTITION_PROTECTED_STORAGE",
      "version_major": 0,
      "version_minor": 1,
      "pid": 256,
      "linker_pattern": {
        "library_list": [
           "*tfm_*partition_ps.*"
         ],
      }
    },
    {
      "description": "TF-M Internal Trusted Storage Partition",
      "manifest": "../secure_fw/partitions/internal_trusted_storage/tfm_internal_trusted_storage.yaml",
      "output_path": "secure_fw/partitions/internal_trusted_storage",
      "conditional": "TFM_PARTITION_INTERNAL_TRUSTED_STORAGE",
      "version_major": 0,
      "version_minor": 1,
      "pid": 257,
      "linker_pattern": {
        "library_list": [
           "*tfm_*partition_its.*"
         ]
      }
    },
    {
      "description": "TFM Crypto Partition",
      "manifest": "../secure_fw/partitions/crypto/tfm_crypto.yaml",
      "output_path": "secure_fw/partitions/crypto",
      "conditional": "TFM_PARTITION_CRYPTO",
      "version_major": 0,
      "version_minor": 1,
      "pid": 259,
      "linker_pattern": {
        "library_list": [
           "*tfm_*partition_crypto.*",
           "*mbedcrypto.*",
         ]
      }
    },
    {
      "description": "TFM Platform Partition",
      "manifest": "../secure_fw/partitions/platform/tfm_platform.yaml",
      "output_path": "secure_fw/partitions/platform",
      "conditional": "TFM_PARTITION_PLATFORM",
      "version_major": 0,
      "version_minor": 1,
      "pid": 260,
      "linker_pattern": {
        "library_list": [
           "*tfm_*partition_platform.*"
         ]
      }
    },
    {
      "description": "TFM Initial Attestation Partition",
      "manifest": "../secure_fw/partitions/initial_attestation/tfm_initial_attestation.yaml",
      "output_path": "secure_fw/partitions/initial_attestation",
      "conditional": "TFM_PARTITION_INITIAL_ATTESTATION",
      "version_major": 0,
      "version_minor": 1,
      "pid": 261,
      "linker_pattern": {
        "library_list": [
           "*tfm_*partition_attestation.*"
         ]
      }
    },
    {
      "description": "TFM Firmware Update Partition",
      "manifest": "../secure_fw/partitions/firmware_update/tfm_firmware_update.yaml",
      "output_path": "secure_fw/partitions/firmware_update",
      "conditional": "TFM_PARTITION_FIRMWARE_UPDATE",
      "version_major": 0,
      "version_minor": 1,
      "pid": 271,
      "linker_pattern": {
        "library_list": [
          "*tfm_*partition_fwu*"
         ]
      }
    },
  ]
}
