Patchwork [3/3] u-boot: make sure CROSS_COMPILE is passed into build

login
register
mail settings
Submitter Paul Gortmaker
Date June 29, 2012, 6:35 p.m.
Message ID <1340994915-14947-4-git-send-email-paul.gortmaker@windriver.com>
Download mbox | patch
Permalink /patch/30883/
State New
Headers show

Comments

Paul Gortmaker - June 29, 2012, 6:35 p.m.
The u-boot build system expects this, otherwise it will
choose from its own internal defaults.  In the case of
powerpc, we'll see it look for "ppc_8xx-gcc" and fail.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
 meta/recipes-bsp/u-boot/u-boot_2012.04.01.bb |    3 +++
 1 file changed, 3 insertions(+)
McClintock Matthew-B29882 - June 29, 2012, 8:04 p.m.
On Fri, Jun 29, 2012 at 1:35 PM, Paul Gortmaker
<paul.gortmaker@windriver.com> wrote:
> The u-boot build system expects this, otherwise it will
> choose from its own internal defaults.  In the case of
> powerpc, we'll see it look for "ppc_8xx-gcc" and fail.
>
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> ---
>  meta/recipes-bsp/u-boot/u-boot_2012.04.01.bb |    3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/meta/recipes-bsp/u-boot/u-boot_2012.04.01.bb b/meta/recipes-bsp/u-boot/u-boot_2012.04.01.bb
> index 25cc8c9..b37fe01 100644
> --- a/meta/recipes-bsp/u-boot/u-boot_2012.04.01.bb
> +++ b/meta/recipes-bsp/u-boot/u-boot_2012.04.01.bb
> @@ -26,3 +26,6 @@ SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
>  S = "${WORKDIR}/git"
>
>  PACKAGE_ARCH = "${MACHINE_ARCH}"
> +
> +# u-boot expects this to indicate what toolchain to use
> +EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"

Isn't this already in u-boot.inc?

-M

> --
> 1.7.9.6
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Patch

diff --git a/meta/recipes-bsp/u-boot/u-boot_2012.04.01.bb b/meta/recipes-bsp/u-boot/u-boot_2012.04.01.bb
index 25cc8c9..b37fe01 100644
--- a/meta/recipes-bsp/u-boot/u-boot_2012.04.01.bb
+++ b/meta/recipes-bsp/u-boot/u-boot_2012.04.01.bb
@@ -26,3 +26,6 @@  SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
 S = "${WORKDIR}/git"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+# u-boot expects this to indicate what toolchain to use
+EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"