Hello, Davis Roman!

 

The only way to change ${DATE} and ${TIME}  is to change python function: 

def buildSetVars(self):

        """

        Setup any variables needed before starting a build

        """

        t = time.gmtime() <---- here use localtime()

        if not self.data.getVar("BUILDNAME", False):

            self.data.setVar("BUILDNAME", "${DATE}${TIME}")

        self.data.setVar("BUILDSTART", time.strftime('%m/%d/%Y %H:%M:%S',
t))

        self.data.setVar("DATE", time.strftime('%Y%m%d', t))

        self.data.setVar("TIME", time.strftime('%H%M%S', t))

 

 

file: /sources/poky/bitbake/lib/bb/cooker.py

 

Alena Grigorieva

 

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to