Skip to content
Snippets Groups Projects
Commit d9580025 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Tom Rini
Browse files

Makefile: move some flags to examples makefiles


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

Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
parent e0d5d9f8
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -4,6 +4,10 @@
# SPDX-License-Identifier: GPL-2.0+
#
ifdef FTRACE
CFLAGS += -finstrument-functions -DFTRACE
endif
ifeq ($(ARCH),powerpc)
LOAD_ADDR = 0x40000
endif
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment