[source] kernel: prevent addition of scm marker to localversion

LEDE Commits lede-commits at lists.infradead.org
Thu Aug 18 00:49:33 PDT 2016


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=0df2c6563a3537ed21b28a9fb6874bf2718afd05

commit 0df2c6563a3537ed21b28a9fb6874bf2718afd05
Author: Josua Mayer <josua.mayer97 at gmail.com>
AuthorDate: Wed Aug 17 16:09:46 2016 +0200

    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 at gmail.com>
---
 include/kernel-defaults.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk
index 53e733a..47befba 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



More information about the lede-commits mailing list