<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Hello,</div><div><br></div><div>I'm trying to fullfill a requirement which states that I must have a file in my root filesystem which has the timestamp of when the rootfs was generated for traceability purposes.</div><div><br></div><div>I've included the os-release package into my image recipe.<br></div><div><br></div><div>However, when I cat /etc/os-release, I notice that the BUILD_ID variable does not reflect the actually time that my build took place.</div><div><br></div><div>Upon further inspection, I noticed in the os-release recipe that BUILD_ID is based on the DATETIME variable.</div><div><br></div><div>Drilling down further, I noticed that DATETIME is defined in ./meta/conf/bitbake.conf</div><div><br></div><div><div> DATE := "${@time.strftime('%Y%m%d',<wbr>time.gmtime())}"</div><div> TIME := "${@time.strftime('%H%M%S',<wbr>time.gmtime())}"</div><div> DATETIME = "${DATE}${TIME}"</div></div><div><br></div><div>So it appears to me that DATETIME is based on gmttime. </div><div><br></div><div>Instead, I would like this to be based on wall time.</div><div><br></div><div>Any suggestions on how to do this?</div><div><br></div><div>Thank you,</div><div><br></div><div>Davis</div></div>
</div><br></div>