[REDO]: Pass build configurations through header file

This patch re-applies 56979ee5579dbb90bbf598af4c252259e5f20777
as it was reverted.

The CI failure was because the patch that triggered CI was not
rebased for dependency changes between TF-M and TF-M test repo.

Change-Id: I7f96e285c2659ef39731e8736bd641895413818a
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
7 files changed