On Thu, Oct 1, 2020 at 9:59 AM Vyacheslav Yurkov <[email protected]> wrote:
>
> From: Vyacheslav Yurkov <[email protected]>
>
> Module build environment should be aware of native C and C++ compiler's
> environment otherwise kernel Makefile might silently fail for some checks.
> A particular example is CONFIG_STACK_VALIDATION when CONFIG_UNWINDER_ORC
> is used, Makefile tries unsuccessfully locate libelf, even though it's
> already available in recipe sysroot.
>
> Signed-off-by: Vyacheslav Yurkov <[email protected]>
> ---
>  meta/classes/module.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/module.bbclass b/meta/classes/module.bbclass
> index c0dfa35061..8a691922c7 100644
> --- a/meta/classes/module.bbclass
> +++ b/meta/classes/module.bbclass
> @@ -1,6 +1,6 @@
>  inherit module-base kernel-module-split pkgconfig
>
> -EXTRA_OEMAKE += "KERNEL_SRC=${STAGING_KERNEL_DIR}"
> +EXTRA_OEMAKE += "KERNEL_SRC=${STAGING_KERNEL_DIR} HOSTCC="${BUILD_CC} 
> ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCPP="${BUILD_CPP}""
>

We already ran into this with the main kernel flags, and we don't want
to duplicate them here.

Why aren't what we have in kernel.bbclass working in your scenario ?

Bruce

>  MODULES_INSTALL_TARGET ?= "modules_install"
>  MODULES_MODULE_SYMVERS_LOCATION ?= ""
> --
> 2.25.1
>
>
> 
>


-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#142998): 
https://lists.openembedded.org/g/openembedded-core/message/142998
Mute This Topic: https://lists.openembedded.org/mt/77240868/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to