Both secure_fw/spm/spm_api.c and secure_fw/core/tfm_nspm.c use #if to evaluate the macro TFM_PSA_API. This works in cmake based build as the marco is included in build using "-D" option. But in mbed-os it is included as "#define" which leads to compiler error. Can both spm_api.c and tfm_nspm.c be updated to check the macro TFM_PSA_API using #ifdef?
Description
Description
Event Timeline
Comment Actions
Hi @devran01 ,
I think that I accidentally fixed this issue with my code quality patch (https://review.trustedfirmware.org/c/trusted-firmware-m/+/1374/) :)
If you confirm that this indeed fixes your issue, this can be closed when the patch is merged!
Comment Actions
@hug-dev Thanks for the patch. I can confirm that the changes relevant to this issue looks good.
Comment Actions
Hi @devran01 , the patch has now been merged so I will go ahead and close this issue.