Commit ad420282e211cb5156691df0bcc7d9946bf4553c

Authored by Masahiro Yamada
Committed by Tom Rini
1 parent 017ce20f46

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -6,5 +6,5 @@
6 6  
7 7 obj-y += api.o api_display.o api_net.o api_storage.o
8 8 obj-$(CONFIG_ARM) += api_platform-arm.o
9   -obj-$(CONFIG_PPC) += api_platform-powerpc.c
  9 +obj-$(CONFIG_PPC) += api_platform-powerpc.o