[U-Boot] [PATCH 1/3] ARM: Makefile: Fix config.mk inclusion for multiple mach-* dirs

Marcin Niestroj m.niestroj at grinn-global.com
Mon Jan 23 14:39:14 CET 2017


If multiple mach-* directories are enabled in Kconfig then there was a
build error:
make[1]: *** arch/arm/mach-<directory>/: Is a directory. Stop.

Allow to enable multiple mach-* directories by proper config.mk
inclusion for each of them.

Signed-off-by: Marcin Niestroj <m.niestroj at grinn-global.com>
---
 arch/arm/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 4b8bf80c40..43462fd844 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -109,4 +109,4 @@ libs-y += arch/arm/mach-mvebu/
 endif
 
 # deprecated
--include $(machdirs)/config.mk
+-include $(patsubst %,%/config.mk,$(machdirs))
-- 
2.11.0



More information about the U-Boot mailing list