From: Masahiro Yamada <yamada.m@jp.panasonic.com>
Date: Wed, 20 Nov 2013 03:45:56 +0000 (+0900)
Subject: Makefile: descend into subdirectories only when CONFIG_API is defined
X-Git-Tag: v2025.01-rc5-pxa1908~15591
X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=ad420282e211cb5156691df0bcc7d9946bf4553c;p=u-boot.git

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>
---

diff --git a/api/Makefile b/api/Makefile
index 0f85a0b098..3c095eedb6 100644
--- a/api/Makefile
+++ b/api/Makefile
@@ -6,4 +6,4 @@
 
 obj-y += api.o api_display.o api_net.o api_storage.o
 obj-$(CONFIG_ARM) += api_platform-arm.o
-obj-$(CONFIG_PPC) += api_platform-powerpc.c
+obj-$(CONFIG_PPC) += api_platform-powerpc.o