u-boot: Make sure we use override HOSTCC for env tools
authorTom Rini <tom_rini@mentor.com>
Mon, 14 Feb 2011 19:27:15 +0000 (12:27 -0700)
committerTom Rini <tom_rini@mentor.com>
Mon, 14 Feb 2011 19:29:43 +0000 (12:29 -0700)
Upstream says that the right way to build a target binary of the env
tools is to pass in HOSTCC=your-cross-cc.  Bump the PR in u-boot_git.bb
to fix as many easily fixable ones as possible, but other platforms
may have been shipping bad binaries (since we had skipped testing
on this package due to GNU_HASH issues when built for the target).

Signed-off-by: Tom Rini <tom_rini@mentor.com>
recipes/u-boot/u-boot.inc
recipes/u-boot/u-boot_git.bb

index 9a9528e..88c6a4d 100644 (file)
@@ -26,7 +26,7 @@ do_compile () {
        unset CFLAGS
        unset CPPFLAGS
        oe_runmake all
-       oe_runmake tools env
+       oe_runmake tools env HOSTCC="${CC}"
 }
 
 do_install () {
index 9699e8f..410e0b1 100644 (file)
@@ -1,5 +1,5 @@
 require u-boot.inc
-PR ="r71"
+PR = "r72"
 
 FILESPATHPKG =. "u-boot-git:"
 
@@ -111,7 +111,7 @@ do_compile_calamari () {
         oe_runmake MPC8536DS_SPIFLASH_config
         oe_runmake all
         mv u-boot.bin u-boot-spiflash.bin
-        oe_runmake tools env
+       oe_runmake tools env HOSTCC="${CC}"
 }
 
 do_deploy_calamari () {