Re: __DATE__ and __TIME__ in dunfell builds #dunfell
Peter Bergin
On 2021-11-10 21:44,
chiefsleepyeye@... wrote:
I have a weird thing going on with __DATE__ and __TIME__ when building my app in the yocto environment. I'm building for "genericx86-64" and I'm using __DATE__ and __TIME__ in my source to show what the build date/time of my app is at run time. But... __DATE__ is always "Apr 5 2011" and __TIME__ is always "23:00:00". And, yes, the current time on the build machine is not that. Anyone else experience this and/or know how to fix it? Oh, host is Ubuntu 20.04.3 LTS. In your build you have reproducible build enabled.
https://docs.yoctoproject.org/3.4/test-manual/reproducible-builds.html.
You should be able to disable this function with help of the
variable BUILD_REPRODUCIBLE_BINARIES. Reproducible builds are now
enableb by default in Yocto. /Peter
|
|