[OE-core] [PATCH 2/3] musl: Build outside of source tree

Ross Burton ross.burton at intel.com
Fri Jan 3 14:59:39 UTC 2020


On 03/01/2020 07:21, Khem Raj wrote:
> 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
> 
> Signed-off-by: Khem Raj <raj.khem at gmail.com>
> ---
>   meta/recipes-core/musl/musl.inc | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/meta/recipes-core/musl/musl.inc b/meta/recipes-core/musl/musl.inc
> index 9aea2c39c8..e5cc869cb9 100644
> --- a/meta/recipes-core/musl/musl.inc
> +++ b/meta/recipes-core/musl/musl.inc
> @@ -25,3 +25,5 @@ MIPS_INSTRUCTION_SET = "mips"
>   ARM_INSTRUCTION_SET_armv5 = "arm"
>   ARM_INSTRUCTION_SET_armv4 = "arm"
>   
> +# Enable out of tree build
> +B = "${WORKDIR}/build"

That directory won't get cleaned unless you also set [cleandirs].

Ross


More information about the Openembedded-core mailing list