[oe] DATETIME seems to be getting updated

Muhlenkamp, Lewis lewis.muhlenkamp at stryker.com
Thu Jan 24 12:32:32 UTC 2019


Ross,

Oh.  I did not realize bitbake.conf was parsed multiple times.  I thought it was parsed once, which is why I was confused.

Thanks for clarifying.

Lewis

-----Original Message-----
From: Burton, Ross <ross.burton at intel.com> 
Sent: Thursday, January 24, 2019 4:22 AM
To: Muhlenkamp, Lewis <lewis.muhlenkamp at stryker.com>
Cc: openembedded-devel <openembedded-devel at lists.openembedded.org>
Subject: Re: [oe] DATETIME seems to be getting updated

On Thu, 24 Jan 2019 at 04:32, Muhlenkamp, Lewis <lewis.muhlenkamp at stryker.com> wrote:
> It appears that the DATETIME variable is being updated.  From what I read this should not be happening, correct?

DATETIME is defined as follows:

DATE := "${@time.strftime('%Y%m%d',time.gmtime())}"
TIME := "${@time.strftime('%H%M%S',time.gmtime())}"
DATETIME = "${DATE}${TIME}"

So every time bitbake.conf is parsed, the datetime is updated.  This happens once for the main process, and then again for every worker that bitbake spawns.

You can silence the 'metadata changed' errors by using vardepsexclude to mark it as a variable that can change (grep oe-core for examples of using DATETIME and vardepsexclude).

Ross


More information about the Openembedded-devel mailing list