]> code.ossystems Code Review - openembedded-core.git/commitdiff
base.bblass : Add support for cmake to PACKAGECONFIG.
authorPhilip Balister <philip@balister.org>
Tue, 22 Jan 2013 14:57:02 +0000 (09:57 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 25 Jan 2013 12:35:47 +0000 (12:35 +0000)
The cmake class uses EXTRA_OECMAKE to adjust the cmake configuration. This
patch adds support for this, if the cmake class is used by the recipe.

Signed-off-by: Philip Balister <philip@balister.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/base.bbclass

index dafded3e42aa216ba9ad8cc1cf4b1b00c37b9d00..4662d3bf6422f1c58a6cc30c6216a5e1de7916b1 100644 (file)
@@ -469,7 +469,10 @@ python () {
                     extraconf.append(items[1])
         appendVar('DEPENDS', extradeps)
         appendVar('RDEPENDS_${PN}', extrardeps)
-        appendVar('EXTRA_OECONF', extraconf)
+        if bb.data.inherits_class('cmake', d):
+            appendVar('EXTRA_OECMAKE', extraconf)
+        else:
+            appendVar('EXTRA_OECONF', extraconf)
 
     # If PRINC is set, try and increase the PR value by the amount specified
     princ = d.getVar('PRINC', True)