]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
kbuild: use SoC-specific CONFIG to descend into SoC directory
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Thu, 13 Nov 2014 03:28:42 +0000 (12:28 +0900)
committerTom Rini <trini@ti.com>
Sun, 23 Nov 2014 11:49:02 +0000 (06:49 -0500)
Use "obj-$(CONFIG_FOO) += foo/" where it is possible.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
arch/arm/cpu/arm1136/Makefile
arch/arm/cpu/arm1176/Makefile
arch/arm/cpu/arm720t/Makefile
arch/arm/cpu/arm920t/Makefile
arch/arm/cpu/arm926ejs/Makefile
arch/arm/cpu/armv7/Makefile
arch/arm/cpu/armv8/Makefile
arch/avr32/cpu/Makefile
arch/mips/cpu/mips32/Makefile
arch/nds32/cpu/n1213/Makefile

index 90dc7aa32b3d607b4b2617aae9c9670117b3b8d6..56a9390b0111856fcb335f858ec5bef5a75b2277 100644 (file)
@@ -8,4 +8,5 @@
 extra-y        = start.o
 obj-y  = cpu.o
 
-obj-y += $(if $(SOC),$(SOC)/)
+obj-$(CONFIG_MX31) += mx31/
+obj-$(CONFIG_MX35) += mx35/
index b64edf9d97cbaa6b3cfcaad3d791338e41ff87ec..ead2303373e58420270fc55ef7f570b71e81f419 100644 (file)
@@ -11,4 +11,5 @@
 extra-y        = start.o
 obj-y  = cpu.o
 
-obj-y += $(if $(SOC),$(SOC)/)
+obj-$(CONFIG_BCM2835) += bcm2835/
+obj-$(CONFIG_TNETV107X) += tnetv107x/
index 9893b08dfc899f00343c977b14ffb6d5ea27c138..9f61ea25167d6bfc98ed01f2176cc628a03b9bf4 100644 (file)
@@ -9,5 +9,7 @@ extra-y = start.o
 obj-y  = interrupts.o cpu.o
 
 obj-$(CONFIG_TEGRA) += tegra-common/
-
-obj-y += $(if $(SOC),$(SOC)/)
+obj-$(CONFIG_TEGRA20) += tegra20/
+obj-$(CONFIG_TEGRA30) += tegra30/
+obj-$(CONFIG_TEGRA114) += tegra114/
+obj-$(CONFIG_TEGRA124) += tegra124/
index 9f885ff2305787ff9886d10f2d7c8c6a2c22fcba..a72e5de99eb78b81e616b773df017d19657e1987 100644 (file)
@@ -10,4 +10,9 @@ extra-y       = start.o
 obj-y  += cpu.o
 obj-$(CONFIG_USE_IRQ)  += interrupts.o
 
-obj-y += $(if $(SOC),$(SOC)/)
+obj-$(if $(filter a320,$(SOC)),y) += a320/
+obj-$(CONFIG_AT91FAMILY) += at91/
+obj-$(CONFIG_EP93XX) += ep93xx/
+obj-$(CONFIG_IMX) += imx/
+obj-$(CONFIG_KS8695) += ks8695/
+obj-$(CONFIG_S3C24X0) += s3c24x0/
index bd1ef8b7d46e38464f5a2e3a7c27e5e8679d14aa..adcea9f6834c0fbfc15e64ce1f8d084dac7e758f 100644 (file)
@@ -14,4 +14,17 @@ extra-y      :=
 endif
 endif
 
-obj-y += $(if $(SOC),$(SOC)/)
+obj-$(CONFIG_ARMADA100) += armada100/
+obj-$(CONFIG_AT91FAMILY) += at91/
+obj-$(CONFIG_ARCH_DAVINCI) += davinci/
+obj-$(CONFIG_KIRKWOOD) += kirkwood/
+obj-$(if $(filter lpc32xx,$(SOC)),y) += lpc32xx/
+obj-$(CONFIG_MB86R0x) += mb86r0x/
+obj-$(CONFIG_MX25) += mx25/
+obj-$(CONFIG_MX27) += mx27/
+obj-$(if $(filter mxs,$(SOC)),y) += mxs/
+obj-$(CONFIG_ARCH_NOMADIK) += nomadik/
+obj-$(CONFIG_ORION5X) += orion5x/
+obj-$(CONFIG_PANTHEON) += pantheon/
+obj-$(if $(filter spear,$(SOC)),y) += spear/
+obj-$(CONFIG_ARCH_VERSATILE) += versatile/
index 7d8ca08b4d0238ec28c8e59c20fcc5c95cc553b0..d896d81ad4da494b83228358e0e228e75cd83e12 100644 (file)
@@ -38,4 +38,30 @@ ifneq (,$(filter s5pc1xx exynos,$(SOC)))
 obj-y += s5p-common/
 endif
 
-obj-y += $(if $(SOC),$(SOC)/)
+obj-$(if $(filter am33xx,$(SOC)),y) += am33xx/
+obj-$(if $(filter armada-xp,$(SOC)),y) += armada-xp/
+obj-$(CONFIG_AT91FAMILY) += at91/
+obj-$(if $(filter bcm281xx,$(SOC)),y) += bcm281xx/
+obj-$(if $(filter bcmcygnus,$(SOC)),y) += bcmcygnus/
+obj-$(if $(filter bcmnsp,$(SOC)),y) += bcmnsp/
+obj-$(CONFIG_ARCH_EXYNOS) += exynos/
+obj-$(CONFIG_ARCH_HIGHBANK) += highbank/
+obj-$(CONFIG_ARCH_KEYSTONE) += keystone/
+obj-$(if $(filter ls102xa,$(SOC)),y) += ls102xa/
+obj-$(if $(filter mx5,$(SOC)),y) += mx5/
+obj-$(CONFIG_MX6) += mx6/
+obj-$(CONFIG_OMAP34XX) += omap3/
+obj-$(CONFIG_OMAP44XX) += omap4/
+obj-$(CONFIG_OMAP54XX) += omap5/
+obj-$(CONFIG_RMOBILE) += rmobile/
+obj-$(CONFIG_ARCH_S5PC1XX) += s5pc1xx/
+obj-$(CONFIG_SOCFPGA) += socfpga/
+obj-$(CONFIG_ARCH_SUNXI) += sunxi/
+obj-$(CONFIG_TEGRA20) += tegra20/
+obj-$(CONFIG_TEGRA30) += tegra30/
+obj-$(CONFIG_TEGRA114) += tegra114/
+obj-$(CONFIG_TEGRA124) += tegra124/
+obj-$(CONFIG_U8500) += u8500/
+obj-$(CONFIG_ARCH_UNIPHIER) += uniphier/
+obj-$(CONFIG_VF610) += vf610/
+obj-$(CONFIG_ZYNQ) += zynq/
index d2488e70fffac5964958f9e555d887f422d3566f..0c102230aef40785b12699fb1d4a2c4d5af630b7 100644 (file)
@@ -15,4 +15,4 @@ obj-y += cache.o
 obj-y  += tlb.o
 obj-y  += transition.o
 
-obj-y += $(if $(SOC),$(SOC)/)
+obj-$(CONFIG_FSL_LSCH3) += fsl-lsch3/
index 2f7adf8136d9df42d7e04fbf7575bc9a15622c81..00cede3fd981be7be855df45f0a84ef727c4edc1 100644 (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/
index 1221b9e513badaed878877edd400207d12689ae6..fa82dd375f4faa4f0a05867942e98049ee4c0dbf 100644 (file)
@@ -9,4 +9,4 @@ extra-y = start.o
 obj-y  = cache.o
 obj-y  += cpu.o interrupts.o time.o
 
-obj-y += $(if $(SOC),$(SOC)/)
+obj-$(CONFIG_SOC_AU1X00) += au1x00/
index be98c4a73828fffb303694579255755528c4695e..8ab1fcea26d9fe68a6f5ce16a73f6f23211a1874 100644 (file)
@@ -9,9 +9,7 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-# necessary to create built-in.o
-obj- := __dummy__.o
-
 extra-y        = start.o
 
-obj-y += $(if $(SOC),$(SOC)/)
+obj-$(if $(filter ag101,$(SOC)),y) += ag101/
+obj-$(if $(filter ag102,$(SOC)),y) += ag102/