setlocalversion (75280bdf49b2f563fb5404df7c7b735c118695fe) | setlocalversion (ec31f868ec674edfcf653cc7c82b365c6f570cd9) |
---|---|
1#!/bin/sh 2# SPDX-License-Identifier: GPL-2.0 3# 4# This scripts adds local version information from the version 5# control systems git, mercurial (hg) and subversion (svn). 6# 7# If something goes wrong, send a mail the kernel build mailinglist 8# (see MAINTAINERS) and CC Nico Schottelius --- 88 unchanged lines hidden (view full) --- 97 echo "$res" 98} 99 100if ! test -e include/config/auto.conf; then 101 echo "Error: kernelrelease not valid - run 'make prepare' to update it" >&2 102 exit 1 103fi 104 | 1#!/bin/sh 2# SPDX-License-Identifier: GPL-2.0 3# 4# This scripts adds local version information from the version 5# control systems git, mercurial (hg) and subversion (svn). 6# 7# If something goes wrong, send a mail the kernel build mailinglist 8# (see MAINTAINERS) and CC Nico Schottelius --- 88 unchanged lines hidden (view full) --- 97 echo "$res" 98} 99 100if ! test -e include/config/auto.conf; then 101 echo "Error: kernelrelease not valid - run 'make prepare' to update it" >&2 102 exit 1 103fi 104 |
105if [ -z "${KERNELVERSION}" ]; then 106 echo "KERNELVERSION is not set" >&2 107 exit 1 108fi 109 |
|
105# localversion* files in the build and source directory 106res="$(collect_files localversion*)" 107if test ! "$srctree" -ef .; then 108 res="$res$(collect_files "$srctree"/localversion*)" 109fi 110 111# CONFIG_LOCALVERSION and LOCALVERSION (if set) 112config_localversion=$(sed -n 's/^CONFIG_LOCALVERSION=\(.*\)$/\1/p' include/config/auto.conf) --- 9 unchanged lines hidden (view full) --- 122 # signed tagged state (as git describe only looks at signed 123 # or annotated tags - git tag -a/-s). 124 # 125 # If the variable LOCALVERSION is set (including being set 126 # to an empty string), we don't want to append a plus sign. 127 res="$res$(scm_version --short)" 128fi 129 | 110# localversion* files in the build and source directory 111res="$(collect_files localversion*)" 112if test ! "$srctree" -ef .; then 113 res="$res$(collect_files "$srctree"/localversion*)" 114fi 115 116# CONFIG_LOCALVERSION and LOCALVERSION (if set) 117config_localversion=$(sed -n 's/^CONFIG_LOCALVERSION=\(.*\)$/\1/p' include/config/auto.conf) --- 9 unchanged lines hidden (view full) --- 127 # signed tagged state (as git describe only looks at signed 128 # or annotated tags - git tag -a/-s). 129 # 130 # If the variable LOCALVERSION is set (including being set 131 # to an empty string), we don't want to append a plus sign. 132 res="$res$(scm_version --short)" 133fi 134 |
130echo "$res" | 135echo "${KERNELVERSION}${res}" |