Skip to content

Conversation

@ccli8
Copy link

@ccli8 ccli8 commented Aug 22, 2024

Summary of changes

This fixes compile errors with TF-M integration on NU_M2354 target, including:

  1. In CMake, mbed-psa moves out of mbed-core, its library type changeng to STATIC from INTERFACE. Following this modification, the platform TF-M code relying on mbed-psa needs to explicitly specify the dependency through target_link_libraries().
  2. Update post-build script to enable OUTPUT_EXT can be set to "bin" or "hex" in targets.json5.

Pull request type

[X] Patch update (Bug fix / Target update / Docs update / Test update / Refactor) [] Feature update (New feature / Functionality change / New API) [] Major update (Breaking change E.g. Return code change / API behaviour change) 

@ccli8 ccli8 force-pushed the nvt_m2354_fix_tfm_compile branch from 10300d0 to f7fdd98 Compare August 22, 2024 07:19
Copy link
Collaborator

@multiplemonomials multiplemonomials left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good just one random fix I noticed to the python.

Also p.s. a lot of this logic would be cleaner if you used pathlib from python3, but that can be a problem for later.

ccli8 added 3 commits August 23, 2024 10:20
In CMake, mbed-psa moves out of mbed-core, its library type changing to STATIC from INTERFACE. Following this modification, the platform TF-M code relying on mbed-psa needs to explicitly specify the dependency through target_link_libraries().
Update post-build script to enable OUTPUT_EXT can be set to "bin" or "hex" in targets.json5.
shutil.which("python3") can locate incorrect path when there are multiple python3 installations. Instead, follow the link below, use sys.executable. https://docs.python.org/3/library/sys.html#sys.executable
@ccli8 ccli8 force-pushed the nvt_m2354_fix_tfm_compile branch from f7fdd98 to 26f754c Compare August 23, 2024 02:32
@multiplemonomials
Copy link
Collaborator

Thanks so much for testing this out!

By the way, if you'd like to submit some upload method files (under mbed-os/targets/upload_method_cfg) for Nuvoton boards, I'd be very grateful! Plus it would help people use your boards more easily

@multiplemonomials multiplemonomials merged commit 88de6a1 into mbed-ce:master Aug 23, 2024
@ccli8
Copy link
Author

ccli8 commented Aug 23, 2024

By the way, if you'd like to submit some upload method files (under mbed-os/targets/upload_method_cfg) for Nuvoton boards, I'd be very grateful! Plus it would help people use your boards more easily

It is our on-going plan.

@ccli8 ccli8 deleted the nvt_m2354_fix_tfm_compile branch August 23, 2024 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants