From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Hobi Date: Tue, 09 Nov 2010 10:19:59 +0100 Subject: [U-Boot] [PATCH 4/4] tools/env: use host build flags In-Reply-To: References: <1281845002-26525-1-git-send-email-vapier@gentoo.org> <1281845002-26525-4-git-send-email-vapier@gentoo.org> <20100912194119.E0B2815242D@gemini.denx.de> <20101108231555.2C396E2ED1C@gemini.denx.de> Message-ID: <4CD9123F.3070005@schmid-telecom.ch> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Steve, On 09.11.2010 01:01, Steve Sakoman wrote: > On Mon, Nov 8, 2010 at 3:15 PM, Wolfgang Denk wrote: >> In message you wrote: >>> It just occurred to me that this will no longer cross compile the fw_env >>> tool - effectively rendering the tool useless for me. >> >> Argh... Indeed, that's broken. > > I ran into this issue this week too. > > Reverting is one option. I also tried Daniel Hobi's patch "tools/env: > cleanup host build flags" and that worked for me. You are refering to this WIP patch: http://article.gmane.org/gmane.comp.boot-loaders.u-boot/86236 It makes the fw_env tool Makefile similar to the imls Makefile and solves the errno inclusion problem reported by Detlev. I still think we need a third set of CC, CFLAGS, SRCS, etc defines for compiling tools running on the target. However, we probably can default to the combination CC+HOSTCFLAGS for most platforms. Best regards, Daniel