[U-Boot] Adding new net command

Simon Glass sjg at chromium.org
Sun Nov 5 16:58:48 UTC 2017


Hi Duncan,

On 16 September 2017 at 14:14, Duncan Hare <dh at synoia.com> wrote:
> I'm attempting to add a "wget" command. It  mostly there by I cannot find out how to set the
>
> #define CONFIG_CMD_WGET 1 into u-boot cfg by handand got a terse message to use a Kconfig file.
> Which Konfig file should I used for defining the absence/presence of this new command?

It seems like you figured this out. For others who read this, you need
to add a 'config CMD_WGET' to cmd/Kconfig. The u-boot.cfg file is
generated by the build system. It is an output, not an input.

>
> For development and testing I have not used the #ifdef method of including of excluding code,
> as I find it hard enough to write one set of code, two sets simultaneously, TCP and Kconfig-uration, exceeds my abilities.
>
> I have most of the TCP stack needed coded into in net.c, the sliding windows code being written now, with packet in and packet out the intersection
> of the new code and existing code.
> I can transferr small files.
>
> UDP function is not affected, and still works.
> Thanks
> Duncan Hare
>
> 714 931 7952
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot


More information about the U-Boot mailing list