summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-02-04 17:24:36 +0900
committerTom Rini <trini@ti.com>2014-02-19 11:07:51 -0500
commitcbce795e5ef2175b1fd3ec580281ef8ce397afd7 (patch)
treef88776cf0b30a8f9286e99d469faae66773e5789 /examples
parent433b2f1e5a837426b3269a83a81bc572c3beaf75 (diff)
downloadu-boot-imx-cbce795e5ef2175b1fd3ec580281ef8ce397afd7.zip
u-boot-imx-cbce795e5ef2175b1fd3ec580281ef8ce397afd7.tar.gz
u-boot-imx-cbce795e5ef2175b1fd3ec580281ef8ce397afd7.tar.bz2
examples: move api/ and standalone/ entry to examples/Makefile
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile9
-rw-r--r--examples/api/Makefile4
-rw-r--r--examples/standalone/Makefile4
3 files changed, 9 insertions, 8 deletions
diff --git a/examples/Makefile b/examples/Makefile
new file mode 100644
index 0000000..18d008e
--- /dev/null
+++ b/examples/Makefile
@@ -0,0 +1,9 @@
+ifndef CONFIG_SANDBOX
+
+ifdef FTRACE
+subdir-ccflags-y += -finstrument-functions -DFTRACE
+endif
+
+subdir-y += standalone
+subdir-$(CONFIG_API) += api
+endif
diff --git a/examples/api/Makefile b/examples/api/Makefile
index 8b79886..09475f8 100644
--- a/examples/api/Makefile
+++ b/examples/api/Makefile
@@ -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
diff --git a/examples/standalone/Makefile b/examples/standalone/Makefile
index 90e173b..47c9d54 100644
--- a/examples/standalone/Makefile
+++ b/examples/standalone/Makefile
@@ -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