On Thu, Jan 11, 2024 at 9:44 PM Chen Qi via lists.openembedded.org
<[email protected]> wrote:
>
> From: Chen Qi <[email protected]>
>
> The source files under tools/ also need to be copied because in
> some case, they'll be needed. For example, in case that the
> CONFIG_DEBUG_INFO_BTF is enabled, we'll get the following error
> without this patch when doing 'make prepare'.
>
>   No rule to make target '/.../tools/bpf/resolve_btfids/main.o',
>   needed by '/.../tools/bpf/resolve_btfids/resolve_btfids-in.o'. Stop.
>

Tools has been excluded on purpose, as it is relatively large
(and complex) compared to the rest of the curated files.

Figure out just what you need for bpf, and copy only those
files.

Bruce

> Signed-off-by: Chen Qi <[email protected]>
> ---
>  meta/recipes-kernel/linux/kernel-devsrc.bb | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb 
> b/meta/recipes-kernel/linux/kernel-devsrc.bb
> index ce5777fbe9..c2aeb8e216 100644
> --- a/meta/recipes-kernel/linux/kernel-devsrc.bb
> +++ b/meta/recipes-kernel/linux/kernel-devsrc.bb
> @@ -62,6 +62,7 @@ do_install() {
>         cd ${S}
>         cp --parents $(find  -type f -name "Makefile*" -o -name "Kconfig*") 
> $kerneldir/build
>         cp --parents $(find  -type f -name "Build" -o -name "Build.include") 
> $kerneldir/build
> +       cp --parents $(find tools/  -type f -name "*.c" -o -name "*.h") 
> $kerneldir/build
>      )
>
>      # then drop all but the needed Makefiles/Kconfig files
> --
> 2.34.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 (#193564): 
https://lists.openembedded.org/g/openembedded-core/message/193564
Mute This Topic: https://lists.openembedded.org/mt/103676210/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to