In message: [linux-yocto][v5.15/standard/nxp-sdk-5.10/nxp-s32g][PATCH 0/6] tools/resolve_btfids: fix missing host libelf after enable CONFIG_DEBUG_INFO_BTF on 17/04/2023 Xiangyu Chen wrote:
> From: Xiangyu Chen <[email protected]> > > Hi Bruce, > > 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: > > commits from linux-yocto > 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 > > commit from linux-yocto-dev > 0e43662e61f2 tools/resolve_btfids: Use pkg-config to locate libelf I was looking at the patches and chasing the commits upstream, when I looped back to check the 0/N, and things are more clear. Since these are mainline backports, the commit IDs need to be captured in the patches themselves, so I can quickly track down the original commit if there are issues. Can you resend a v2, with the mainline commit IDs captured in the patch long log ? Bruce > > > 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 (#12392): https://lists.yoctoproject.org/g/linux-yocto/message/12392 Mute This Topic: https://lists.yoctoproject.org/mt/98313344/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/leave/6687884/21656/624485779/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
