diff options
author | Oleksij Rempel <linux@rempel-privat.de> | 2017-12-12 18:55:53 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-01-05 09:18:41 +0100 |
commit | 5970e15e49f97122a540d30a55df02f10ef888ca (patch) | |
tree | c1723752359ae01f1486eedbc5aa923cbd5dfc61 | |
parent | 21bbc2f97e2953dc633175f3ca045972ea2c7e61 (diff) | |
download | barebox-5970e15e49f97122a540d30a55df02f10ef888ca.tar.gz barebox-5970e15e49f97122a540d30a55df02f10ef888ca.tar.xz |
MIPS: provide HAS_NO_BOARD_HL_CODE
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@rempel-privat.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/mips/Kconfig | 3 | ||||
-rw-r--r-- | arch/mips/Makefile | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 06a516d70f..c2c555dc37 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 dd5ceea200..ecc91111bf 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/ |