Skip to content

Commit 7e48660

Browse files
committed
use fixed time in kernel build
1 parent ed22ad0 commit 7e48660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/mkosi.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ else
3737
# Build kernel
3838
cd "$build_dir"
3939
cp "$config_file" .config
40-
export KBUILD_BUILD_TIMESTAMP="$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%s)})"
40+
export KBUILD_BUILD_TIMESTAMP="$(date -u -d @$(git log -1 --pretty=%ct))"
4141
export KBUILD_BUILD_USER="mkosi" KBUILD_BUILD_HOST="mkosi-builder"
4242

4343
mkosi-chroot --chdir "/build/kernel-${KERNEL_VERSION}" make olddefconfig

0 commit comments

Comments
 (0)