icecc: remove bb.errors on un-built compilers
authorRoman Khimov <khimov@altell.ru>
Wed, 15 Jul 2009 11:52:01 +0000 (11:52 +0000)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Sun, 24 Jan 2010 03:03:34 +0000 (04:03 +0100)
Building things with icecc and BB_NUMBER_THREADS more then 1 you could see
a lot of messages:

ERROR: no cross compiler built yet?

before gcc-cross would be properly built. There is technically nothing wrong,
cross compiler is not there yet and it's not needed when bitbake does
fetch-unpack-patch and other things to prepare package build. But it makes
people uncomfortable.

We can safely kill this messages.

classes/icecc.bbclass

index 4962fcb..9e11a3c 100644 (file)
@@ -60,7 +60,6 @@ def create_cross_env(bb,d):
         os.stat(os.path.join(ice_dir, target_sys, 'lib', 'libstdc++.so'))
         os.stat(os.path.join(ice_dir, target_sys, 'bin', 'g++'))
     except: # no cross compiler built yet
-        bb.error('no cross compiler built yet?')
         return ""
 
     VERSION = icc_determine_gcc_version( os.path.join(ice_dir,target_sys,"bin","g++") )
@@ -157,7 +156,6 @@ def create_cross_kernel_env(bb,d):
     try:
         os.stat(os.path.join(ice_dir, 'bin', kernel_cc))
     except: # no cross compiler built yet
-        bb.error('no kernel cross compiler built yet')
         return ""
 
     VERSION = icc_determine_gcc_version( os.path.join(ice_dir,"bin",kernel_cc) )