Patchwork binutils: set sysroot for target

login
register
mail settings
Submitter Marcin Juszkiewicz
Date June 19, 2012, 11:21 a.m.
Message ID <1340104885-28752-1-git-send-email-marcin.juszkiewicz@linaro.org>
Download mbox | patch
Permalink /patch/30113/
State New
Headers show

Comments

Marcin Juszkiewicz - June 19, 2012, 11:21 a.m.
"ld: this linker was not configured to use sysroots" was what I got on
device instead of compiled binary.

Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
---
 meta/recipes-devtools/binutils/binutils_2.22.bb |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Khem Raj - June 19, 2012, 4:30 p.m.
On Tue, Jun 19, 2012 at 4:21 AM, Marcin Juszkiewicz
<marcin.juszkiewicz@linaro.org> wrote:
> "ld: this linker was not configured to use sysroots" was what I got on
> device instead of compiled binary.
>
> Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
> ---
>  meta/recipes-devtools/binutils/binutils_2.22.bb |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/binutils/binutils_2.22.bb b/meta/recipes-devtools/binutils/binutils_2.22.bb
> index 7b6adef..71523d7 100644
> --- a/meta/recipes-devtools/binutils/binutils_2.22.bb
> +++ b/meta/recipes-devtools/binutils/binutils_2.22.bb
> @@ -1,6 +1,6 @@
>  require binutils.inc
>
> -PR = "r9"
> +PR = "r10"
>
>  LIC_FILES_CHKSUM="\
>     file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\
> @@ -40,3 +40,5 @@ SRC_URI[sha256sum] = "6c7af8ed1c8cf9b4b9d6e6fe09a3e1d3d479fe63984ba8b9b26bf356b6
>
>
>  BBCLASSEXTEND = "native"
> +
> +EXTRA_OECONF += "--with-sysroot=/ "

this will break cross recipes. Since they require binutils_${PV}.bb
you can just add --with-sysroot without any argument that will be a bit safer
but right thing to do is to make the recipes not include bb files
instead move the common bits in .inc file
and include that instead

> --
> 1.7.10.4
>
>
> _______________________________________________
> 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-devtools/binutils/binutils_2.22.bb b/meta/recipes-devtools/binutils/binutils_2.22.bb
index 7b6adef..71523d7 100644
--- a/meta/recipes-devtools/binutils/binutils_2.22.bb
+++ b/meta/recipes-devtools/binutils/binutils_2.22.bb
@@ -1,6 +1,6 @@ 
 require binutils.inc
 
-PR = "r9"
+PR = "r10"
 
 LIC_FILES_CHKSUM="\
     file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\
@@ -40,3 +40,5 @@  SRC_URI[sha256sum] = "6c7af8ed1c8cf9b4b9d6e6fe09a3e1d3d479fe63984ba8b9b26bf356b6
 
 
 BBCLASSEXTEND = "native"
+
+EXTRA_OECONF += "--with-sysroot=/ "