]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/arm/Makefile
ARM: davinci: move SoC sources to mach-davinci
[people/ms/u-boot.git] / arch / arm / Makefile
index ebb7dc34ac7d879a77de54a69654c7d18caf8549..e321057a0edcad2b9b54e72673dd10ea994f5b84 100644 (file)
@@ -2,6 +2,17 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
+# Machine directory name.  This list is sorted alphanumerically
+# by CONFIG_* macro name.
+machine-$(CONFIG_ARCH_AT91)            += at91
+machine-$(CONFIG_ARCH_DAVINCI)         += davinci
+# TODO: rename CONFIG_TEGRA -> CONFIG_ARCH_TEGRA
+machine-$(CONFIG_TEGRA)                        += tegra
+
+machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
+
+libs-y += $(machdirs)
+
 head-y := arch/arm/cpu/$(CPU)/start.o
 
 ifeq ($(CONFIG_SPL_BUILD),y)
@@ -27,3 +38,6 @@ endif
 ifneq (,$(filter $(SOC), armada-xp kirkwood))
 libs-y += arch/arm/mvebu-common/
 endif
+
+# deprecated
+-include $(machdirs)/config.mk