diff options
Diffstat (limited to 'meta/classes/icecc.bbclass')
-rw-r--r-- | meta/classes/icecc.bbclass | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass index f8e9d8859b..7e3676af35 100644 --- a/meta/classes/icecc.bbclass +++ b/meta/classes/icecc.bbclass | |||
@@ -32,7 +32,7 @@ def icecc_dep_prepend(d): | |||
32 | # INHIBIT_DEFAULT_DEPS doesn't apply to the patch command. Whether or not | 32 | # INHIBIT_DEFAULT_DEPS doesn't apply to the patch command. Whether or not |
33 | # we need that built is the responsibility of the patch function / class, not | 33 | # we need that built is the responsibility of the patch function / class, not |
34 | # the application. | 34 | # the application. |
35 | if not bb.data.getVar('INHIBIT_DEFAULT_DEPS', d): | 35 | if not d.getVar('INHIBIT_DEFAULT_DEPS'): |
36 | return "icecc-create-env-native" | 36 | return "icecc-create-env-native" |
37 | return "" | 37 | return "" |
38 | 38 | ||
@@ -54,7 +54,7 @@ def create_path(compilers, bb, d): | |||
54 | staging += "-kernel" | 54 | staging += "-kernel" |
55 | 55 | ||
56 | #check if the icecc path is set by the user | 56 | #check if the icecc path is set by the user |
57 | icecc = bb.data.getVar('ICECC_PATH', d) or os.popen("which icecc").read()[:-1] | 57 | icecc = d.getVar('ICECC_PATH') or os.popen("which icecc").read()[:-1] |
58 | 58 | ||
59 | # Create the dir if necessary | 59 | # Create the dir if necessary |
60 | try: | 60 | try: |
@@ -81,7 +81,7 @@ def use_icc(bb,d): | |||
81 | package_tmp = bb.data.expand('${PN}', d) | 81 | package_tmp = bb.data.expand('${PN}', d) |
82 | 82 | ||
83 | system_class_blacklist = [ "none" ] | 83 | system_class_blacklist = [ "none" ] |
84 | user_class_blacklist = (bb.data.getVar('ICECC_USER_CLASS_BL', d) or "none").split() | 84 | user_class_blacklist = (d.getVar('ICECC_USER_CLASS_BL') or "none").split() |
85 | package_class_blacklist = system_class_blacklist + user_class_blacklist | 85 | package_class_blacklist = system_class_blacklist + user_class_blacklist |
86 | 86 | ||
87 | for black in package_class_blacklist: | 87 | for black in package_class_blacklist: |
@@ -92,7 +92,7 @@ def use_icc(bb,d): | |||
92 | #"system" package blacklist contains a list of packages that can not distribute compile tasks | 92 | #"system" package blacklist contains a list of packages that can not distribute compile tasks |
93 | #for one reason or the other | 93 | #for one reason or the other |
94 | system_package_blacklist = [ "uclibc", "glibc", "gcc", "bind", "u-boot", "dhcp-forwarder", "enchant", "connman", "orbit2" ] | 94 | system_package_blacklist = [ "uclibc", "glibc", "gcc", "bind", "u-boot", "dhcp-forwarder", "enchant", "connman", "orbit2" ] |
95 | user_package_blacklist = (bb.data.getVar('ICECC_USER_PACKAGE_BL', d) or "").split() | 95 | user_package_blacklist = (d.getVar('ICECC_USER_PACKAGE_BL') or "").split() |
96 | package_blacklist = system_package_blacklist + user_package_blacklist | 96 | package_blacklist = system_package_blacklist + user_package_blacklist |
97 | 97 | ||
98 | for black in package_blacklist: | 98 | for black in package_blacklist: |
@@ -100,7 +100,7 @@ def use_icc(bb,d): | |||
100 | #bb.note(package_tmp, ' found in blacklist, disable icecc') | 100 | #bb.note(package_tmp, ' found in blacklist, disable icecc') |
101 | return "no" | 101 | return "no" |
102 | 102 | ||
103 | if bb.data.getVar('PARALLEL_MAKE', d) == "": | 103 | if d.getVar('PARALLEL_MAKE') == "": |
104 | bb.note(package_tmp, " ", bb.data.expand('${PV}', d), " has empty PARALLEL_MAKE, disable icecc") | 104 | bb.note(package_tmp, " ", bb.data.expand('${PV}', d), " has empty PARALLEL_MAKE, disable icecc") |
105 | return "no" | 105 | return "no" |
106 | 106 | ||
@@ -119,8 +119,8 @@ def icc_version(bb, d): | |||
119 | if use_icc(bb, d) == "no": | 119 | if use_icc(bb, d) == "no": |
120 | return "" | 120 | return "" |
121 | 121 | ||
122 | parallel = bb.data.getVar('ICECC_PARALLEL_MAKE', d) or "" | 122 | parallel = d.getVar('ICECC_PARALLEL_MAKE') or "" |
123 | bb.data.setVar("PARALLEL_MAKE", parallel, d) | 123 | d.setVar("PARALLEL_MAKE", parallel) |
124 | 124 | ||
125 | if icc_is_native(bb, d): | 125 | if icc_is_native(bb, d): |
126 | archive_name = "local-host-env" | 126 | archive_name = "local-host-env" |
@@ -130,7 +130,7 @@ def icc_version(bb, d): | |||
130 | prefix = bb.data.expand('${HOST_PREFIX}' , d) | 130 | prefix = bb.data.expand('${HOST_PREFIX}' , d) |
131 | distro = bb.data.expand('${DISTRO}', d) | 131 | distro = bb.data.expand('${DISTRO}', d) |
132 | target_sys = bb.data.expand('${TARGET_SYS}', d) | 132 | target_sys = bb.data.expand('${TARGET_SYS}', d) |
133 | float = bb.data.getVar('TARGET_FPU', d) or "hard" | 133 | float = d.getVar('TARGET_FPU') or "hard" |
134 | archive_name = prefix + distro + "-" + target_sys + "-" + float | 134 | archive_name = prefix + distro + "-" + target_sys + "-" + float |
135 | if icc_is_kernel(bb, d): | 135 | if icc_is_kernel(bb, d): |
136 | archive_name += "-kernel" | 136 | archive_name += "-kernel" |