[Buildroot] [PATCH 01/22] Remove the DATE variable

Peter Korsgaard jacmet at uclibc.org
Tue Apr 24 08:31:15 UTC 2012


>>>>> "Thomas" == Thomas De Schampheleire <patrickdepinguin+buildroot at gmail.com> writes:

Hi,

 Thomas> A disadvantage of adding changing variables like DATE is that
 Thomas> two builds that are built from the exact same set of sources,
 Thomas> are not binary equal. You cannot simply compare the rootfs
 Thomas> image and expect no differences.  You'd have to unpack the
 Thomas> rootfs and compare file by file, leaving out files like
 Thomas> /etc/os-release that would contain a date.

 Thomas> I haven't yet looked at which binaries inside a typical rootfs do
 Thomas> contain such changing variables, but I will do that for my
 Thomas> configuration in the near future. My intention is to ensure binary
 Thomas> equality for the entire rootfs.

I think you'll find that this is quite common. From the top of my head I
know that atleast the Linux kernel and busybox adds the build time to
the binary, so I doubt this will really work.

 Thomas> With this in mind, I would not favor adding a DATE of some kind
 Thomas> to a file in buildroot just to mark a variable as used, unless
 Thomas> we provide a way to override DATE in the config file (in the
 Thomas> Linux kernel, the 'user' and 'machine' etc. build variables are
 Thomas> also overridable.

You can always build with make DATE=foo

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list