Skip to contentSkip to conversation

Kernel build date does not get "updated"

DISCUSSION David Daniel 2 participants 3 messages Apr 3, 2025

lore
Share & tools
lore
#0 lore raw

Dear all

I have a weird problem with the build of my kernel. I am currently fiddling around with the device tree and some driver code. Now I wanted to test stuff and install the new kernel. I then realized that uname - a still shows me some date from 2024, so I thought I must have been asleep and did not correctly update the kernel and did it again - and again.
It's not the case that the kernel is not updated properly, it's that the date in the uname -a always shows the same date from 2024.

I feel completely stupid - is there anything that fixates this date that you know of? I don't remember doing anything related to that issue. I never touched any configuration that is related to build dates etc.

And just to make sure - I did check the timestamp of the kernel image - it was indeed created freshly. I can also verify that my changes in the devicetree are populated - this gets compiled with the kernel alongside and I did make changes to a driver code I can confirm takes effect. So the kernel running is indeed having my changes (from 2025) but the build date still shows:

    # uname -a                                                                                                                                                                                             
    Linux bf133 6.6.65-rt47-vrag #1 SMP PREEMPT_RT Wed Dec 11 15:13:43 UTC 2024 ppc64 GNU/Linux
    # cat /proc/version                                                                                                                                                                                    
    Linux version 6.6.65-rt47-vrag (oe-user@oe-host) (powerpc64-vrag-linux-gcc (GCC) 14.2.0, GNU ld (GNU Binutils) 2.44) #1 SMP PREEMPT_RT Wed Dec 11 15:13:43 UTC 2024

The kernel was built today (04.03.2025) and not back in december.

Thanks for any hints!

BR
Dave

#1 lore raw

Hi David,

Quoted 23 lines · David Daniel via lists.yoctoproject.org

Dear all

I have a weird problem with the build of my kernel. I am currently fiddling around with the device tree and some driver code. Now I wanted to test stuff and install the new kernel. I then realized that uname - a still shows me some date from 2024, so I thought I must have been asleep and did not correctly update the kernel and did it again - and again.
It's not the case that the kernel is not updated properly, it's that the date in the uname -a always shows the same date from 2024.

I feel completely stupid - is there anything that fixates this date that you know of? I don't remember doing anything related to that issue. I never touched any configuration that is related to build dates etc.

And just to make sure - I did check the timestamp of the kernel image - it was indeed created freshly. I can also verify that my changes in the devicetree are populated - this gets compiled with the kernel alongside and I did make changes to a driver code I can confirm takes effect. So the kernel running is indeed having my changes (from 2025) but the build date still shows:

Quoted 7 lines
     # uname -a
     Linux bf133 6.6.65-rt47-vrag #1 SMP PREEMPT_RT Wed Dec 11 15:13:43 UTC 2024 ppc64 GNU/Linux
     # cat /proc/version
     Linux version 6.6.65-rt47-vrag (oe-user@oe-host) (powerpc64-vrag-linux-gcc (GCC) 14.2.0, GNU ld (GNU Binutils) 2.44) #1 SMP PREEMPT_RT Wed Dec 11 15:13:43 UTC 2024

The kernel was built today (04.03.2025) and not back in december.

Any chance the last commit in the kernel tree is from December? (may not be authored date but committed date)

We need to have a stable date for reproducibility otherwise you cannot reuse the sstate cache/hashequiv server between machines properly.

I would assume this is the reason.

Cheers,
Quentin

#2 lore raw

Ahh! I am sorry! Of course!

Am Donnerstag, dem 03.04.2025 um 12:01 +0200 schrieb Quentin Schulz:

Quoted 59 lines

Hi David,

Quoted 41 lines · David Daniel via lists.yoctoproject.org

Dear all

I have a weird problem with the build of my kernel. I am currently fiddling around with the device tree and some driver code. Now I wanted
to test stuff and install the new kernel. I then realized that `uname -
a` still shows me some date from 2024, so I thought I must have been
asleep and did not correctly update the kernel and did it again - and
again.
It's not the case that the kernel is not updated properly, it's that
the date in the uname -a always shows the same date from 2024.

I feel completely stupid - is there anything that fixates this date that you know of? I don't remember doing anything related to that issue. I never touched any configuration that is related to build dates
etc.

And just to make sure - I did check the timestamp of the kernel image -
it was indeed created freshly. I can also verify that my changes in the
devicetree are populated - this gets compiled with the kernel alongside
and I did make changes to a driver code I can confirm takes effect. So
the kernel running is indeed having my changes (from 2025) but the build date still shows:

     # uname -a
     Linux bf133 6.6.65-rt47-vrag #1 SMP PREEMPT_RT Wed Dec 11
15:13:43 UTC 2024 ppc64 GNU/Linux
     # cat /proc/version
     Linux version 6.6.65-rt47-vrag (oe-user@oe-host) (powerpc64-
vrag-linux-gcc (GCC) 14.2.0, GNU ld (GNU Binutils) 2.44) #1 SMP
PREEMPT_RT Wed Dec 11 15:13:43 UTC 2024
Quoted 2 lines

The kernel was built today (04.03.2025) and not back in december.

Any chance the last commit in the kernel tree is from December? (may not
be authored date but committed date)

We need to have a stable date for reproducibility otherwise you cannot
reuse the sstate cache/hashequiv server between machines properly.

I would assume this is the reason.

Cheers,
Quentin