<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How do you change the system time for your image at build time? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-do-you-change-the-system-time-for-your-image-at-build-time/m-p/338291#M46229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears that whenever we build an image, the builder's system time when the image was built is "baked in" the image somewhere.&amp;nbsp; If we attempt to change the system time (while running the image) to some time before this, the system acts strangely.&amp;nbsp; For instance, if our image was built at 3:00PM on Nov 2, and we attempt to change the date while running the image to Oct 20, we see this issue.&amp;nbsp; Is there a way to change the system time used by the image when the image is built?&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;We're using the 3.10.17 kernel with yocto 1.6.1. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Nov 2014 20:29:14 GMT</pubDate>
    <dc:creator>nathanswartzent</dc:creator>
    <dc:date>2014-11-13T20:29:14Z</dc:date>
    <item>
      <title>How do you change the system time for your image at build time?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-do-you-change-the-system-time-for-your-image-at-build-time/m-p/338291#M46229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears that whenever we build an image, the builder's system time when the image was built is "baked in" the image somewhere.&amp;nbsp; If we attempt to change the system time (while running the image) to some time before this, the system acts strangely.&amp;nbsp; For instance, if our image was built at 3:00PM on Nov 2, and we attempt to change the date while running the image to Oct 20, we see this issue.&amp;nbsp; Is there a way to change the system time used by the image when the image is built?&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;We're using the 3.10.17 kernel with yocto 1.6.1. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 20:29:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-do-you-change-the-system-time-for-your-image-at-build-time/m-p/338291#M46229</guid>
      <dc:creator>nathanswartzent</dc:creator>
      <dc:date>2014-11-13T20:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do you change the system time for your image at build time?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-do-you-change-the-system-time-for-your-image-at-build-time/m-p/338292#M46230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming with "image," you mean the kernel. Here's what Documentation/kbuild/kbuild.txt says:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;KBUILD_BUILD_TIMESTAMP&lt;/P&gt;
&lt;P&gt;--------------------------------------------------&lt;/P&gt;
&lt;P&gt;Setting this to a date string overrides the timestamp used in the&lt;/P&gt;
&lt;P&gt;UTS_VERSION definition (uname -v in the running kernel). The value has to&lt;/P&gt;
&lt;P&gt;be a string that can be passed to date -d. The default value&lt;/P&gt;
&lt;P&gt;is the output of the date command at one point during build.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example you can run:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14159143962589057" jivemacro_uid="_14159143962589057"&gt;
&lt;P&gt;export KBUILD_BUILD_TIMESTAMP='Sun May 1 12:00:00 CEST 2011'&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 21:33:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-do-you-change-the-system-time-for-your-image-at-build-time/m-p/338292#M46230</guid>
      <dc:creator>KursadOney</dc:creator>
      <dc:date>2014-11-13T21:33:21Z</dc:date>
    </item>
  </channel>
</rss>

