diff options
author | Douglas Raillard <douglas.raillard@arm.com> | 2016-10-27 17:01:28 +0100 |
---|---|---|
committer | Douglas Raillard <douglas.raillard@arm.com> | 2016-11-09 16:13:11 +0000 |
commit | 7b0272e94e3a5ea4e4bba5f73940f9032c17ab5f (patch) | |
tree | c2d46ea77f40df1a70f5a1a0e6599052af5c9495 /framework | |
parent | 97416437fa05c9afb239ac5a7bc8fbe6a29d34a8 (diff) |
Makefile: Let the user specify CFLAGS
Allow the user to pass some custom CFLAGS as a make parameter or as
an environment variable.
Internally, the Makefile and *.mk now use the TFTF_CFLAGS variable.
The user CFLAGS are among the last options given to the compiler as
they are appended to TFTF_CFLAGS after all the TFTF_CFLAGS options
defined in the Makefile and *.mk.
Change-Id: I97d032883cb92a23e9ff9edcf8d3470edd6254b5
Signed-off-by: Douglas Raillard <douglas.raillard@arm.com>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/framework.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/framework.mk b/framework/framework.mk index 5327707..fa18db9 100644 --- a/framework/framework.mk +++ b/framework/framework.mk @@ -88,14 +88,14 @@ TFTF_LINKERFILE := framework/tftf.ld.S TEST_REPORTS ?= uart:raw $(info Selected reports: $(TEST_REPORTS)) ifneq (,$(findstring uart:raw,$(TEST_REPORTS))) - CFLAGS += -DTEST_REPORT_UART_RAW + TFTF_CFLAGS += -DTEST_REPORT_UART_RAW endif ifneq (,$(findstring uart:junit,$(TEST_REPORTS))) - CFLAGS += -DTEST_REPORT_UART_JUNIT + TFTF_CFLAGS += -DTEST_REPORT_UART_JUNIT endif ifneq (,$(findstring semihosting:raw,$(TEST_REPORTS))) - CFLAGS += -DTEST_REPORT_SEMIHOSTING_RAW + TFTF_CFLAGS += -DTEST_REPORT_SEMIHOSTING_RAW endif ifneq (,$(findstring semihosting:junit,$(TEST_REPORTS))) - CFLAGS += -DTEST_REPORT_SEMIHOSTING_JUNIT + TFTF_CFLAGS += -DTEST_REPORT_SEMIHOSTING_JUNIT endif |