[v2] musl: Build outside of source tree

Submitted by Khem Raj on Jan. 3, 2020, 6:04 p.m. | Patch ID: 168541

Details

Message ID 20200103180434.3248837-1-raj.khem@gmail.com
State New
Headers show

Commit Message

Khem Raj Jan. 3, 2020, 6:04 p.m.
musl does not use cmake/autotools etc. but plane old makefile basded
build system, which means it does not get B defined to be outside S
therefore define B explicitly to be outside S

Ensure that B is clean before configure task is run

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
v2: Add B to cleandirs

 meta/recipes-core/musl/musl.inc | 4 ++++
 1 file changed, 4 insertions(+)

Patch hide | download patch | download mbox

diff --git a/meta/recipes-core/musl/musl.inc b/meta/recipes-core/musl/musl.inc
index 9aea2c39c8..bdce412162 100644
--- a/meta/recipes-core/musl/musl.inc
+++ b/meta/recipes-core/musl/musl.inc
@@ -25,3 +25,7 @@  MIPS_INSTRUCTION_SET = "mips"
 ARM_INSTRUCTION_SET_armv5 = "arm"
 ARM_INSTRUCTION_SET_armv4 = "arm"
 
+# Enable out of tree build
+B = "${WORKDIR}/build"
+
+do_configure[cleandirs] = "${B}"