Patchwork [1/4] gcc-package-target: Switch to TARGET_PREFIX in symlinks

login
register
mail settings
Submitter Tom Rini
Date May 5, 2011, 3:05 p.m.
Message ID <ebdc7d53636bce0c3faafa4367d2cd1cbaa4c3a0.1304607797.git.tom_rini@mentor.com>
Download mbox | patch
Permalink /patch/3255/
State New, archived
Headers show

Comments

Tom Rini - May 5, 2011, 3:05 p.m.
When TARGET_PREFIX and TARGET_SYS didn't match up, the symlinks we made
were invalid.  TARGET_PREFIX is what we use when configuring so it's what we
should be using here.

This is 05143e9b5d0a42e32ee0dd3c7fde482ff8d63f63 from OE.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
---
 meta/recipes-devtools/gcc/gcc-package-target.inc |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
Khem Raj - May 8, 2011, 1:04 a.m.
On (05/05/11 08:05), Tom Rini wrote:
> When TARGET_PREFIX and TARGET_SYS didn't match up, the symlinks we made
> were invalid.  TARGET_PREFIX is what we use when configuring so it's what we
> should be using here.
> 
> This is 05143e9b5d0a42e32ee0dd3c7fde482ff8d63f63 from OE.
> 
> Signed-off-by: Tom Rini <tom_rini@mentor.com>

Acked-by: Khem Raj <raj.khem@gmail.com>

> ---
>  meta/recipes-devtools/gcc/gcc-package-target.inc |   10 +++++-----
>  1 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/meta/recipes-devtools/gcc/gcc-package-target.inc b/meta/recipes-devtools/gcc/gcc-package-target.inc
> index d61e96b..e7f1b80 100644
> --- a/meta/recipes-devtools/gcc/gcc-package-target.inc
> +++ b/meta/recipes-devtools/gcc/gcc-package-target.inc
> @@ -91,13 +91,13 @@ do_install () {
>  	find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
>  
>  	# Symlinks so we can use these trivially on the target
> -	ln -sf ${TARGET_SYS}-g77 g77 || true
> -	ln -sf ${TARGET_SYS}-gfortran gfortran || true
> -	ln -sf ${TARGET_SYS}-g++ g++
> -	ln -sf ${TARGET_SYS}-gcc gcc
> +	ln -sf ${TARGET_PREFIX}g77 g77 || true
> +	ln -sf ${TARGET_PREFIX}gfortran gfortran || true
> +	ln -sf ${TARGET_PREFIX}g++ g++
> +	ln -sf ${TARGET_PREFIX}gcc gcc
>  	ln -sf g77 f77 || true
>  	ln -sf gfortran f95 || true
>  	ln -sf g++ c++
>  	ln -sf gcc cc
> -	ln -sf ${bindir}/${TARGET_SYS}-cpp ${D}${bindir}/cpp
> +	ln -sf ${bindir}/${TARGET_PREFIX}cpp ${D}${bindir}/cpp
>  }
> -- 
> 1.7.0.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/gcc/gcc-package-target.inc b/meta/recipes-devtools/gcc/gcc-package-target.inc
index d61e96b..e7f1b80 100644
--- a/meta/recipes-devtools/gcc/gcc-package-target.inc
+++ b/meta/recipes-devtools/gcc/gcc-package-target.inc
@@ -91,13 +91,13 @@  do_install () {
 	find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
 
 	# Symlinks so we can use these trivially on the target
-	ln -sf ${TARGET_SYS}-g77 g77 || true
-	ln -sf ${TARGET_SYS}-gfortran gfortran || true
-	ln -sf ${TARGET_SYS}-g++ g++
-	ln -sf ${TARGET_SYS}-gcc gcc
+	ln -sf ${TARGET_PREFIX}g77 g77 || true
+	ln -sf ${TARGET_PREFIX}gfortran gfortran || true
+	ln -sf ${TARGET_PREFIX}g++ g++
+	ln -sf ${TARGET_PREFIX}gcc gcc
 	ln -sf g77 f77 || true
 	ln -sf gfortran f95 || true
 	ln -sf g++ c++
 	ln -sf gcc cc
-	ln -sf ${bindir}/${TARGET_SYS}-cpp ${D}${bindir}/cpp
+	ln -sf ${bindir}/${TARGET_PREFIX}cpp ${D}${bindir}/cpp
 }