[RFC PATCH] tools: env: Add an option to have an empty default environment

Joe Hershberger joe.hershberger at ni.com
Fri Aug 14 17:14:38 CEST 2020


On Wed, Aug 12, 2020 at 8:37 PM Chris Packham <judge.packham at gmail.com> wrote:
>
> When building envtools via tools-only_defconfig the builtin defaults
> are based on options in the defconfig. For example:
>
>   bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
>   bootdelay=2
>   baudrate=115200
>   stdin=serial,cros-ec-keyb,usbkbd
>   stdout=serial,vidconsole
>   stderr=serial,vidconsole
>   ethaddr=00:00:11:22:33:44
>   eth3addr=00:00:11:22:33:45
>   eth5addr=00:00:11:22:33:46
>   eth6addr=00:00:11:22:33:47
>   ipaddr=1.2.3.4
>   bootm_size=0x10000000
>   kernel_addr_r=0x1000000
>   fdt_addr_r=0xc00000
>   ramdisk_addr_r=0x2000000
>   scriptaddr=0x1000
>   pxefile_addr_r=0x2000
>
> These may or may not be sensible for any particular target. Rather than
> trying to have a set of defaults that work for every target add a config
> option to make the default environment completely empty.
>
> Signed-off-by: Chris Packham <judge.packham at gmail.com>

Acked-by: Joe Hershberger <joe.hershberger at ni.com>


More information about the U-Boot mailing list