[PATCH v2 1/5] MIPS: provide HAS_NO_BOARD_HL_CODE

Oleksij Rempel linux at rempel-privat.de
Tue Dec 12 09:55:53 PST 2017


some boards have PBL code, but no board specific
high level code.
Instead of creating dummy.c files, better provide
config to avoid compiling of board code.

Signed-off-by: Oleksij Rempel <linux at rempel-privat.de>
---
 arch/mips/Kconfig  | 3 +++
 arch/mips/Makefile | 6 +++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 06a516d70..c2c555dc3 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -22,6 +22,9 @@ config GENERIC_LINKER_SCRIPT
 	bool
 	default y
 
+config HAS_NO_BOARD_HL_CODE
+	bool
+
 menu "Machine selection"
 
 config BUILTIN_DTB
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index dd5ceea20..ecc91111b 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -124,7 +124,11 @@ else
 MACH  :=
 endif
 
-common-y += $(BOARD) $(MACH)
+ifndef CONFIG_HAS_NO_BOARD_HL_CODE
+common-y += $(BOARD)
+endif
+
+common-y += $(MACH)
 common-y += arch/mips/lib/
 common-y += arch/mips/boot/
 
-- 
2.14.1




More information about the barebox mailing list