aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorMasahiro Yamada2013-11-17 20:08:35 -0600
committerTom Rini2013-11-25 09:41:53 -0600
commit8a7e7d5697a8b14ec02731d003bed89b1c54dfb7 (patch)
treec6c8656dcdcb4026f8b779075e96542b164e1667 /api
parentfdb87049d861d92093b382622c9e528405c727f9 (diff)
downloadu-boot-8a7e7d5697a8b14ec02731d003bed89b1c54dfb7.tar.gz
u-boot-8a7e7d5697a8b14ec02731d003bed89b1c54dfb7.tar.xz
u-boot-8a7e7d5697a8b14ec02731d003bed89b1c54dfb7.zip
Makefile: descend into subdirectories only when CONFIG_API is defined
All objects under api/ and examples/api/ directories are selected by CONFIG_API. So we can move CONFIG_API switch to the top Makefile. In order to use CONFIG_API, the definition of SUBDIR_EXAMPLES-y must be moved after "sinlude $(obj)include/autoconf.mk". Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'api')
-rw-r--r--api/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/api/Makefile b/api/Makefile
index fb130ffe8b..0f85a0b098 100644
--- a/api/Makefile
+++ b/api/Makefile
@@ -4,5 +4,6 @@
4# SPDX-License-Identifier: GPL-2.0+ 4# SPDX-License-Identifier: GPL-2.0+
5# 5#
6 6
7obj-$(CONFIG_API) += api.o api_display.o api_net.o api_storage.o \ 7obj-y += api.o api_display.o api_net.o api_storage.o
8 api_platform-$(ARCH).o 8obj-$(CONFIG_ARM) += api_platform-arm.o
9obj-$(CONFIG_PPC) += api_platform-powerpc.c