arm-trusted-firmware/make_helpers
Sandrine Bailleux 403973c95d Give user's compiler flags precedence over default ones
The user can provide additional CFLAGS to use when building TF.
However, these custom CFLAGS are currently prepended to the
standard CFLAGS that are hardcoded in the TF build system. This
is an issue because when providing conflicting compiler flags
(e.g. different optimisations levels like -O1 and -O0), the last
one on the command line usually takes precedence. This means that
the user flags get overriden.

To address this problem, this patch separates the TF CFLAGS from
the user CFLAGS. The former are now stored in the TF_CFLAGS make
variable, whereas the CFLAGS make variable is untouched and reserved
for the user. The order of the 2 sets of flags is enforced when
invoking the compiler.

Fixes ARM-Software/tf-issues#350

Change-Id: Ib189f44555b885f1dffbec6015092f381600e560
2016-04-14 16:16:37 +01:00
..
tbbr cert_create: add non-volatile counter support 2016-03-30 14:46:30 +01:00
build_env.mk Make:Use environment variables for OS detection. 2016-04-01 12:33:09 +01:00
build_macros.mk Give user's compiler flags precedence over default ones 2016-04-14 16:16:37 +01:00
cygwin.mk Make:Allow for extension in tool names. 2016-04-01 12:33:09 +01:00
msys.mk Make:Allow for extension in tool names. 2016-04-01 12:33:09 +01:00
plat_helpers.mk Make:Remove calls to shell from makefiles. 2016-04-01 12:33:09 +01:00
unix.mk Make:Make shell commands more portable 2016-04-01 12:33:09 +01:00
windows.mk Give user's compiler flags precedence over default ones 2016-04-14 16:16:37 +01:00