From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Thu, 20 Mar 2008 21:02:58 +0100 Subject: [U-Boot-Users] make env In-Reply-To: Your message of "Thu, 20 Mar 2008 18:56:06 +0100." <20080320175606.GA21970@michl.2n.cz> Message-ID: <20080320200258.9DFE324A87@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <20080320175606.GA21970@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