diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2010-06-04 16:50:41 +0400 |
---|---|---|
committer | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2010-06-04 16:50:41 +0400 |
commit | 3db17146cb491d7d0f25ef7ecc24b31478b4b2ff (patch) | |
tree | 0b80fb534e998671d49792aae278cb35f4ad6411 /classes/icecc.bbclass | |
parent | 52b03b11c03899be56ca632411b2e61ac9670554 (diff) |
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@gmail.com>
Diffstat (limited to 'classes/icecc.bbclass')
-rw-r--r-- | classes/icecc.bbclass | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/classes/icecc.bbclass b/classes/icecc.bbclass index fb6045d21b..8c19cabab7 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: |