From: Josua Mayer Date: Wed, 17 Aug 2016 14:09:46 +0000 (+0200) Subject: kernel: prevent addition of scm marker to localversion X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0df2c6563a3537ed21b28a9fb6874bf2718afd05;p=librecmc%2Flibrecmc.git 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 --- 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