From 57ef81d78f590c86aaebeb41c14528b33b73db94 Mon Sep 17 00:00:00 2001 From: Josua Mayer Date: Wed, 17 Aug 2016 16:18:04 +0200 Subject: [PATCH] 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 --- include/kernel-defaults.mk | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2