]> git.baikalelectronics.ru Git - uboot.git/commit
hwconfig: Allow to compile it without env support
authorPali Rohár <pali@kernel.org>
Sat, 2 Apr 2022 22:24:25 +0000 (00:24 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 26 Apr 2022 11:48:39 +0000 (17:18 +0530)
commit768e02b5c5a7d58e1a8062ec45f93a27e840b04b
tree1ac860cb4bb55ea009190b69d4b46abaf7a742e9
parentc21cea57d4f1c05fb3a4ee195f0ab28c64c585c9
hwconfig: Allow to compile it without env support

When env support is disabled then usage of env_get() generates linker
errors. So do not compile env_get() when env support is disabled (for
example when disabled only in SPL).

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
common/hwconfig.c