In message: [linux-yocto][v5.15/standard/nxp-sdk-5.10/nxp-s32g][PATCH V2 0/6] 
tools/resolve_btfids: fix missing host libelf after enable CONFIG_DEBUG_INFO_BTF
on 18/04/2023 Xiangyu Chen wrote:

> From: Xiangyu Chen <xiangyu.c...@windriver.com>
> 
> Hi Bruce,
> 
> Resend a v2 patch, changes:
> Add mainline commit id in patches log and using short commit from mainline 
> instead of linux-yocto in cover letter.
> 
> When we enable CONFIG_DEBUG_INFO and CONFIG_DEBUG_INFO_BTF option in yocto 
> and build the linux-yocto kernel again, 
> the error happens and the error message is about missing libelf.h and gelf.h 
> in tools/resolve_btfids source code.
> 
> The resolve_btfids needs a library named libelf, it contains in package 
> elfutils, and there is a limitation in 
> linux 5.15 kernel that when libelf was not installed in the standard 
> location(e.g /usr), it cannot be located 
> by the current building config.
> 
> So could you please help to merge those patches or cherry-pick the following 
> commits from linux-yocto 6.1 and 
> linux-yocto-dev to v5.15/standard/nxp-sdk-5.10/nxp-s32g and 
> v5.15/standard/base:

v2 is merged.

Bruce

> 
> commits from git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
> mainline:
> 
> 0b46b7550560 libbpf: Add LIBBPF_DEPRECATED_SINCE macro for scheduling API 
> deprecations
> 2f3830412786 libbpf: Make libbpf_version.h non-auto-generated
> 1478994aad82 tools/resolve_btfids: Install libbpf headers when building
> bf1be903461a tools/resolve_btfids: Support cross-building the kernel with 
> clang
> 0e3a1c902ffb tools/resolve_btfids: Build with host flags
> 0e43662e61f2 tools/resolve_btfids: Use pkg-config to locate libelf
> 
> 
> Thanks,
> Xiangyu
> 
> 
> Andrii Nakryiko (1):
>   libbpf: Make libbpf_version.h non-auto-generated
> 
> Connor O'Brien (1):
>   tools/resolve_btfids: Build with host flags
> 
> Jean-Philippe Brucker (1):
>   tools/resolve_btfids: Support cross-building the kernel with clang
> 
> Quentin Monnet (2):
>   libbpf: Add LIBBPF_DEPRECATED_SINCE macro for scheduling API
>     deprecations
>   tools/resolve_btfids: Install libbpf headers when building
> 
> Shen Jiamin (1):
>   tools/resolve_btfids: Use pkg-config to locate libelf
> 
>  tools/bpf/bpftool/Makefile           |  3 +++
>  tools/bpf/resolve_btfids/Makefile    | 32 ++++++++++++++++-------
>  tools/bpf/resolve_btfids/main.c      |  4 +--
>  tools/lib/bpf/.gitignore             |  1 -
>  tools/lib/bpf/Makefile               | 39 +++++++++++++++++++++-------
>  tools/lib/bpf/btf.h                  |  2 ++
>  tools/lib/bpf/libbpf.map             |  3 +++
>  tools/lib/bpf/libbpf_common.h        | 19 ++++++++++++++
>  tools/lib/bpf/libbpf_version.h       |  9 +++++++
>  tools/testing/selftests/bpf/Makefile | 11 +++++---
>  10 files changed, 97 insertions(+), 26 deletions(-)
>  create mode 100644 tools/lib/bpf/libbpf_version.h
> 
> -- 
> 2.32.0
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12401): 
https://lists.yoctoproject.org/g/linux-yocto/message/12401
Mute This Topic: https://lists.yoctoproject.org/mt/98334875/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: 
https://lists.yoctoproject.org/g/linux-yocto/leave/6687884/21656/624485779/xyzzy
 [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to