* Building vmlinux without date/timestamp bits
@ 2009-06-12 22:15 ` John Daiker
0 siblings, 0 replies; 4+ messages in thread
From: John Daiker @ 2009-06-12 22:15 UTC (permalink / raw)
To: kernel-janitors-u79uwXL29TY76Z2rM5mHXA
Cc: kernel-testers-u79uwXL29TY76Z2rM5mHXA
I'm working on various trivial patches (mainly whitespace and
checkpatch.pl cleanups).
I read quite some time ago that it's best to md5sum the vmlinux file
before and after these trivial patches are applied (to ensure that no
executable code has changed, modules on a binary level are identical, etc).
So far, I have no problems producing identical .o and .ko files with my
trivial patches. My problem lies in the resulting vmlinux and vmlinux.o
file, though.
I know the files are different due to date/timestamping the kernel, but
I'm not sure where this happens (and how I can prevent it). Are there
pieces of code and/or Makefile that I can comment out so that the
resulting vmlinux file isn't timestamped (and thus would be an exactly
identical before and after). I know it can be done... I've done it
before (years ago), but seem to have forgotten the trick.
Thanks for the help!
John Daiker
^ permalink raw reply [flat|nested] 4+ messages in thread
* Building vmlinux without date/timestamp bits
@ 2009-06-12 22:15 ` John Daiker
0 siblings, 0 replies; 4+ messages in thread
From: John Daiker @ 2009-06-12 22:15 UTC (permalink / raw)
To: kernel-janitors
I'm working on various trivial patches (mainly whitespace and
checkpatch.pl cleanups).
I read quite some time ago that it's best to md5sum the vmlinux file
before and after these trivial patches are applied (to ensure that no
executable code has changed, modules on a binary level are identical, etc).
So far, I have no problems producing identical .o and .ko files with my
trivial patches. My problem lies in the resulting vmlinux and vmlinux.o
file, though.
I know the files are different due to date/timestamping the kernel, but
I'm not sure where this happens (and how I can prevent it). Are there
pieces of code and/or Makefile that I can comment out so that the
resulting vmlinux file isn't timestamped (and thus would be an exactly
identical before and after). I know it can be done... I've done it
before (years ago), but seem to have forgotten the trick.
Thanks for the help!
John Daiker
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Building vmlinux without date/timestamp bits
2009-06-12 22:15 ` John Daiker
@ 2009-06-12 23:43 ` Peter Huewe
-1 siblings, 0 replies; 4+ messages in thread
From: Peter Huewe @ 2009-06-12 23:43 UTC (permalink / raw)
To: John Daiker
Cc: kernel-janitors-u79uwXL29TY76Z2rM5mHXA,
kernel-testers-u79uwXL29TY76Z2rM5mHXA
Hi John,
check include/linux/compile.h and scripts/mkcompile_h
In compile.h is exactly your timestamped information which gets built into the
kernel (cmp. output of uname -s)
If the include/linux/compile.h is not present or needs an update it is
generated using the scripts/mkcompile_h script.
--> You can either supply an identical compile.h for both or change the
behavior of the mkcompile_h script.
Best regards,
Peter
Am Samstag 13 Juni 2009 00:15:26 schrieb John Daiker:
> I'm working on various trivial patches (mainly whitespace and
> checkpatch.pl cleanups).
>
> I read quite some time ago that it's best to md5sum the vmlinux file
> before and after these trivial patches are applied (to ensure that no
> executable code has changed, modules on a binary level are identical, etc).
>
> So far, I have no problems producing identical .o and .ko files with my
> trivial patches. My problem lies in the resulting vmlinux and vmlinux.o
> file, though.
>
> I know the files are different due to date/timestamping the kernel, but
> I'm not sure where this happens (and how I can prevent it). Are there
> pieces of code and/or Makefile that I can comment out so that the
> resulting vmlinux file isn't timestamped (and thus would be an exactly
> identical before and after). I know it can be done... I've done it
> before (years ago), but seem to have forgotten the trick.
>
> Thanks for the help!
>
> John Daiker
> --
> To unsubscribe from this list: send the line "unsubscribe kernel-janitors"
> in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Building vmlinux without date/timestamp bits
@ 2009-06-12 23:43 ` Peter Huewe
0 siblings, 0 replies; 4+ messages in thread
From: Peter Huewe @ 2009-06-12 23:43 UTC (permalink / raw)
To: kernel-janitors
Hi John,
check include/linux/compile.h and scripts/mkcompile_h
In compile.h is exactly your timestamped information which gets built into the
kernel (cmp. output of uname -s)
If the include/linux/compile.h is not present or needs an update it is
generated using the scripts/mkcompile_h script.
--> You can either supply an identical compile.h for both or change the
behavior of the mkcompile_h script.
Best regards,
Peter
Am Samstag 13 Juni 2009 00:15:26 schrieb John Daiker:
> I'm working on various trivial patches (mainly whitespace and
> checkpatch.pl cleanups).
>
> I read quite some time ago that it's best to md5sum the vmlinux file
> before and after these trivial patches are applied (to ensure that no
> executable code has changed, modules on a binary level are identical, etc).
>
> So far, I have no problems producing identical .o and .ko files with my
> trivial patches. My problem lies in the resulting vmlinux and vmlinux.o
> file, though.
>
> I know the files are different due to date/timestamping the kernel, but
> I'm not sure where this happens (and how I can prevent it). Are there
> pieces of code and/or Makefile that I can comment out so that the
> resulting vmlinux file isn't timestamped (and thus would be an exactly
> identical before and after). I know it can be done... I've done it
> before (years ago), but seem to have forgotten the trick.
>
> Thanks for the help!
>
> John Daiker
> --
> To unsubscribe from this list: send the line "unsubscribe kernel-janitors"
> in the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-06-12 23:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-12 22:15 Building vmlinux without date/timestamp bits John Daiker
2009-06-12 22:15 ` John Daiker
[not found] ` <4A32D37E.40507-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-06-12 23:43 ` Peter Huewe
2009-06-12 23:43 ` Peter Huewe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.