diff options
Diffstat (limited to 'common/spl')
-rw-r--r-- | common/spl/Kconfig | 2 | ||||
-rw-r--r-- | common/spl/spl_dfu.c | 2 | ||||
-rw-r--r-- | common/spl/spl_net.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 5176857506..3c887b3405 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -279,7 +279,7 @@ config SPL_ENV_SUPPORT configuration. But some boards use this to support 'Falcon' boot on EXT2 and FAT, where SPL boots directly into Linux without starting U-Boot first. Enabling this option will make getenv() - and setenv() available in SPL. + and env_set() available in SPL. config SPL_SAVEENV bool "Support save environment" diff --git a/common/spl/spl_dfu.c b/common/spl/spl_dfu.c index e8d0ba18e6..f5ec0fb396 100644 --- a/common/spl/spl_dfu.c +++ b/common/spl/spl_dfu.c @@ -46,7 +46,7 @@ int spl_dfu_cmd(int usbctrl, char *dfu_alt_info, char *interface, char *devstr) return -EINVAL; } - ret = setenv("dfu_alt_info", str_env); + ret = env_set("dfu_alt_info", str_env); if (ret) { error("unable to set env variable \"dfu_alt_info\"!\n"); return -EINVAL; diff --git a/common/spl/spl_net.c b/common/spl/spl_net.c index 85fe508b17..88831097fa 100644 --- a/common/spl/spl_net.c +++ b/common/spl/spl_net.c @@ -33,14 +33,14 @@ static int spl_net_load_image(struct spl_image_info *spl_image, env_init(); env_relocate(); - setenv("autoload", "yes"); + env_set("autoload", "yes"); rv = eth_initialize(); if (rv == 0) { printf("No Ethernet devices found\n"); return -ENODEV; } if (bootdev->boot_device_name) - setenv("ethact", bootdev->boot_device_name); + env_set("ethact", bootdev->boot_device_name); rv = net_loop(BOOTP); if (rv < 0) { printf("Problem booting with BOOTP\n"); |