• Masahiro Yamada's avatar
    kconfig: use /boot/config-* etc. as DEFCONFIG_LIST only for native build · f02aa48d
    Masahiro Yamada authored
    When the .config file is missing, 'make config', 'make menuconfig', etc.
    uses a file listed in DEFCONFIG_LIST, if found, as base configuration.
    
    Ususally, /boot/config-$(uname -r) exists, and is used as default.
    
    However, when you are cross-compiling the kernel, it does not make
    sense to use /boot/config-* on the build host. It should default to
    arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG).
    
    UML previously did not use DEFCONFIG_LIST at all, but it should be
    able to use arch/um/configs/$(KBUILD_DEFCONFIG) as a base config file.
    Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
    f02aa48d
Makefile 7.6 KB