]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
MIPS: Kconfig: refactor machine setup
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Mon, 21 Dec 2015 15:35:13 +0000 (16:35 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Sat, 16 Jan 2016 20:06:46 +0000 (21:06 +0100)
Refactor machine setup like it is done on ARM. While on it,
also support "include <mach/file.h" for machine specific
header files.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
arch/mips/Makefile

index 43f0f5c5046b0361dfd20b8e5058edd046bbf5ad..6a9f798d5677c0cc523ed35a8d925203ce72a0c3 100644 (file)
@@ -7,4 +7,9 @@ head-y := arch/mips/cpu/start.o
 libs-y += arch/mips/cpu/
 libs-y += arch/mips/lib/
 
-libs-$(CONFIG_SOC_AU1X00) += arch/mips/mach-au1x00/
+machine-$(CONFIG_SOC_AU1X00) += au1x00
+
+machdirs := $(patsubst %,arch/mips/mach-%/,$(machine-y))
+libs-y += $(machdirs)
+
+PLATFORM_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs))