]> git.baikalelectronics.ru Git - uboot.git/commit
env: Allow to set default_environment[] from board code via compile option DEFAULT_EN...
authorPali Rohár <pali@kernel.org>
Wed, 23 Dec 2020 11:21:28 +0000 (12:21 +0100)
committerStefan Roese <sr@denx.de>
Mon, 8 Feb 2021 07:52:50 +0000 (08:52 +0100)
commitdfb9557e88f0f1e9894229c55ce1b801d1d44d00
treec53dc8ed10f44b899b50d9acc15d66835b011abf
parent50f85a271e8f5d6cfcbbf2e3f289f2d5c6f12ee3
env: Allow to set default_environment[] from board code via compile option DEFAULT_ENV_IS_RW

This change allows board code to modify default_environment[] array when
compile option DEFAULT_ENV_IS_RW is specified in board config file.

Some board default variables depend on runtime configuration which is not
known at compile time. Therefore allow to set default_environment[] array
as non-const and allow board code to modify it when it is needed.

Signed-off-by: Pali Rohár <pali@kernel.org>
Acked-by: Andre Heider <a.heider@gmail.com>
include/env_default.h
include/env_internal.h