<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Hello,</div><div><br></div><div>I&#39;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&#39;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 := &quot;${@time.strftime(&#39;%Y%m%d&#39;,<wbr>time.gmtime())}&quot;</div><div>    TIME := &quot;${@time.strftime(&#39;%H%M%S&#39;,<wbr>time.gmtime())}&quot;</div><div>    DATETIME = &quot;${DATE}${TIME}&quot;</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>