diff --git a/kernel-binary.spec.in b/kernel-binary.spec.in index f6a61a22..e1e09b0d 100644 --- a/kernel-binary.spec.in +++ b/kernel-binary.spec.in @@ -266,18 +266,12 @@ make clean $MAKE_ARGS rm -f source find . ! -type d -printf '%%P\n' > %my_builddir/obj-files +# Override the timestamp 'uname -v' reports with the source timestamp and +# the commit hash. +date=$(head -n 1 %_sourcedir/source-timestamp) +commit=$(sed -n 's/GIT Revision: //p' %_sourcedir/source-timestamp) cat > .kernel-binary.spec.buildenv < %my_builddir/obj-files +# Override the timestamp 'uname -v' reports with the source timestamp and +# the commit hash. +date=$(head -n 1 %_sourcedir/source-timestamp) +commit=$(sed -n 's/GIT Revision: //p' %_sourcedir/source-timestamp) cat > .kernel-binary.spec.buildenv < %my_builddir/obj-files +# Override the timestamp 'uname -v' reports with the source timestamp and +# the commit hash. +date=$(head -n 1 %_sourcedir/source-timestamp) +commit=$(sed -n 's/GIT Revision: //p' %_sourcedir/source-timestamp) cat > .kernel-binary.spec.buildenv < %my_builddir/obj-files +# Override the timestamp 'uname -v' reports with the source timestamp and +# the commit hash. +date=$(head -n 1 %_sourcedir/source-timestamp) +commit=$(sed -n 's/GIT Revision: //p' %_sourcedir/source-timestamp) cat > .kernel-binary.spec.buildenv < %my_builddir/obj-files +# Override the timestamp 'uname -v' reports with the source timestamp and +# the commit hash. +date=$(head -n 1 %_sourcedir/source-timestamp) +commit=$(sed -n 's/GIT Revision: //p' %_sourcedir/source-timestamp) cat > .kernel-binary.spec.buildenv < %my_builddir/obj-files +# Override the timestamp 'uname -v' reports with the source timestamp and +# the commit hash. +date=$(head -n 1 %_sourcedir/source-timestamp) +commit=$(sed -n 's/GIT Revision: //p' %_sourcedir/source-timestamp) cat > .kernel-binary.spec.buildenv < %my_builddir/obj-files +# Override the timestamp 'uname -v' reports with the source timestamp and +# the commit hash. +date=$(head -n 1 %_sourcedir/source-timestamp) +commit=$(sed -n 's/GIT Revision: //p' %_sourcedir/source-timestamp) cat > .kernel-binary.spec.buildenv < %my_builddir/obj-files +# Override the timestamp 'uname -v' reports with the source timestamp and +# the commit hash. +date=$(head -n 1 %_sourcedir/source-timestamp) +commit=$(sed -n 's/GIT Revision: //p' %_sourcedir/source-timestamp) cat > .kernel-binary.spec.buildenv < %my_builddir/obj-files +# Override the timestamp 'uname -v' reports with the source timestamp and +# the commit hash. +date=$(head -n 1 %_sourcedir/source-timestamp) +commit=$(sed -n 's/GIT Revision: //p' %_sourcedir/source-timestamp) cat > .kernel-binary.spec.buildenv < %my_builddir/obj-files +# Override the timestamp 'uname -v' reports with the source timestamp and +# the commit hash. +date=$(head -n 1 %_sourcedir/source-timestamp) +commit=$(sed -n 's/GIT Revision: //p' %_sourcedir/source-timestamp) cat > .kernel-binary.spec.buildenv < %my_builddir/obj-files +# Override the timestamp 'uname -v' reports with the source timestamp and +# the commit hash. +date=$(head -n 1 %_sourcedir/source-timestamp) +commit=$(sed -n 's/GIT Revision: //p' %_sourcedir/source-timestamp) cat > .kernel-binary.spec.buildenv < %my_builddir/obj-files +# Override the timestamp 'uname -v' reports with the source timestamp and +# the commit hash. +date=$(head -n 1 %_sourcedir/source-timestamp) +commit=$(sed -n 's/GIT Revision: //p' %_sourcedir/source-timestamp) cat > .kernel-binary.spec.buildenv <