Browse Source

icecc: Don't use icecc when INHIBIT_DEFAULT_DEPS is set

We don't have a compiler, so no icecc.
Silences a spew of warnings of the form:

    do_configure: Cannot use icecc: could not get ICECC_CC or ICECC_CXX

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Douglas Royds 4 years ago
parent
commit
0315aabeff
1 changed files with 4 additions and 0 deletions
  1. 4 0
      meta/classes/icecc.bbclass

+ 4 - 0
meta/classes/icecc.bbclass

@@ -138,6 +138,10 @@ def use_icecc(bb,d):
     if icecc_is_cross_canadian(bb, d):
         return "no"
 
+    if d.getVar('INHIBIT_DEFAULT_DEPS', False):
+        # We don't have a compiler, so no icecc
+        return "no"
+
     pn = d.getVar('PN')
     bpn = d.getVar('BPN')