[PATCH v2 1/5] MIPS: provide HAS_NO_BOARD_HL_CODE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx>
---
 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


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux