From 0df2c6563a3537ed21b28a9fb6874bf2718afd05 Mon Sep 17 00:00:00 2001 From: Josua Mayer Date: Wed, 17 Aug 2016 16:09:46 +0200 Subject: [PATCH] kernel: prevent addition of scm marker to localversion When building the kernel from a git repository, the kernel build appends either a + or a short commit hash to localversion. This behaviour can be prevented by passing the empty LOCALVERSION variable to make. Signed-off-by: Josua Mayer --- include/kernel-defaults.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk index 53e733adc0..47befbaab0 100644 --- a/include/kernel-defaults.mk +++ b/include/kernel-defaults.mk @@ -33,6 +33,10 @@ ifdef CONFIG_USE_SPARSE KERNEL_MAKEOPTS += C=1 CHECK=$(STAGING_DIR_HOST)/bin/sparse endif +ifneq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),"") + KERNEL_MAKEOPTS += LOCALVERSION= +endif + export HOST_EXTRACFLAGS=-I$(STAGING_DIR_HOST)/include # defined in quilt.mk