[U-Boot] [PATCH v1 1/2] MIPS: Kconfig: refactor machine setup

Daniel Schwierzeck daniel.schwierzeck at gmail.com
Mon Dec 21 16:35:13 CET 2015


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 at gmail.com>

---

 arch/mips/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 43f0f5c..6a9f798 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -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))
-- 
2.5.0



More information about the U-Boot mailing list