kernel: remove .config.prev when running make kernel_*config to fix rebuild errors

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48545
This commit is contained in:
Felix Fietkau 2016-01-29 00:38:49 +00:00
parent 5d624d0b47
commit 3021d3139b

View 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) $$@