diff options
author | Antonio Niño Díaz <antonio.ninodiaz@arm.com> | 2019-03-01 11:23:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-01 11:23:58 +0000 |
commit | a4acc7f16500d7856f3317f8412665249da7e947 (patch) | |
tree | d97353d7d44c2335a42e7dd213b606d70d3391da /Makefile | |
parent | 37118a1b5f0a0dfb061c986eb67d72bbe2ae8c79 (diff) | |
parent | c2ad38ce4fe754c750f3db480f732ac280f508e4 (diff) |
Merge pull request #1751 from vwadekar/tegra-scatter-file-support
Tegra scatter file support
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -245,8 +245,13 @@ TF_CFLAGS += $(CPPFLAGS) $(TF_CFLAGS_$(ARCH)) \ GCC_V_OUTPUT := $(shell $(CC) -v 2>&1) +ifneq ($(findstring armlink,$(notdir $(LD))),) +TF_LDFLAGS += --diag_error=warning --lto_level=O1 +TF_LDFLAGS += --remove --info=unused,unusedsymbols +else TF_LDFLAGS += --fatal-warnings -O1 TF_LDFLAGS += --gc-sections +endif TF_LDFLAGS += $(TF_LDFLAGS_$(ARCH)) DTC_FLAGS += -I dts -O dtb @@ -714,6 +719,10 @@ ifeq (${DYN_DISABLE_AUTH},1) $(eval $(call add_define,DYN_DISABLE_AUTH)) endif +ifneq ($(findstring armlink,$(notdir $(LD))),) +$(eval $(call add_define,USE_ARM_LINK)) +endif + ################################################################################ # Build targets ################################################################################ @@ -728,8 +737,12 @@ msg_start: # Check if deprecated declarations and cpp warnings should be treated as error or not. ifeq (${ERROR_DEPRECATED},0) +ifneq ($(findstring clang,$(notdir $(CC))),) + CPPFLAGS += -Wno-error=deprecated-declarations +else CPPFLAGS += -Wno-error=deprecated-declarations -Wno-error=cpp endif +endif $(eval $(call MAKE_LIB_DIRS)) $(eval $(call MAKE_LIB,c)) |