kbuild: use SoC-specific CONFIG to descend into SoC directory

Use "obj-$(CONFIG_FOO) += foo/" where it is possible.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
This commit is contained in:
Masahiro Yamada
2014-11-13 12:28:42 +09:00
committed by Tom Rini
parent 37c9940a09
commit 56f31e872e
10 changed files with 60 additions and 14 deletions

View File

@@ -17,4 +17,4 @@ obj-y += interrupts.o
obj-$(CONFIG_PORTMUX_PIO) += portmux-pio.o
obj-$(CONFIG_PORTMUX_GPIO) += portmux-gpio.o
obj-y += $(if $(SOC),$(SOC)/)
obj-$(if $(filter at32ap700x,$(SOC)),y) += at32ap700x/