summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-09-02 16:33:10 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-06 22:54:42 +0100
commit2b148b9e73f05af33ed1437358fa5322cf364651 (patch)
tree25b2bfbaf5f486f4cfa0ece9a92e33fe7c20932e /meta/classes
parent45d18a1b6bcdc56d252b289d0d304b26799943b0 (diff)
downloadopenembedded-core-2b148b9e73f05af33ed1437358fa5322cf364651.tar.gz
openembedded-core-2b148b9e73f05af33ed1437358fa5322cf364651.tar.bz2
openembedded-core-2b148b9e73f05af33ed1437358fa5322cf364651.zip
waf.bbclass: add waf build system class
Add a new build system class for waf. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/waf.bbclass13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/classes/waf.bbclass b/meta/classes/waf.bbclass
new file mode 100644
index 0000000000..3a221e7082
--- /dev/null
+++ b/meta/classes/waf.bbclass
@@ -0,0 +1,13 @@
+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