[OE-core] [PATCH] kernel.bbclass: Allow ${S} to be overridden
Paul Barker
paul at paulbarker.me.uk
Sat Nov 5 10:14:38 UTC 2016
On Sat, 22 Oct 2016 19:38:00 +0100
Paul Barker <paul at paulbarker.me.uk> wrote:
> For kernel recipes which fetch sources from an archive instead of git, it's
> necessary to point ${S} at the extracted sources. In kernel.bbclass there is
> already logic in base_do_unpack_append() to link ${KERNEL_STAGING_DIR} to ${S}
> if these aren't the same, so we just need to be able to override ${S}.
>
> Signed-off-by: Paul Barker <paul at paulbarker.me.uk>
> ---
> meta/classes/kernel.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 25a153c..a7d467b 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -3,7 +3,7 @@ inherit linux-kernel-base kernel-module-split
> PROVIDES += "virtual/kernel"
> DEPENDS += "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc kmod-native depmodwrapper-cross bc-native lzop-native"
>
> -S = "${STAGING_KERNEL_DIR}"
> +S ?= "${STAGING_KERNEL_DIR}"
> B = "${WORKDIR}/build"
> KBUILD_OUTPUT = "${B}"
> OE_TERMINAL_EXPORTS += "KBUILD_OUTPUT"
Ping on this. Anyone had a chance to look at it?
More information about the Openembedded-core
mailing list