[oe-commits] Richard Purdie : gcc: Use FILESPATH instead of FILESDIR and cleanup/ simplify

git at git.openembedded.org git at git.openembedded.org
Wed Nov 21 16:57:38 UTC 2012


Module: openembedded-core.git
Branch: master-next
Commit: 4cb359182da00e661fda11a8b31e3611b0df03cb
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=4cb359182da00e661fda11a8b31e3611b0df03cb

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Mon Nov 19 21:20:19 2012 +0000

gcc: Use FILESPATH instead of FILESDIR and cleanup/simplify

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-devtools/gcc/gcc-4.7.inc    |    2 +-
 meta/recipes-devtools/gcc/gcc-common.inc |    2 --
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-devtools/gcc/gcc-4.7.inc b/meta/recipes-devtools/gcc/gcc-4.7.inc
index 1a3e09b..c0e3680 100644
--- a/meta/recipes-devtools/gcc/gcc-4.7.inc
+++ b/meta/recipes-devtools/gcc/gcc-4.7.inc
@@ -18,7 +18,7 @@ PV = "4.7.2"
 
 BINV = "4.7.2"
 
-FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/gcc-4.7' ], d)}"
+FILESPATH = "${FILE_DIRNAME}/gcc-4.7"
 
 DEPENDS =+ "mpfr gmp libmpc"
 NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native"
diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc
index 38f3b7f..6e64441 100644
--- a/meta/recipes-devtools/gcc/gcc-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-common.inc
@@ -7,8 +7,6 @@ NATIVEDEPS = ""
 
 inherit autotools gettext
 
-FILESDIR = "${@os.path.dirname(d.getVar('FILE',1))}/gcc-${PV}"
-
 def get_gcc_fpu_setting(bb, d):
     if d.getVar('ARMPKGSFX_EABI', True) == "hf" and d.getVar('TRANSLATED_TARGET_ARCH', True) == "arm":
         return "--with-float=hard"





More information about the Openembedded-commits mailing list