Patchwork waf.bbclass: add waf build system class

login
register
mail settings
Submitter Ross Burton
Date Sept. 2, 2013, 3:32 p.m.
Message ID <1378135927-6796-1-git-send-email-ross.burton@intel.com>
Download mbox | patch
Permalink /patch/57235/
State New
Headers show

Comments

Ross Burton - Sept. 2, 2013, 3:32 p.m.
Add a new build system class for waf.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/classes/waf.bbclass |   15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/classes/waf.bbclass

Patch

diff --git a/meta/classes/waf.bbclass b/meta/classes/waf.bbclass
new file mode 100644
index 0000000..c17ae08
--- /dev/null
+++ b/meta/classes/waf.bbclass
@@ -0,0 +1,15 @@ 
+EXTRA_OEMAKE ?= ""
+
+waf_do_configure() {
+	${S}/waf configure --prefix=${prefix} ${EXTRA_OECONF}
+}
+
+waf_do_compile()  {
+	${S}/waf build ${PARALLEL_MAKE}
+}
+
+waf_do_install() {
+	${S}/waf install --destdir=${D}
+}
+
+EXPORT_FUNCTIONS do_configure do_compile do_install