Build: Move COMPILER_CP_FLAG to ns_interface lib
Issue: the test_app target is always built now.
It was built only when NS test is enabled.
If you build with HW FPU ABI but without NS test, you
will get an error:
"error: bin/tfm_ns.axf uses VFP register arguments,
tf-m-tests/app/libtfm_test_app.a(test_app.o) does not"
This is because the COMPILER_CP_FLAG is only added to
tfm_test_framework_ns.
This patch moves the COMPILER_CP_FLAG to tfm_ns_interface.
tfm_ns_interface is intended for all NS targets usage.
So the NS global COMPILER_CP_FLAG should belong to it.
Change-Id: Id24caf7932e259200ccb2ac6108fd0f46fac1ee2
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
2 files changed