Re: [yocto] Fwd: How to make the os-release package work with local walltime instead of GMT?

2018-01-10 Thread Robert Yang
Hi Davis, You can try to add this to conf/local.conf or redefine it in os-release.bb: BUILD_ID = "${@time.strftime('%Y-%m-%d %H:%M:%S',time.localtime())}" // Robert On 01/11/2018 12:55 PM, Davis Roman wrote: Hello, I'm trying to fullfill a requirement which states that I must have a file in

[yocto] Fwd: How to make the os-release package work with local walltime instead of GMT?

2018-01-10 Thread Davis Roman
Hello, 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. I've included the os-release package into my image recipe. However, when I cat /etc/os-release, I notice