Skip to content

Commit

Permalink
Makefile: move some flags to examples makefiles
Browse files Browse the repository at this point in the history
This commit moves some flags which are used
under examples/ directory only.

Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
masahir0y authored and trini committed Feb 19, 2014
1 parent e0d5d9f commit d958002
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 0 additions & 8 deletions config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,6 @@ CFLAGS := $(KBUILD_CFLAGS) $(CPPFLAGS)

BCURDIR = $(subst $(SRCTREE)/,,$(CURDIR:$(obj)%=%))

ifeq ($(findstring examples/,$(BCURDIR)),)
ifeq ($(CONFIG_SPL_BUILD),)
ifdef FTRACE
CFLAGS += -finstrument-functions -DFTRACE
endif
endif
endif

AFLAGS := $(KBUILD_AFLAGS) $(CPPFLAGS)

LDFLAGS += $(PLATFORM_LDFLAGS)
Expand Down
4 changes: 4 additions & 0 deletions examples/api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
# SPDX-License-Identifier: GPL-2.0+
#

ifdef FTRACE
CFLAGS += -finstrument-functions -DFTRACE
endif

ifeq ($(ARCH),powerpc)
LOAD_ADDR = 0x40000
endif
Expand Down
4 changes: 4 additions & 0 deletions examples/standalone/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
# SPDX-License-Identifier: GPL-2.0+
#

ifdef FTRACE
CFLAGS += -finstrument-functions -DFTRACE
endif

extra-y := hello_world
extra-$(CONFIG_SMC91111) += smc91111_eeprom
extra-$(CONFIG_SMC911X) += smc911x_eeprom
Expand Down

0 comments on commit d958002

Please sign in to comment.