]> git.sur5r.net Git - u-boot/commitdiff
Makefile: descend into subdirectories only when CONFIG_API is defined
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Wed, 20 Nov 2013 03:45:56 +0000 (12:45 +0900)
committerTom Rini <trini@ti.com>
Mon, 25 Nov 2013 15:41:54 +0000 (10:41 -0500)
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>
api/Makefile

index 0f85a0b09864293ff5498ff06d18784936cdd957..3c095eedb60df0d341c6eb4c72707f549b12139a 100644 (file)
@@ -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