Commit 165ecd26f036b1952dbf25823fbff7c0a403a29f

Authored by Masahiro Yamada
Committed by Tom Rini
1 parent be25d875b9

kbuild: Descend into SOC directory from CPU directory

Some CPUs of some architectures have SOC directories.
At present, the build system directly descends into SOC directories
from the top Makefile, but it should generally descend into each
directory from its parent directory.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>

Showing 14 changed files with 23 additions and 7 deletions Side-by-side Diff

... ... @@ -610,9 +610,6 @@
610 610 libs-y += lib/
611 611 libs-$(HAVE_VENDOR_COMMON_LIB) += board/$(VENDOR)/common/
612 612 libs-y += $(CPUDIR)/
613   -ifdef SOC
614   -libs-y += $(CPUDIR)/$(SOC)/
615   -endif
616 613 libs-$(CONFIG_OF_EMBED) += dts/
617 614 libs-y += arch/$(ARCH)/lib/
618 615 libs-y += fs/
arch/arm/cpu/arm1136/Makefile
... ... @@ -7,4 +7,6 @@
7 7  
8 8 extra-y = start.o
9 9 obj-y = cpu.o
  10 +
  11 +obj-y += $(if $(SOC),$(SOC)/)
arch/arm/cpu/arm1176/Makefile
... ... @@ -10,4 +10,6 @@
10 10  
11 11 extra-y = start.o
12 12 obj-y = cpu.o
  13 +
  14 +obj-y += $(if $(SOC),$(SOC)/)
arch/arm/cpu/arm720t/Makefile
... ... @@ -9,4 +9,6 @@
9 9 obj-y = interrupts.o cpu.o
10 10  
11 11 obj-$(CONFIG_TEGRA) += tegra-common/
  12 +
  13 +obj-y += $(if $(SOC),$(SOC)/)
arch/arm/cpu/arm920t/Makefile
... ... @@ -9,4 +9,6 @@
9 9  
10 10 obj-y += cpu.o
11 11 obj-$(CONFIG_USE_IRQ) += interrupts.o
  12 +
  13 +obj-y += $(if $(SOC),$(SOC)/)
arch/arm/cpu/arm926ejs/Makefile
... ... @@ -13,4 +13,6 @@
13 13 extra-y :=
14 14 endif
15 15 endif
  16 +
  17 +obj-y += $(if $(SOC),$(SOC)/)
arch/arm/cpu/armv7/Makefile
... ... @@ -37,4 +37,6 @@
37 37 ifneq (,$(filter s5pc1xx exynos,$(SOC)))
38 38 obj-y += s5p-common/
39 39 endif
  40 +
  41 +obj-y += $(if $(SOC),$(SOC)/)
arch/arm/cpu/armv8/Makefile
... ... @@ -14,4 +14,6 @@
14 14 obj-y += cache.o
15 15 obj-y += tlb.o
16 16 obj-y += transition.o
  17 +
  18 +obj-y += $(if $(SOC),$(SOC)/)
arch/avr32/cpu/Makefile
... ... @@ -16,4 +16,6 @@
16 16 obj-y += interrupts.o
17 17 obj-$(CONFIG_PORTMUX_PIO) += portmux-pio.o
18 18 obj-$(CONFIG_PORTMUX_GPIO) += portmux-gpio.o
  19 +
  20 +obj-y += $(if $(SOC),$(SOC)/)
arch/mips/cpu/mips32/Makefile
... ... @@ -8,4 +8,6 @@
8 8 extra-y = start.o
9 9 obj-y = cache.o
10 10 obj-y += cpu.o interrupts.o time.o
  11 +
  12 +obj-y += $(if $(SOC),$(SOC)/)
arch/nds32/cpu/n1213/Makefile
... ... @@ -13,4 +13,6 @@
13 13 obj- := __dummy__.o
14 14  
15 15 extra-y = start.o
  16 +
  17 +obj-y += $(if $(SOC),$(SOC)/)
arch/x86/cpu/Makefile
... ... @@ -11,4 +11,6 @@
11 11 extra-y = start.o
12 12 obj-$(CONFIG_X86_RESET_VECTOR) += resetvec.o start16.o
13 13 obj-y += interrupts.o cpu.o call64.o
  14 +
  15 +obj-y += $(if $(SOC),$(SOC)/)
board/davinci/da8xxevm/u-boot-spl-hawk.lds
... ... @@ -20,7 +20,7 @@
20 20 {
21 21 *(.vectors)
22 22 arch/arm/cpu/arm926ejs/start.o (.text*)
23   - arch/arm/cpu/arm926ejs/davinci/built-in.o (.text*)
  23 + arch/arm/cpu/arm926ejs/built-in.o (.text*)
24 24 drivers/mtd/nand/built-in.o (.text*)
25 25  
26 26 *(.text*)
scripts/Makefile.spl
... ... @@ -60,9 +60,6 @@
60 60  
61 61 libs-y += $(CPUDIR)/
62 62  
63   -ifdef SOC
64   -libs-y += $(CPUDIR)/$(SOC)/
65   -endif
66 63 libs-y += $(if $(BOARDDIR),board/$(BOARDDIR)/)
67 64 libs-$(HAVE_VENDOR_COMMON_LIB) += board/$(VENDOR)/common/
68 65