[OE-core] [PATCH] kernel-devsrc: fix missing generated files from the packet

Bruce Ashfield bruce.ashfield at gmail.com
Tue Feb 18 02:12:36 UTC 2020


On Mon, Feb 17, 2020 at 9:07 PM Li Zhou <li.zhou at windriver.com> wrote:
>
> The file arch/arm/include/generated/asm/unistd-nr.h is needed by some
> external kernel module. Error occurs when building the module with
> the SDK.
>
> Add arch/${ARCH}/include/generated dir and files under it to
> kernel-devsrc package to solve this issue.
>
> Signed-off-by: Li Zhou <li.zhou at windriver.com>
> ---
>  meta/recipes-kernel/linux/kernel-devsrc.bb | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb
> index b6f2dbc..8621fe1 100644
> --- a/meta/recipes-kernel/linux/kernel-devsrc.bb
> +++ b/meta/recipes-kernel/linux/kernel-devsrc.bb
> @@ -108,6 +108,12 @@ do_install() {
>         fi
>
>         cp -a include $kerneldir/build/include
> +
> +       if [ -d arch/${ARCH}/include/generated ]; then
> +           mkdir -p $kerneldir/build/arch/${ARCH}/include
> +           cp -r arch/${ARCH}/include/generated $kerneldir/build/arch/${ARCH}/include
> +       fi

This is just papering over the real problem.

Anything that is generated, should be regenerated when the headers are
used/prepared.

What is missing and/or why isn't that happening with this ?

Bruce

> +
>      )
>
>      # now grab the chunks from the source tree that we need
> --
> 1.9.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II


More information about the Openembedded-core mailing list