]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - api/Makefile
Makefile: descend into subdirectories only when CONFIG_API is defined
[karo-tx-uboot.git] / api / Makefile
index fb130ffe8b918d6878e903a624c59fc11349e0d9..0f85a0b09864293ff5498ff06d18784936cdd957 100644 (file)
@@ -4,5 +4,6 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-obj-$(CONFIG_API) += api.o api_display.o api_net.o api_storage.o \
-                      api_platform-$(ARCH).o
+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