Commit 4642e0022b648968c994551b087a780327079883

Authored by Masahiro Yamada
Committed by Tom Rini
1 parent b4722fefd0

Kbuild: allow building tools without board configuration

Prior to Kbuild, U-Boot could build under tools/ directory
withour configuring for a specific board.

That feature was lost when switching to Kbuild.

This patch revives it again by adding a make target "tools-only".

Usage:
  $ make tools-only

Neither board configuration nor cross compiler are required to
build host tools.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Suggested-by: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@ti.com>
Acked-by: Alexey Brodkin <abrodkin@synopsys.com>

Showing 1 changed file with 4 additions and 1 deletions Side-by-side Diff

... ... @@ -409,7 +409,7 @@
409 409  
410 410 no-dot-config-targets := clean clobber mrproper distclean \
411 411 help %docs check% coccicheck \
412   - ubootversion backup
  412 + ubootversion backup tools-only
413 413  
414 414 config-targets := 0
415 415 mixed-targets := 0
... ... @@ -1127,6 +1127,9 @@
1127 1127  
1128 1128 env: scripts_basic
1129 1129 $(Q)$(MAKE) $(build)=tools/$@
  1130 +
  1131 +tools-only: scripts_basic $(version_h) $(timestamp_h)
  1132 + $(Q)$(MAKE) $(build)=tools
1130 1133  
1131 1134 tools-all: export HOST_TOOLS_ALL=y
1132 1135 tools-all: env tools ;