]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
systemd: wrap mtime based time with packageconfig
authorDaniel McGregor <daniel.mcgregor@vecima.com>
Tue, 19 Nov 2024 17:51:06 +0000 (11:51 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Nov 2024 12:14:20 +0000 (12:14 +0000)
commitae433b35fb2d5475e33dea61e6bc65d83d3af56a
tree85e21a8b935d73083a173f53adde81c36d763804
parentdd8461f27b4a55dbf79baa4a71dc08b127801181
systemd: wrap mtime based time with packageconfig

Recently the systemd recipe grew support for setting the epoch time
at image build time. Unfortunately this is unconditional, and our
use case for the set-time-epoch PACKAGECONFIG is we have a system
requirement that our product boot with the time set to the UNIX
epoch.

Instead of trying to complicate things with either an image hook or
overriding the systemd recipe, just make setting the epoch at image
time optional, with the same PACKAGECONFIG that controls hardcoding
the systemd build time as the default epoch.

Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd_256.7.bb