Skip to content
  1. Mar 07, 2023
  2. Mar 06, 2023
  3. Mar 03, 2023
  4. Mar 02, 2023
    • Summer Qin's avatar
      SPM: Rename IS_PARTITION_*** to IS_*** · 2ead4fc0
      Summer Qin authored
      
      
      Remove redundant namespace 'PARTITION' to make it shorter.
      And updated the flags bit assignment explanation comments for easier understanding.
      
      Signed-off-by: default avatarSummer Qin <summer.qin@arm.com>
      Change-Id: I218e08b945309017f07e2e595a3c684e00be4bdf
      2ead4fc0
    • Ken Liu's avatar
      SPM: Gather memory symbols into one single file · 71a79fe3
      Ken Liu authored
      
      
      For unified referencing and clearly showcasing SPM required
      memory symbols. Memory symbols can come from linker sections,
      or be defined in sources with toolchain-specific attributes.
      
      Signed-off-by: default avatarKen Liu <Ken.Liu@arm.com>
      Change-Id: I920329ad08c9515e370653a9c5d663f3970b7395
      71a79fe3
    • David Hu's avatar
      Test: Update tf-m-tests commit ID · e6a8beb1
      David Hu authored
      
      
      Change-Id: I86ff01413c4191ae87f9d8353a5aff72485a7117
      Signed-off-by: default avatarDavid Hu <david.hu@arm.com>
      e6a8beb1
    • David Hu's avatar
      Docs: Update configuration docs · 6496183b
      David Hu authored
      
      
      Update configuration docs to align with changes which decouples option
      configuration and validation in config header files.
      
      Convert header file config system diagrams in svg format
      It is difficult to modify existing figures in header_file_system.rst and
      kconfig_header_file_system.rst.
      Re-draw those figures in svg format and enable developers to more easily
      update the diagram.
      
      Change-Id: If88a6a07104ef54de127ccb9149c5ff4792b3cdd
      Signed-off-by: default avatarDavid Hu <david.hu@arm.com>
      6496183b
    • David Hu's avatar
      Build: Decouple option setting and check in header file config system · 6d1a9b61
      David Hu authored
      
      
      Option settings and checks are mixed in config_<component>.h.
      config_<component>.h is then included by other components outside the
      current one.
      Those checks often depends on build options managed in CMake/Kconfig
      config. Many of these build options are transparent to other components.
      For example, if a <component> specific build option is transparent to
      NSPE, when NS is built separatedly from TF-M secure side, this build
      option is missing in NS build and then the corresponding checks in
      config_<component>.h will fail the build.
      
      Decouple option settings and checks to solve the issue above.
      - Add #ifndef/#endif pairs in config_base.h to collect all the base
        option settings.
      - Let config_tfm.h include config_base.h. It becomes the common config
        header file to be included by all components.
      - Only keep invalid config check in config_<component>.h. Renamed
        config_<component>.h as config_<component>_check.h.
        Users shall explicitly set config values in PROJECT_CONFIG_HEADER_FILE
        rather than relying on components to implicitly set default values.
      - config_<component>_check.h is only included by <component> for check
        only.
      
      Change-Id: I8e447a41dee515be53f8c7458f4ada3a965ad566
      Signed-off-by: default avatarDavid Hu <david.hu@arm.com>
      6d1a9b61
    • BohdanHunko's avatar
      SPRTL: remove rt_main · 749c9a5b
      BohdanHunko authored
      
      
      rt_main is an unnecessary layer that can be removed. Instead partition
      entry point function can be called directly.
      This simplifies the code and enables passing a parameter to the thread
      using register r0. Previously passing parameter using r0 was impossible
      because rt_main used r0.
      
      Change-Id: I5e0d5278867d26bc79b39a8594c3d6ef0eb1e56d
      Signed-off-by: default avatarBohdan Hunko <Bohdan.Hunko@infineon.com>
      Signed-off-by: default avatarChris Brand <chris.brand@cypress.com>
      749c9a5b
    • Sherry Zhang's avatar
      Boot: Align MCUboot to the latest version · 0ec795e3
      Sherry Zhang authored
      
      
      Signed-off-by: default avatarSherry Zhang <sherry.zhang2@arm.com>
      Change-Id: I88cbac33905545784039ec62c2663402ca382c28
      0ec795e3
    • Mohamed Omar Asaker's avatar
      Platform: corstone1000: Generate a gpt flash image · d333a104
      Mohamed Omar Asaker authored
      
      
      Create the corstone1000 flash image with the gpt layout via a script
      The script uses dd command to create the disk image
      and uses the sgdisk tool to write the gpt layout
      dd is used again to write binaries to the disk image
      
      Signed-off-by: Mohamed Omar Asaker's avatarMohamed Omar Asaker <mohamed.omarasaker@arm.com>
      Change-Id: I38c34f27c1bad1d450ca54b4fffd24a66ccd4746
      d333a104
    • Mohamed Omar Asaker's avatar
      Platform: corstone1000:flash_layout simplification · c2562588
      Mohamed Omar Asaker authored
      
      
      Complete the simplification of the flash layout.
      The flash layout contains only the static definitions
      that describe the static layout and the boundries of the dynamic
      regions.
      
      The dynamic regions addresses are known by the GPT parser.
      
      Signed-off-by: Mohamed Omar Asaker's avatarMohamed Omar Asaker <mohamed.omarasaker@arm.com>
      Change-Id: I2bbbd2ff64962b906ec723ffcd082ac1cc92d769
      c2562588
    • Mohamed Omar Asaker's avatar
      Platform:corstone1000: BL2 uses GPT layout · 6eb5f399
      Mohamed Omar Asaker authored
      
      
      Adabt BL2 to use GPT parser find tfm and fip partitions, and then
      extract info to populate MCUBOOT flashmap.
      
      Side changes required:
      Borrow 2k of BL2 code memory to Data memory (during linking)
      i.e. Increase BL2_DATA_GAP_SIZE and decrease SE_BL2_PARTITION_SIZE
      
      Signed-off-by: Mohamed Omar Asaker's avatarMohamed Omar Asaker <mohamed.omarasaker@arm.com>
      Change-Id: I62bdabaf13510d4a63d95643831ec5f48c9ca906
      6eb5f399
    • Mohamed Omar Asaker's avatar
      Platform: corstone1000: BL1 changes to adapt to new flash layout · e5e328f7
      Mohamed Omar Asaker authored
      
      
      The commit prepares BL1 to adapt to new GPT-based flash layout.
      
      BL1 does not incorporate a GPT parser and still uses a static
      configuration to understand the flash.
      
      The flash_layout.h is also modified/marked in a way to start
      the process of its simplification.
      
      Signed-off-by: Satish Kumar's avatarSatish Kumar <satish.kumar01@arm.com>
      Signed-off-by: Mohamed Omar Asaker's avatarMohamed Omar Asaker <mohamed.omarasaker@arm.com>
      Change-Id: Ie33803dff9f2729e45ee3b72f694a9929a4395d6
      e5e328f7
  5. Mar 01, 2023
    • Jamie Fox's avatar
      Platform: RSS: Use common flash driver · 4bf9624b
      Jamie Fox authored
      
      
      Removes the Strata flash driver from RSS and uses the Arm common one
      instead.
      
      Signed-off-by: Jamie Fox's avatarJamie Fox <jamie.fox@arm.com>
      Change-Id: I30269df3d08bb96b9fc95140549bdb9b360fbbab
      4bf9624b
    • Jamie Fox's avatar
      Platform: RSS: Use common CMSDK UART driver · cc517152
      Jamie Fox authored
      
      
      Removes the RSS CMSDK UART driver and uses the common Arm one instead.
      Also propagates a small fix from the RSS CMSDK UART driver to the Arm
      one.
      
      Signed-off-by: Jamie Fox's avatarJamie Fox <jamie.fox@arm.com>
      Change-Id: Ifc4fc28aeeed35d47ee4acc1201fdaa742eef6f1
      cc517152
    • Jamie Fox's avatar
      Platform: RSS: Use common MPC drivers · 81c253f9
      Jamie Fox authored
      
      
      Replaces RSS MPC drivers with the common Arm implementations.
      
      Signed-off-by: Jamie Fox's avatarJamie Fox <jamie.fox@arm.com>
      Change-Id: I339f7b8bf6d26ff8f7fb1733f3727f95eb31879f
      81c253f9
    • Kevin Peng's avatar
      Kconfig Tool: Support input ENV. and config files loading · 97ac698c
      Kevin Peng authored
      
      
      The Kconfig tool now supports loading config files and merging them
      into one. The merging is basically done by the later loaded config files
      overriding the first loaded config files with dependencies respected.
      
      With this feature, the Kconfig system will be aware of the configs such
      as platform settings and profile settings rather than having default
      values for all configurations.
      
      The environment variables are for the Kconfig files which refer to env.
      variables, for example the PLATFORM_PATH.
      Now the PLATFORM_PATH is no longer passed as one of the arguments, it's
      done via the --env argument now. Of course, any other env. variables can
      be appended at will.
      
      Change-Id: Ib39e13b29def382a9546cd7680c62a4f4d321f99
      Signed-off-by: default avatarKevin Peng <kevin.peng@arm.com>
      97ac698c
    • Kevin Peng's avatar
      Build: Separate Kconfig system from CMake config system · b9c99f0f
      Kevin Peng authored
      
      
      The Kconfig system now has a separated routine rather than integrated
      into the CMake Config system.
      It is now easy to adjust the config steps for the Kconfig system without
      impacting the CMake system.
      
      Change-Id: I41e088a571448ab74ab9e669d73a623bc9af5e51
      Signed-off-by: default avatarKevin Peng <kevin.peng@arm.com>
      b9c99f0f
    • Kevin Peng's avatar
      Build: Move out some codes from set_config.cmake · d0e49715
      Kevin Peng authored
      
      
      CMake config and Kconfig system will be separated later.
      Moving out some common codes from set_config.cmake
      
      - Add pre_config.cmake for common codes
        - Move out platform preload.cmake to pre_config.cmake
        - Move out Library Model deprecation message to pre_config.cmake
        - Move out CMAKE_BUILD_TYPE setup to pre_config.cmake
        - Error checks (Library Model, TFM_SYSTEM_DSP and CMAKE_GENERATOR) are
          gathered together into pre_config.cmake
      - Add post_config.cmake for common codes
        - Move out the tfm_config setup from set_config.cmake to
          post_config.cmake.
        - Move out tfm_build_log_config.cmake inclusion to post_config.cmake
        - Move test repo fetch and config are separated and move to
          post_config.cmake
      
      Change-Id: Idf39766d4f7c3e3933443c7eef31b9e0479064ea
      Signed-off-by: default avatarKevin Peng <kevin.peng@arm.com>
      d0e49715
    • Summer Qin's avatar
      Hotfix: Correct link script section name · f993ed59
      Summer Qin authored
      
      
      ER_EFLASH_DRIVER_RO section name is replaced by ER_CODE_SRAM.
      So, the related definitions need to be updated too.
      
      Signed-off-by: default avatarSummer Qin <summer.qin@arm.com>
      Change-Id: I7f899595bdfe89e6f6bad09c655feb3db22f81ae
      f993ed59
    • Jamie Fox's avatar
      Platform: RSS: Use common timer, counter and MPU drivers · 07744bca
      Jamie Fox authored
      
      
      Removes the RSS timer, counter and MPU native drivers and uses the
      equivalent ones in the common Arm drivers directory instead.
      
      Signed-off-by: Jamie Fox's avatarJamie Fox <jamie.fox@arm.com>
      Change-Id: I74940d22bfa7efb5065d058e3cb44056f78c27c4
      07744bca
    • Sherry Zhang's avatar
      SPM: Redirect PSA API runtimely instead of statically · ef49b1d7
      Sherry Zhang authored
      
      
      The previous PSA API redirecting is statically performed in header
      files, based on C preprocessors exported by the configuration system.
      The C preprocessors make the configuration maintenance harder, and
      users could not find the exact PSA API name in debug symbols, which
      is confusing.
      
      Now the redirecting turns into a runtime behavior. SPRTL calls
      corresponded ABI for PSA API. The ABI is set in the Secure Partition
      local storage by SPM when booting, based on Secure Partition types.
      Check 'prv_process_metadata' and 'psa_api_ipc.c' for details.
      
      Co-authored-by: default avatarKen Liu <ken.liu@arm.com>
      Signed-off-by: default avatarSherry Zhang <sherry.zhang2@arm.com>
      Change-Id: Ifc974941ddb6653389d9deca9f18f754b8f25b27
      ef49b1d7
  6. Feb 28, 2023
  7. Feb 27, 2023
  8. Feb 24, 2023
Loading