aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJosua Mayer <josua.mayer97@gmail.com>2016-08-17 16:09:46 +0200
committerJohn Crispin <john@phrozen.org>2016-08-18 09:49:18 +0200
commit0df2c6563a3537ed21b28a9fb6874bf2718afd05 (patch)
treeb8e2e7fb718a240ebbf5a56117af7fbf01b24da2 /include
parent1e71fca7777eeee39a941bdc05535b3e93eb01e9 (diff)
downloadupstream-0df2c6563a3537ed21b28a9fb6874bf2718afd05.tar.gz
upstream-0df2c6563a3537ed21b28a9fb6874bf2718afd05.tar.bz2
upstream-0df2c6563a3537ed21b28a9fb6874bf2718afd05.zip
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 <josua.mayer97@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/kernel-defaults.mk4
1 files changed, 4 insertions, 0 deletions
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