History

Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net

Conflicts are simple overlapping changes.

David S. Miller committed 5 years ago

Commit 5af84df2 parents 090597b 9f42f67371 files · +3766 −3026Browse files

Showing the changes to scripts (3 of 371 files). Show all

Unified · Split

3 files
  1. scripts/Makefile.build +1 −1
  2. scripts/setlocalversion +8 −5
  3. scripts/spdxcheck.py +1 −1
scripts/Makefile.build+1−1
@@ -386,7 +386,7 @@ ifeq ($(CONFIG_LTO_CLANG) $(CONFIG_MODVERSIONS),y y) · 385 unmodified lines
386386 cmd_update_lto_symversions = \
387387 rm -f $@.symversions \
388388 $(foreach n, $(filter-out FORCE,$^), \
389− $(if $(wildcard $(n).symversions), \
389+ $(if $(shell test -s $(n).symversions && echo y), \
390390 ; cat $(n).symversions >> $@.symversions))
391391 else
392392 cmd_update_lto_symversions = echo >/dev/null
scripts/setlocalversion+8−5
@@ -131,11 +131,14 @@ res="${res}${CONFIG_LOCALVERSION}${LOCALVERSION}" · 130 unmodified lines
131131 if test "$CONFIG_LOCALVERSION_AUTO" = "y"; then
132132 # full scm version string
133133 res="$res$(scm_version)"
134−elif [ -z "${LOCALVERSION}" ]; then
135− # append a plus sign if the repository is not in a clean
136− # annotated or signed tagged state (as git describe only
137− # looks at signed or annotated tags - git tag -a/-s) and
138− # LOCALVERSION= is not specified
134+elif [ "${LOCALVERSION+set}" != "set" ]; then
135+ # If the variable LOCALVERSION is not set, append a plus
136+ # sign if the repository is not in a clean annotated or
137+ # signed tagged state (as git describe only looks at signed
138+ # or annotated tags - git tag -a/-s).
139+ #
140+ # If the variable LOCALVERSION is set (including being set
141+ # to an empty string), we don't want to append a plus sign.
139142 scm=$(scm_version --short)
140143 res="$res${scm:++}"
141144 fi
scripts/spdxcheck.py+1−1
@@ -44,7 +44,7 @@ def read_spdxdata(repo): · 43 unmodified lines
4444 continue
4545
4646 exception = None
47− for l in open(el.path).readlines():
47+ for l in open(el.path, encoding="utf-8").readlines():
4848 if l.startswith('Valid-License-Identifier:'):
4949 lid = l.split(':')[1].strip().upper()
5050 if lid in spdx.licenses: