[OE-core] [PATCH] binutils: set sysroot for target

Khem Raj raj.khem at gmail.com
Tue Jun 19 16:30:44 UTC 2012


On Tue, Jun 19, 2012 at 4:21 AM, Marcin Juszkiewicz
<marcin.juszkiewicz at 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 at 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 at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core




More information about the Openembedded-core mailing list