sandbox: use env_get() for time offset instead of getenv()
authorOsama Abdelkader <osama.abdelkader@gmail.com>
Sun, 14 Sep 2025 15:27:27 +0000 (17:27 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 24 Sep 2025 17:03:24 +0000 (11:03 -0600)
commit8558aaa3cf9065ab5ec9a0b241ce567e7393dbc3
tree930a1a4422d643c642ce4366dc9282931cdb8df9
parent5289b6e5540e571afd81482305e5623e9124ea66
sandbox: use env_get() for time offset instead of getenv()

The sandbox time offset is intended to be controlled via the U-Boot
environment, not the host process environment. Update os_get_time_offset()
to use env_get() instead of the libc getenv().

Leave other getenv() uses (e.g. U_BOOT_PERSISTENT_DATA_DIR,
UBOOT_SB_FUZZ_TEST) unchanged, since those refer to host environment
variables needed by sandbox tests.

Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
arch/sandbox/cpu/os.c