From: Josua Mayer Date: Wed, 17 Aug 2016 14:18:04 +0000 (+0200) Subject: kernel: prevent adding custom string to localversion X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=57ef81d78f590c86aaebeb41c14528b33b73db94;p=openwrt%2Fstaging%2Fluka.git kernel: prevent adding custom string to localversion When the kernel build picks up a localversion file in the source tree, that string is unconditionally appended to LOCALVERSION and affects the uname string. Make sure to delete any such file. Signed-off-by: Josua Mayer --- diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk index 47befbaab0..bae8cd0ee3 100644 --- a/include/kernel-defaults.mk +++ b/include/kernel-defaults.mk @@ -111,6 +111,7 @@ define Kernel/SetNoInitramfs endef define Kernel/Configure/Default + rm -f $(LINUX_DIR)/localversion $(LINUX_CONF_CMD) > $(LINUX_DIR)/.config.target # copy CONFIG_KERNEL_* settings over to .config.target awk '/^(#[[:space:]]+)?CONFIG_KERNEL/{sub("CONFIG_KERNEL_","CONFIG_");print}' $(TOPDIR)/.config >> $(LINUX_DIR)/.config.target