lkml.org 
[lkml]   [2004]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] kbuild: add defconfig targets to make help
Hi Linus & Andrew - please apply.

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.

Sam

===== Makefile 1.456 vs edited =====
--- 1.456/Makefile Sun Feb 15 03:42:40 2004
+++ edited/Makefile Wed Feb 25 21:57:52 2004
@@ -889,6 +889,9 @@
# 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 @@
@$(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'
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.085 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site