[oe-commits] Dmitry Eremin-Solenikov : icecc.bbclass: fix irt changes in toolchains installation
git version control
git at git.openembedded.org
Fri Jun 4 12:50:42 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 3db17146cb491d7d0f25ef7ecc24b31478b4b2ff
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=3db17146cb491d7d0f25ef7ecc24b31478b4b2ff
Author: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
Date: Fri Jun 4 16:50:41 2010 +0400
icecc.bbclass: fix irt changes in toolchains installation
The installation of toolchains in /cross/ has changed a bit, resulting
in failures of icecc.bbclass to find necessary files (libstdc++.so, g++, etc.)
Fix that by pointing the class file to libstdc++ in staging and corrent name
of target g++.
Also correct the name of kernel toolchain tarball.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
---
classes/icecc.bbclass | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/classes/icecc.bbclass b/classes/icecc.bbclass
index fb6045d..8c19cab 100644
--- a/classes/icecc.bbclass
+++ b/classes/icecc.bbclass
@@ -47,6 +47,7 @@ def create_cross_env(bb,d):
import tarfile, socket, time
ice_dir = bb.data.expand('${CROSS_DIR}', d)
+ staging_dir = bb.data.expand('${STAGING_DIR_TARGET}', d)
prefix = bb.data.expand('${HOST_PREFIX}' , d)
distro = bb.data.expand('${DISTRO}', d)
target_sys = bb.data.expand('${TARGET_SYS}', d)
@@ -57,12 +58,12 @@ def create_cross_env(bb,d):
# Stupid check to determine if we have built a libc and a cross
# compiler.
try:
- os.stat(os.path.join(ice_dir, target_sys, 'lib', 'libstdc++.so'))
- os.stat(os.path.join(ice_dir, target_sys, 'bin', 'g++'))
+ os.stat(os.path.join(staging_dir, 'usr', 'lib', 'libstdc++.so'))
+ os.stat(os.path.join(ice_dir, 'bin', "%s-g++" % target_sys))
except: # no cross compiler built yet
return ""
- VERSION = icc_determine_gcc_version( os.path.join(ice_dir,target_sys,"bin","g++") )
+ VERSION = icc_determine_gcc_version( os.path.join(ice_dir,"bin","%s-g++" % target_sys) )
cross_name = prefix + distro + "-" + target_sys + "-" + float + "-" + VERSION + "-" + name
tar_file = os.path.join(ice_dir, 'ice', cross_name + '.tar.gz')
@@ -159,7 +160,7 @@ def create_cross_kernel_env(bb,d):
return ""
VERSION = icc_determine_gcc_version( os.path.join(ice_dir,"bin",kernel_cc) )
- cross_name = prefix + distro + "-" + target_sys + "-" + float + "-" + VERSION + "-" + name
+ cross_name = prefix + distro + "-kernel-" + target_sys + "-" + float + "-" + VERSION + "-" + name
tar_file = os.path.join(ice_dir, 'ice', cross_name + '.tar.gz')
try:
More information about the Openembedded-commits
mailing list