diff options
| -rw-r--r-- | meta/classes/icecc.bbclass | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass index 5c9e66c95e..3ec8c0667d 100644 --- a/meta/classes/icecc.bbclass +++ b/meta/classes/icecc.bbclass | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | #Error checking is kept to minimum so double check any parameters you pass to the class | 28 | #Error checking is kept to minimum so double check any parameters you pass to the class |
| 29 | ########################################################################################### | 29 | ########################################################################################### |
| 30 | 30 | ||
| 31 | BB_HASHBASE_WHITELIST += "ICECC_PARALLEL_MAKE ICECC_DISABLED ICECC_USER_PACKAGE_BL ICECC_USER_CLASS_BL ICECC_USER_PACKAGE_WL" | 31 | BB_HASHBASE_WHITELIST += "ICECC_PARALLEL_MAKE ICECC_DISABLED ICECC_USER_PACKAGE_BL ICECC_USER_CLASS_BL ICECC_USER_PACKAGE_WL ICECC_PATH ICECC_ENV_EXEC" |
| 32 | 32 | ||
| 33 | ICECC_ENV_EXEC ?= "${STAGING_BINDIR_NATIVE}/icecc-create-env" | 33 | ICECC_ENV_EXEC ?= "${STAGING_BINDIR_NATIVE}/icecc-create-env" |
| 34 | 34 | ||
| @@ -148,6 +148,10 @@ def icc_is_native(bb, d): | |||
| 148 | # Don't pollute allarch signatures with TARGET_FPU | 148 | # Don't pollute allarch signatures with TARGET_FPU |
| 149 | icc_version[vardepsexclude] += "TARGET_FPU" | 149 | icc_version[vardepsexclude] += "TARGET_FPU" |
| 150 | def icc_version(bb, d): | 150 | def icc_version(bb, d): |
| 151 | if d.getVar('ICECC_DISABLED') == "1": | ||
| 152 | # don't even try it, when explicitly disabled | ||
| 153 | return "" | ||
| 154 | |||
| 151 | if use_icc(bb, d) == "no": | 155 | if use_icc(bb, d) == "no": |
| 152 | return "" | 156 | return "" |
| 153 | 157 | ||
| @@ -175,6 +179,10 @@ def icc_version(bb, d): | |||
| 175 | return tar_file | 179 | return tar_file |
| 176 | 180 | ||
| 177 | def icc_path(bb,d): | 181 | def icc_path(bb,d): |
| 182 | if d.getVar('ICECC_DISABLED') == "1": | ||
| 183 | # don't create unnecessary directories when icecc is disabled | ||
| 184 | return | ||
| 185 | |||
| 178 | if icc_is_kernel(bb, d): | 186 | if icc_is_kernel(bb, d): |
| 179 | return create_path( [get_cross_kernel_cc(bb,d), ], bb, d) | 187 | return create_path( [get_cross_kernel_cc(bb,d), ], bb, d) |
| 180 | 188 | ||
| @@ -238,7 +246,7 @@ def set_icecc_env(): | |||
| 238 | return | 246 | return |
| 239 | 247 | ||
| 240 | set_icecc_env() { | 248 | set_icecc_env() { |
| 241 | if [ "x${ICECC_DISABLED}" != "x" ] | 249 | if [ "${ICECC_DISABLED}" = "1" ] |
| 242 | then | 250 | then |
| 243 | return | 251 | return |
| 244 | fi | 252 | fi |
