From 33a02da0f68e17f48394fd88f1df694d8b54a2f3 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Mon, 3 Mar 2014 19:03:17 +0900 Subject: kbuild: allow empty board directories U-Boot has compelled all boards to have board/${BOARD}/ or board/${VENDOR}/${BOARD}/ directory. Sometimes it does not seem suitable for some boards, for example Sandbox. (Is it a board?) And arcangel4 board has nothing to compile under the board directory. This commit makes the build system more flexible: If '' is given to the 6th column (=Board name) of boards.cfg, Kbuild will not descend into the board directory. Signed-off-by: Masahiro Yamada --- config.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config.mk') diff --git a/config.mk b/config.mk index e59697f89f..af25c115cc 100644 --- a/config.mk +++ b/config.mk @@ -28,11 +28,13 @@ sinclude $(TOPDIR)/$(CPUDIR)/config.mk # include CPU specific rules ifdef SOC sinclude $(TOPDIR)/$(CPUDIR)/$(SOC)/config.mk # include SoC specific rules endif +ifneq ($(BOARD),) ifdef VENDOR BOARDDIR = $(VENDOR)/$(BOARD) else BOARDDIR = $(BOARD) endif +endif ifdef BOARD sinclude $(TOPDIR)/board/$(BOARDDIR)/config.mk # include board specific rules endif -- cgit v1.2.1