]> git.sur5r.net Git - u-boot/commitdiff
examples: move api/ and standalone/ entry to examples/Makefile
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Tue, 4 Feb 2014 08:24:36 +0000 (17:24 +0900)
committerTom Rini <trini@ti.com>
Wed, 19 Feb 2014 16:07:51 +0000 (11:07 -0500)
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Makefile
examples/Makefile [new file with mode: 0644]
examples/api/Makefile
examples/standalone/Makefile

index a245370794c67e0d5b1195ce150cb0ebb01fdc05..f3e62b46e4e3d517d48b55e764b8b6553c0e28e7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -570,11 +570,8 @@ SUBDIRS = $(SUBDIR_TOOLS)
 
 .PHONY : $(SUBDIRS) $(VERSION_FILE) $(TIMESTAMP_FILE)
 
-SUBDIR_EXAMPLES-y := examples/standalone
-SUBDIR_EXAMPLES-$(CONFIG_API) += examples/api
-ifndef CONFIG_SANDBOX
+SUBDIR_EXAMPLES-y := examples
 SUBDIRS += $(SUBDIR_EXAMPLES-y)
-endif
 
 #########################################################################
 # U-Boot objects....order is important (i.e. start must be first)
diff --git a/examples/Makefile b/examples/Makefile
new file mode 100644 (file)
index 0000000..18d008e
--- /dev/null
@@ -0,0 +1,9 @@
+ifndef CONFIG_SANDBOX
+
+ifdef FTRACE
+subdir-ccflags-y += -finstrument-functions -DFTRACE
+endif
+
+subdir-y += standalone
+subdir-$(CONFIG_API) += api
+endif
index 8b7988607455b9214613ba7f6fab82f3a0c44fb5..09475f87e496a908f6d3d2a7f81c1768a015a2e5 100644 (file)
@@ -4,10 +4,6 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-ifdef FTRACE
-ccflags-y += -finstrument-functions -DFTRACE
-endif
-
 ifeq ($(ARCH),powerpc)
 LOAD_ADDR = 0x40000
 endif
index 90e173b83ee8f1750962890dfdad66927e2bb9ed..47c9d54f5f791f775a0e011e6037b95ae2081d19 100644 (file)
@@ -5,10 +5,6 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-ifdef FTRACE
-ccflags-y += -finstrument-functions -DFTRACE
-endif
-
 extra-y        := hello_world
 extra-$(CONFIG_SMC91111)           += smc91111_eeprom
 extra-$(CONFIG_SMC911X)            += smc911x_eeprom