[U-Boot-Users] make env

Wolfgang Denk wd at denx.de
Thu Mar 20 21:02:58 CET 2008


In message <20080320175606.GA21970 at michl.2n.cz> you wrote:
> On Thu, Mar 20, 2008 at 05:04:35PM +0100, Wolfgang Denk wrote:
> > I guess (you fail to mention such a basic fact as which  version  you
> > are  using) that you are referring to old code. So I recommend to use
> > recent code (i. e. release 1.3.2).
> 
> No matter how recent version is he going to use. Related Makefile
> fragment reads:
> env:
> 	$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
> 
> which means CFLAGS etc. are not propagated to fw_setenv utility...

Yes, and actually I think this is correct. What we're building is a
target Linux application, so the U-Boto specific CFLAG settings have
no meaning for this (or rather would be just dangerous).

Example:

-> make env
make -C tools/env all MTD_VERSION= || exit 1
make[1]: Entering directory `/home/wd/git/u-boot/work/tools/env'
ln -s ../../lib_generic/crc32.c crc32.c
make[1]: Leaving directory `/home/wd/git/u-boot/work/tools/env'
make[1]: Entering directory `/home/wd/git/u-boot/work/tools/env'
arm-linux-gcc -Wall -DUSE_HOSTCC crc32.c  fw_env.c  fw_env_main.c -o
fw_printenv
make[1]: Leaving directory `/home/wd/git/u-boot/work/tools/env'
-> file tools/env/fw_printenv
tools/env/fw_printenv: ELF 32-bit LSB executable, ARM, version 1, dynamically linked (uses shared libs), for GNU/Linux 2.4.3, not stripped


I'm not sure what you wanted to express with your comment?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"I think trash is the most important manifestation of culture we have
in my lifetime."                                      - Johnny Legend




More information about the U-Boot mailing list