Re: [U-Boot] ENV library broken with setenv/printenv argument structs

2016-03-27 Thread Stefano Babic
Hi Andreas, On 25/03/2016 15:00, Andreas Fenkart wrote: > HI Stefano, > > I was not aware of the use case. I have sent out a simple patch that > moves the definition of the structs from fw_main_env.c to fw_env.c, > which should avoid the linking problem. Do you have test application > you could s

Re: [U-Boot] ENV library broken with setenv/printenv argument structs

2016-03-25 Thread Andreas Fenkart
HI Stefano, I was not aware of the use case. I have sent out a simple patch that moves the definition of the structs from fw_main_env.c to fw_env.c, which should avoid the linking problem. Do you have test application you could send me. I without doing the option parsing as done in fw_env_main, yo

[U-Boot] ENV library broken with setenv/printenv argument structs

2016-03-25 Thread Stefano Babic
Hi Andreas, your series for the U-Boot environment tools does not let to use anymore the tools as library to be linked to custom program. In fact, tools/env/Makefile generates a library too: lib-y += fw_env.o \ crc32.o ctype.o linux_string.o \ env_attr.o env_flags.o aes.o that m