Patchwork autotools: Enable separate builddir by default

login
register
mail settings
Submitter Richard Purdie
Date Feb. 27, 2014, 6:03 p.m.
Message ID <1393524209.31769.150.camel@ted>
Download mbox | patch
Permalink /patch/67623/
State New
Headers show

Comments

Richard Purdie - Feb. 27, 2014, 6:03 p.m.
Building on the previous patch, enable separate builddir support 
by default (${B} != ${S}). This moves the functionality from the include
to become the default. Recipes where this support is broken can inherit
autotools-brokensep instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 2f2a407..0a71c0e 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -288,3 +288,4 @@  inherit siteconfig
 
 EXPORT_FUNCTIONS do_configure do_install
 
+B = "${WORKDIR}/build"
diff --git a/meta/conf/distro/defaultsetup.conf b/meta/conf/distro/defaultsetup.conf
index 6fc522c..5557350 100644
--- a/meta/conf/distro/defaultsetup.conf
+++ b/meta/conf/distro/defaultsetup.conf
@@ -2,7 +2,6 @@  include conf/distro/include/default-providers.inc
 include conf/distro/include/default-versions.inc
 include conf/distro/include/default-distrovars.inc
 include conf/distro/include/world-broken.inc
-include conf/distro/include/seperatebuilddir.inc
 
 TCMODE ?= "default"
 require conf/distro/include/tcmode-${TCMODE}.inc