refactor(build): absorb CFLAGS into TF_CFLAGS
CFLAGS is the standard and expected variable for passing flags to the
compiler. The build system also uses TF_CFLAGS to define its own flags.
But the build rules need to specify both. So append CFLAGS to TF_CFLAGS
so that only the latter needs to be passed.
Change-Id: I4abb6c9dfc252a805063691e8a100f0ec0c785ad
Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
diff --git a/make_helpers/cflags.mk b/make_helpers/cflags.mk
index 01df0db..429dda0 100644
--- a/make_helpers/cflags.mk
+++ b/make_helpers/cflags.mk
@@ -172,6 +172,7 @@
endif
TF_CFLAGS += $(CPPFLAGS) $(TF_CFLAGS_$(ARCH))
+TF_CFLAGS += $(CFLAGS)
ASFLAGS += $(CPPFLAGS) \
-ffreestanding -Wa,--fatal-warnings
TF_LDFLAGS += -z noexecstack