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>
master
Masahiro Yamada 10 years ago committed by Tom Rini
parent be25d875b9
commit 165ecd26f0
  1. 3
      Makefile
  2. 2
      arch/arm/cpu/arm1136/Makefile
  3. 2
      arch/arm/cpu/arm1176/Makefile
  4. 2
      arch/arm/cpu/arm720t/Makefile
  5. 2
      arch/arm/cpu/arm920t/Makefile
  6. 2
      arch/arm/cpu/arm926ejs/Makefile
  7. 2
      arch/arm/cpu/armv7/Makefile
  8. 2
      arch/arm/cpu/armv8/Makefile
  9. 2
      arch/avr32/cpu/Makefile
  10. 2
      arch/mips/cpu/mips32/Makefile
  11. 2
      arch/nds32/cpu/n1213/Makefile
  12. 2
      arch/x86/cpu/Makefile
  13. 2
      board/davinci/da8xxevm/u-boot-spl-hawk.lds
  14. 3
      scripts/Makefile.spl

@ -610,9 +610,6 @@ HAVE_VENDOR_COMMON_LIB = $(if $(wildcard $(srctree)/board/$(VENDOR)/common/Makef
libs-y += lib/
libs-$(HAVE_VENDOR_COMMON_LIB) += board/$(VENDOR)/common/
libs-y += $(CPUDIR)/
ifdef SOC
libs-y += $(CPUDIR)/$(SOC)/
endif
libs-$(CONFIG_OF_EMBED) += dts/
libs-y += arch/$(ARCH)/lib/
libs-y += fs/

@ -7,3 +7,5 @@
extra-y = start.o
obj-y = cpu.o
obj-y += $(if $(SOC),$(SOC)/)

@ -10,3 +10,5 @@
extra-y = start.o
obj-y = cpu.o
obj-y += $(if $(SOC),$(SOC)/)

@ -9,3 +9,5 @@ extra-y = start.o
obj-y = interrupts.o cpu.o
obj-$(CONFIG_TEGRA) += tegra-common/
obj-y += $(if $(SOC),$(SOC)/)

@ -9,3 +9,5 @@ extra-y = start.o
obj-y += cpu.o
obj-$(CONFIG_USE_IRQ) += interrupts.o
obj-y += $(if $(SOC),$(SOC)/)

@ -13,3 +13,5 @@ ifdef CONFIG_SPL_NO_CPU_SUPPORT_CODE
extra-y :=
endif
endif
obj-y += $(if $(SOC),$(SOC)/)

@ -37,3 +37,5 @@ obj-$(CONFIG_TEGRA) += tegra-common/
ifneq (,$(filter s5pc1xx exynos,$(SOC)))
obj-y += s5p-common/
endif
obj-y += $(if $(SOC),$(SOC)/)

@ -14,3 +14,5 @@ obj-y += exceptions.o
obj-y += cache.o
obj-y += tlb.o
obj-y += transition.o
obj-y += $(if $(SOC),$(SOC)/)

@ -16,3 +16,5 @@ obj-y += cache.o
obj-y += interrupts.o
obj-$(CONFIG_PORTMUX_PIO) += portmux-pio.o
obj-$(CONFIG_PORTMUX_GPIO) += portmux-gpio.o
obj-y += $(if $(SOC),$(SOC)/)

@ -8,3 +8,5 @@
extra-y = start.o
obj-y = cache.o
obj-y += cpu.o interrupts.o time.o
obj-y += $(if $(SOC),$(SOC)/)

@ -13,3 +13,5 @@
obj- := __dummy__.o
extra-y = start.o
obj-y += $(if $(SOC),$(SOC)/)

@ -11,3 +11,5 @@
extra-y = start.o
obj-$(CONFIG_X86_RESET_VECTOR) += resetvec.o start16.o
obj-y += interrupts.o cpu.o call64.o
obj-y += $(if $(SOC),$(SOC)/)

@ -20,7 +20,7 @@ SECTIONS
{
*(.vectors)
arch/arm/cpu/arm926ejs/start.o (.text*)
arch/arm/cpu/arm926ejs/davinci/built-in.o (.text*)
arch/arm/cpu/arm926ejs/built-in.o (.text*)
drivers/mtd/nand/built-in.o (.text*)
*(.text*)

@ -60,9 +60,6 @@ libs-y += arch/$(ARCH)/lib/
libs-y += $(CPUDIR)/
ifdef SOC
libs-y += $(CPUDIR)/$(SOC)/
endif
libs-y += $(if $(BOARDDIR),board/$(BOARDDIR)/)
libs-$(HAVE_VENDOR_COMMON_LIB) += board/$(VENDOR)/common/

Loading…
Cancel
Save