summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosua Mayer <josua.mayer97@gmail.com>2016-08-17 16:18:04 +0200
committerJohn Crispin <john@phrozen.org>2016-08-18 09:49:18 +0200
commit57ef81d78f590c86aaebeb41c14528b33b73db94 (patch)
tree26e98649f603af8e9cd9e5880ed8420ee205aedd
parent0df2c6563a3537ed21b28a9fb6874bf2718afd05 (diff)
downloadmtk-20170518-57ef81d78f590c86aaebeb41c14528b33b73db94.zip
mtk-20170518-57ef81d78f590c86aaebeb41c14528b33b73db94.tar.gz
mtk-20170518-57ef81d78f590c86aaebeb41c14528b33b73db94.tar.bz2
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 <josua.mayer97@gmail.com>
-rw-r--r--include/kernel-defaults.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk
index 47befba..bae8cd0 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