summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorRoman I Khimov <khimov@altell.ru>2009-04-17 00:22:21 +0000
committerKoen Kooi <koen@openembedded.org>2009-04-21 22:45:42 +0200
commit5a1d7e7a88c6ef8ac0ca4c7034e637f831a05faf (patch)
tree4405d06797e6825caa1d635269f295b14304f73f /classes
parent5773ed1828d801d9ad9187bc0b217b3da8842758 (diff)
icecc.bbclass: fix kernel distributed compilation
Signed-off-by: Koen Kooi <koen@openembedded.org>
Diffstat (limited to 'classes')
-rw-r--r--classes/icecc.bbclass11
1 files changed, 6 insertions, 5 deletions
diff --git a/classes/icecc.bbclass b/classes/icecc.bbclass
index dce29fbbeb..0eb2d9feee 100644
--- a/classes/icecc.bbclass
+++ b/classes/icecc.bbclass
@@ -137,7 +137,8 @@ def create_native_env(bb,d):
def get_cross_kernel_cc(bb,d):
kernel_cc = bb.data.expand('${KERNEL_CC}', d)
- kernel_cc = kernel_cc.replace('ccache', '')
+ kernel_cc = kernel_cc.replace('ccache', '').strip()
+ kernel_cc = kernel_cc.split(' ')[0]
kernel_cc = kernel_cc.strip()
return kernel_cc
@@ -182,10 +183,10 @@ def create_cross_kernel_env(bb,d):
cr_env_script = bb.data.getVar('ICECC_ENV_EXEC', d) or bb.data.expand('${STAGING_DIR}', d)+"/ice/icecc-create-env"
result=os.popen("%s %s %s %s %s %s" %(cr_env_script,
"--silent",
- os.path.join(ice_dir,'bin',kernel_cc),
- os.path.join(ice_dir,target_sys,'bin','g++'),
- os.path.join(ice_dir,target_sys,'bin','as'),
- os.path.join(ice_dir,"ice",cross_name) ) )
+ os.path.join(ice_dir, 'bin', kernel_cc),
+ os.path.join(ice_dir, 'bin', "%s-g++" % target_sys),
+ os.path.join(ice_dir, 'bin', "%s-as" % target_sys),
+ os.path.join(ice_dir, "ice", cross_name) ) )
return tar_file