[OE-core] [PATCH v2] musl: Build outside of source tree

Khem Raj raj.khem at gmail.com
Fri Jan 3 18:04:34 UTC 2020


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 at gmail.com>
---
v2: Add B to cleandirs

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

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}"
-- 
2.24.1



More information about the Openembedded-core mailing list