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

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

SVN-Revision: 48545
lede-17.01
Felix Fietkau 2016-01-29 00:38:49 +00:00
parent 5d624d0b47
commit 3021d3139b
1 changed files with 1 additions and 0 deletions

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