Lines Matching +full:timestamp +full:- +full:names
2 # SPDX-License-Identifier: GPL-2.0
14 # Do not expand names
15 set -f
21 if [ -z "$KBUILD_BUILD_VERSION" ]; then
27 if [ -z "$KBUILD_BUILD_TIMESTAMP" ]; then
28 TIMESTAMP=`date`
30 TIMESTAMP=$KBUILD_BUILD_TIMESTAMP
32 if test -z "$KBUILD_BUILD_USER"; then
37 if test -z "$KBUILD_BUILD_HOST"; then
38 LINUX_COMPILE_HOST=`uname -n`
45 if [ -n "$SMP" ] ; then CONFIG_FLAGS="SMP"; fi
46 if [ -n "$PREEMPT" ] ; then CONFIG_FLAGS="$CONFIG_FLAGS PREEMPT"; fi
47 if [ -n "$PREEMPT_RT" ] ; then CONFIG_FLAGS="$CONFIG_FLAGS PREEMPT_RT"; fi
51 UTS_VERSION="$(echo $UTS_VERSION $CONFIG_FLAGS $TIMESTAMP | cut -b -$UTS_LEN)"
56 if [ -n "$CONFIG_FLAGS" ] ; then echo "/* $CONFIG_FLAGS */"; fi
65 LD_VERSION=$($LD -v | head -n1 | sed 's/(compatible with [^)]*)//' \
71 # in order to preserve the timestamp and avoid unnecessary
75 # reproducible builds with that value referring to a commit timestamp).
81 if [ -z "$KBUILD_BUILD_TIMESTAMP" ]; then
87 if [ -r $TARGET ] && \
88 grep -v $IGNORE_PATTERN $TARGET > .tmpver.1 && \
89 grep -v $IGNORE_PATTERN .tmpcompile > .tmpver.2 && \
90 cmp -s .tmpver.1 .tmpver.2; then
91 rm -f .tmpcompile
94 mv -f .tmpcompile $TARGET
96 rm -f .tmpver.1 .tmpver.2