aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-02-25 16:28:32 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-02-25 16:28:32 -0800
commit7e1940ece634de0c7602f31e3d830956cd485e82 (patch)
tree275588248a7f59e446dbd7af744d2d050a0a18df /Makefile
parent483d14ad6c1e9f1df99ec71cb168f06689b8546d (diff)
downloadhistory-7e1940ece634de0c7602f31e3d830956cd485e82.tar.gz
[PATCH] kbuild: add defconfig targets to make help
From: Sam Ravnborg <sam@ravnborg.org> List all entries in arch/$(ARCH)/configs/*_defconfig when doing 'make help'. Results in output like this (ppc64 as example): g5_defconfig - Build for g5 pSeries_defconfig - Build for pSeries The implementation is generic and enables this for all users of _defconfig.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5fa47aa16eab5..a801ebb5fd3d8 100644
--- a/Makefile
+++ b/Makefile
@@ -889,6 +889,9 @@ rpm: clean spec
# Brief documentation of the typical targets used
# ---------------------------------------------------------------------------
+boards := $(wildcard $(srctree)/arch/$(ARCH)/configs/*_defconfig)
+boards := $(notdir $(boards))
+
help:
@echo 'Cleaning targets:'
@echo ' clean - remove most generated files but keep the config'
@@ -914,6 +917,11 @@ help:
@$(if $(archhelp),$(archhelp),\
echo ' No architecture specific help defined for $(ARCH)')
@echo ''
+ @$(if $(boards), \
+ $(foreach b, $(boards), \
+ printf " %-24s - Build for %s\\n" $(b) $(subst _defconfig,,$(b));) \
+ echo '')
+
@echo ' make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build'
@echo ' make O=dir [targets] Locate all output files in "dir", including .config'
@echo ' make C=1 [targets] Check all c source with checker tool'