Patchwork base.bblass : Add support for cmake to PACKAGECONFIG.

login
register
mail settings
Submitter Philip Balister
Date Jan. 22, 2013, 2:57 p.m.
Message ID <1358866622-12739-1-git-send-email-philip@balister.org>
Download mbox | patch
Permalink /patch/43191/
State Accepted
Commit d8c0ce5a4a27c8aa1d07fc15d6e000af725a51e6
Headers show

Comments

Philip Balister - Jan. 22, 2013, 2:57 p.m.
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>
---
 meta/classes/base.bbclass | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Patch

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index f7b6fb8..bedbc4d 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -467,7 +467,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)