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 /Makefile | |
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 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile index 26c4830a638080..fe84b2693169e8 100644 --- a/Makefile +++ b/Makefile @@ -440,6 +440,12 @@ ifeq ($(config-targets),1) # *config targets only - make sure prerequisites are updated, and descend # in scripts/kconfig to make the *config target +# Read arch specific Makefile to set KBUILD_DEFCONFIG as needed. +# KBUILD_DEFCONFIG may point out an alternative default configuration +# used for 'make defconfig' +include $(srctree)/arch/$(ARCH)/Makefile +export KBUILD_DEFCONFIG + config: scripts_basic outputmakefile FORCE $(Q)$(MAKE) $(build)=scripts/kconfig $@ %config: scripts_basic outputmakefile FORCE |