Hi Roman,
The patch has increased the TARGET_CONFIG priority over PROJECT_CONFIG, and added #ifndef to the profile configuration files.
> But this #undef/#define approach is not safe
#undef/#define approach is not needed as we use #ifndef for all default values.
> It means that project developer need to #undef ITS_STACK_SIZE
The default ITS_STACK_SIZE is defined by a profile configuration.
If needed, any parameter defined in a profile or in the default configuration can be changed in TARGET_CONFIG without #undef.
Best regards,
Andrej
From: Roman.Mazurak@infineon.com <Roman.Mazurak@infineon.com>
Sent: Friday, June 30, 2023 1:12 PM
To: tf-m@lists.trustedfirmware.org
Cc: Andrej Butok <andrey.butok@nxp.com>; Kevin.Peng@arm.com
Subject: Configuration order
Hi Andrey,
Patch 21339 introduced changes of configuration order:
It means that target can’t change configuration that is expected to be changed by project. Example:
It looks like the new changes created another bunch of problems for TF-M configuration.
Regards,
Roman.