diff options
-rw-r--r-- | meta/classes/kernel.bbclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 4acec1877e..5faa302a16 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -322,9 +322,11 @@ python do_devshell:prepend () { | |||
322 | 322 | ||
323 | addtask bundle_initramfs after do_install before do_deploy | 323 | addtask bundle_initramfs after do_install before do_deploy |
324 | 324 | ||
325 | KERNEL_DEBUG_TIMESTAMPS ??= "0" | ||
326 | |||
325 | kernel_do_compile() { | 327 | kernel_do_compile() { |
326 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE | 328 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE |
327 | if [ "${BUILD_REPRODUCIBLE_BINARIES}" = "1" ]; then | 329 | if [ "${KERNEL_DEBUG_TIMESTAMPS}" != "1" ]; then |
328 | # kernel sources do not use do_unpack, so SOURCE_DATE_EPOCH may not | 330 | # kernel sources do not use do_unpack, so SOURCE_DATE_EPOCH may not |
329 | # be set.... | 331 | # be set.... |
330 | if [ "${SOURCE_DATE_EPOCH}" = "" -o "${SOURCE_DATE_EPOCH}" = "0" ]; then | 332 | if [ "${SOURCE_DATE_EPOCH}" = "" -o "${SOURCE_DATE_EPOCH}" = "0" ]; then |
@@ -364,7 +366,7 @@ kernel_do_compile() { | |||
364 | 366 | ||
365 | do_compile_kernelmodules() { | 367 | do_compile_kernelmodules() { |
366 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE | 368 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE |
367 | if [ "${BUILD_REPRODUCIBLE_BINARIES}" = "1" ]; then | 369 | if [ "${KERNEL_DEBUG_TIMESTAMPS}" != "1" ]; then |
368 | # kernel sources do not use do_unpack, so SOURCE_DATE_EPOCH may not | 370 | # kernel sources do not use do_unpack, so SOURCE_DATE_EPOCH may not |
369 | # be set.... | 371 | # be set.... |
370 | if [ "${SOURCE_DATE_EPOCH}" = "" -o "${SOURCE_DATE_EPOCH}" = "0" ]; then | 372 | if [ "${SOURCE_DATE_EPOCH}" = "" -o "${SOURCE_DATE_EPOCH}" = "0" ]; then |