Commit d958002589cb724907e8d4360d546403d1e6b7d8

Authored by Masahiro Yamada
Committed by Tom Rini
1 parent e0d5d9f888

Makefile: move some flags to examples makefiles

This commit moves some flags which are used
under examples/ directory only.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>

Showing 3 changed files with 8 additions and 8 deletions Side-by-side Diff

... ... @@ -102,14 +102,6 @@
102 102  
103 103 BCURDIR = $(subst $(SRCTREE)/,,$(CURDIR:$(obj)%=%))
104 104  
105   -ifeq ($(findstring examples/,$(BCURDIR)),)
106   -ifeq ($(CONFIG_SPL_BUILD),)
107   -ifdef FTRACE
108   -CFLAGS += -finstrument-functions -DFTRACE
109   -endif
110   -endif
111   -endif
112   -
113 105 AFLAGS := $(KBUILD_AFLAGS) $(CPPFLAGS)
114 106  
115 107 LDFLAGS += $(PLATFORM_LDFLAGS)
examples/api/Makefile
... ... @@ -4,6 +4,10 @@
4 4 # SPDX-License-Identifier: GPL-2.0+
5 5 #
6 6  
  7 +ifdef FTRACE
  8 +CFLAGS += -finstrument-functions -DFTRACE
  9 +endif
  10 +
7 11 ifeq ($(ARCH),powerpc)
8 12 LOAD_ADDR = 0x40000
9 13 endif
examples/standalone/Makefile
... ... @@ -5,6 +5,10 @@
5 5 # SPDX-License-Identifier: GPL-2.0+
6 6 #
7 7  
  8 +ifdef FTRACE
  9 +CFLAGS += -finstrument-functions -DFTRACE
  10 +endif
  11 +
8 12 extra-y := hello_world
9 13 extra-$(CONFIG_SMC91111) += smc91111_eeprom
10 14 extra-$(CONFIG_SMC911X) += smc911x_eeprom