kernel: remove .config.prev when running make kernel_*config to fix rebuild errors
authorFelix Fietkau <nbd@openwrt.org>
Fri, 29 Jan 2016 00:38:49 +0000 (00:38 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 29 Jan 2016 00:38:49 +0000 (00:38 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48545

include/kernel-build.mk

index 9abfd542e8faa7d99ec371e686bffaa91ab1cff0..8bfd9c89e31e72accd50e08866b92c846ff1c7b6 100644 (file)
@@ -125,6 +125,7 @@ define BuildKernel
        $(MAKE) -C image compile TARGET_BUILD=
 
   oldconfig menuconfig nconfig: $(STAMP_PREPARED) $(STAMP_CHECKED) FORCE
+       rm -f $(LINUX_DIR)/.config.prev
        rm -f $(STAMP_CONFIGURED)
        $(LINUX_RECONF_CMD) > $(LINUX_DIR)/.config
        $(_SINGLE)$(MAKE) -C $(LINUX_DIR) $(KERNEL_MAKEOPTS) $$@