diff options
author | Sam Ravnborg <sam@mars.ravnborg.org> | 2004-10-31 06:05:58 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2004-10-31 06:05:58 +0200 |
commit | f4d9cf5b57ceb3338c4b41a75eaa7c46ce826bf3 (patch) | |
tree | d71da109dee35992a57bc7ed7538a5bd73cccda7 /scripts | |
parent | 7928d90e9c01bf5ebfdc5c48871a97547ef70d29 (diff) | |
download | history-f4d9cf5b57ceb3338c4b41a75eaa7c46ce826bf3.tar.gz |
kbuild: allow architectures to specify defconfig file with KBUILD_DEFCONFIG
For some architectures is does not make sense to maintain a single default
configuration - arm is a good example here.
KBUILD_DEFCONFIG is introduced allowing relevant architectures to point out
a configuration kept in arch/$(ARCH)/configs as the configuration
to be used when executing 'make defconfig'.
This patch selects versatile_defconfig as the default configuration for arm.
The reason to keep defconfig is that is has proved valuable in many testing
scenarios when one are doing a cross architecture build of the kernel to
do a simple compile-time check of some changes.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 6377641dd59926..fe5630471fd388 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -38,7 +38,12 @@ allmodconfig: $(obj)/conf $< -m arch/$(ARCH)/Kconfig defconfig: $(obj)/conf +ifeq ($(KBUILD_DEFCONFIG),) $< -d arch/$(ARCH)/Kconfig +else + @echo *** Default configuration is based on '$(KBUILD_DEFCONFIG)' + $(Q)$< -D arch/$(ARCH)/configs/$(KBUILD_DEFCONFIG) arch/$(ARCH)/Kconfig +endif %_defconfig: $(obj)/conf $(Q)$< -D arch/$(ARCH)/configs/$@ arch/$(ARCH)/Kconfig |