Reproducing exact Kernal/BSP Images

Hi,

I am trying to build a BSP and Kernel image that will produce the same
checksum/CRC from build to build. While the source code and linked in
libraries are definitely the same between builds, currently each time I
build I get a different checksum/CRC for the resulting binary image. I am
specifically using QNX for the arm platform and the DBPXA250 BSP.

Does anyone know of a way to turn off the timestamp or whatever is causing
the binary image to be slightly different each time it is built?

Best Regards,
John Roul

Use the -n option to prevent mkifs from using time(NULL) for the files
that it ‘creates’ in the image filesystem.

This should give you identical builds.

John Roul <fck8828@yahoo.com> wrote:

Hi,

I am trying to build a BSP and Kernel image that will produce the same
checksum/CRC from build to build. While the source code and linked in
libraries are definitely the same between builds, currently each time I
build I get a different checksum/CRC for the resulting binary image. I am
specifically using QNX for the arm platform and the DBPXA250 BSP.

Does anyone know of a way to turn off the timestamp or whatever is causing
the binary image to be slightly different each time it is built?

Best Regards,
John Roul


cburgess@qnx.com

Colin Burgess <cburgess@qnx.com> wrote:
: Use the -n option to prevent mkifs from using time(NULL) for the files
: that it ‘creates’ in the image filesystem.

: This should give you identical builds.

This option isn’t currently documented. We’ll add it.


Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems

Yup, “-n” did the trick, consecutive builds of same code now result in exact
same binary.

Thanks!
John

“Steve Reid” <stever@qnx.com> wrote in message
news:am9tn3$em0$1@nntp.qnx.com

Colin Burgess <> cburgess@qnx.com> > wrote:
: Use the -n option to prevent mkifs from using time(NULL) for the files
: that it ‘creates’ in the image filesystem.

: This should give you identical builds.

This option isn’t currently documented. We’ll add it.


Steve Reid > stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems