[oe-commits] org.oe.dev classes/icecc.bbclass : Add support for the SDK packages

ifaistos commit openembedded-commits at lists.openembedded.org
Sun Oct 21 14:05:10 UTC 2007


classes/icecc.bbclass : Add support for the SDK packages

Author: ifaistos at openembedded.org
Branch: org.openembedded.dev
Revision: b150bd2e9274f7512bfc0abfa0fe2b458107ea10
ViewMTN: http://monotone.openembedded.org/revision/info/b150bd2e9274f7512bfc0abfa0fe2b458107ea10
Files:
1
classes/icecc.bbclass
Diffs:

#
# mt diff -r58e565350ad0d12fcbf3066de5c104035165c4c5 -rb150bd2e9274f7512bfc0abfa0fe2b458107ea10
#
# 
# 
# patch "classes/icecc.bbclass"
#  from [85ea9ee2e04f7cf2e0b9311d2d6ad1e2438cf2b4]
#    to [9c947e1b89f7e9f05b8448240eee79d396cce6b0]
# 
============================================================
--- classes/icecc.bbclass	85ea9ee2e04f7cf2e0b9311d2d6ad1e2438cf2b4
+++ classes/icecc.bbclass	9c947e1b89f7e9f05b8448240eee79d396cce6b0
@@ -9,7 +9,8 @@
 # ICECC_VERSION accordingly.
 #
 #The class now handles all 3 different compile 'stages' (i.e native ,cross-kernel and target) creating the
-#necessary enviroment tar.gz file to be used by the remote machines
+#necessary enviroment tar.gz file to be used by the remote machines.
+#It also supports meta-toolchain generation
 #
 #If ICECC_PATH is not set in local.conf then the class will try to locate it using 'which'
 #but nothing is sure ;)
@@ -186,12 +187,15 @@ def create_env(bb,d):
 def create_env(bb,d):
 
         #return create_cross_kernel_env(bb,d) 
+
         if bb.data.inherits_class("native", d):
           return create_native_env(bb,d)
         elif bb.data.inherits_class("kernel", d):
           return create_cross_kernel_env(bb,d)
         elif bb.data.inherits_class("cross", d):
           return create_native_env(bb,d)
+        elif bb.data.inherits_class("sdk", d):
+          return create_native_env(bb,d)
         else:  
           return create_cross_env(bb,d)
         
@@ -253,11 +257,11 @@ def icc_path(bb,d,compile):
 
     #"system" package blacklist contains a list of packages that can not distribute compile tasks
     #for one reason or the other
-    system_package_blacklist = [ "uclibc", "glibc-intermediate", "qemu" ]
+    system_package_blacklist = [ "uclibc", "glibc-intermediate", "gcc", "qemu", "bind", "u-boot", "dhcp-forwarder", "enchant" ]
 
     for black in system_package_blacklist:
       if black in package_tmp:
-         bb.data.setVar('PARALLEL_MAKE' , '', d) 
+         bb.data.setVar("PARALLEL_MAKE" , "", d) 
          return ""
 
     #user defined exclusion list
@@ -266,7 +270,7 @@ def icc_path(bb,d,compile):
 
     for black in user_package_blacklist:
       if black in package_tmp:
-         bb.data.setVar('PARALLEL_MAKE' , '', d) 
+         bb.data.setVar("PARALLEL_MAKE" , "", d) 
          return ""
 
 
@@ -280,7 +284,6 @@ def icc_path(bb,d,compile):
          return create_path( ["gcc", "g++"], "native", bb, d)
 
     elif compile and bb.data.inherits_class("kernel", d):
-         #kernel_cc = bb.data.expand('${KERNEL_CC}', d) 
           return create_path( [get_cross_kernel_ver(bb,d), "foo"], "cross-kernel", bb, d)
 
     elif not compile or len(prefix) == 0:
@@ -305,7 +308,7 @@ def get_cross_kernel_ver(bb,d):
 def get_cross_kernel_ver(bb,d):
 
        return  bb.data.expand('${KERNEL_CC}', d).strip() or "gcc"
- 
+
 # set the icecream environment variables
 do_configure_prepend() {
     export PATH=${@icc_path(bb,d,False)}$PATH
@@ -316,7 +319,7 @@ do_compile_prepend() {
 do_compile_prepend() {
 
     export PATH=${@icc_path(bb,d,True)}$PATH
-
+ 
  #check if we are building a kernel and select gcc-cross-kernel
  if [ "${@check_for_kernel(bb,d)}" = "yes" ]; then
     export ICECC_CC="${@get_cross_kernel_ver(bb,d)}"






More information about the Openembedded-commits mailing list