...which is why the values in ta/*/Makefile are ignored.
Since we use CPPFLAGS only to set the value of CFG_TEE_TA_LOG_LEVEL and
since this is taken care of elsewhere (by the TA dev kit in ta/ta.mk),
there is no reason to keep the CPPFLAGS.
Note: if one needs to set TA flags in the Makefile, one reliable way is
to set CPPFLAGS_ta_arm32 and/or CPPFLAGS_ta_arm64.
Note: The description text was wrong when I created the PR. I fixed it and force-pushed.
Setting CPPFLAGS in TA makefiles does not work with Buildroot (the value is ignored and replaced with some Buildroot-defined default).
Here are the relevant parts of the Buildroot makefiles:
Therefore the TAs end up being built with:
...which is why the values in ta/*/Makefile are ignored.
Since we use CPPFLAGS only to set the value of CFG_TEE_TA_LOG_LEVEL and since this is taken care of elsewhere (by the TA dev kit in ta/ta.mk), there is no reason to keep the CPPFLAGS.
Note: if one needs to set TA flags in the Makefile, one reliable way is to set CPPFLAGS_ta_arm32 and/or CPPFLAGS_ta_arm64.
Signed-off-by: Jerome Forissier jerome@forissier.org