Centos-kernel-stream-9/tools/scripts
Tomas Glozar 347065af81 tools/build: Use SYSTEM_BPFTOOL for system bpftool
JIRA: https://issues.redhat.com/browse/RHEL-77358

commit 814d051ebed40b27285ab3c5e2454bd01a0f9631
Author: Tomas Glozar <tglozar@redhat.com>
Date:   Wed Mar 26 01:40:18 2025 +0100

    tools/build: Use SYSTEM_BPFTOOL for system bpftool

    The feature test for system bpftool uses BPFTOOL as the variable to set
    its path, defaulting to just "bpftool" if not set by the user.

    This conflicts with selftests and a few other utilities, which expect
    BPFTOOL to be set to the in-tree bpftool path by default. For example,
    bpftool selftests fail to build:

    $ make -C tools/testing/selftests/bpf/
    make: Entering directory '/home/tglozar/dev/linux/tools/testing/selftests/bpf'

    make: *** No rule to make target 'bpftool', needed by '/home/tglozar/dev/linux/tools/testing/selftests/bpf/tools/include/vmlinux.h'.  Stop.
    make: Leaving directory '/home/tglozar/dev/linux/tools/testing/selftests/bpf'

    Fix the problem by renaming the variable used for system bpftool from
    BPFTOOL to SYSTEM_BPFTOOL, so that the new usage does not conflict with
    the existing one of BPFTOOL.

    Cc: John Kacur <jkacur@redhat.com>
    Cc: Luis Goncalves <lgoncalv@redhat.com>
    Link: https://lore.kernel.org/20250326004018.248357-1-tglozar@redhat.com
    Fixes: 8a635c3856dd ("tools/build: Add bpftool-skeletons feature test")
    Closes: https://lore.kernel.org/linux-kernel/5df6968a-2e5f-468e-b457-fc201535dd4c@linux.ibm.com/
    Reported-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
    Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
    Suggested-by: Quentin Monnet <qmo@kernel.org>
    Acked-by: Quentin Monnet <qmo@kernel.org>
    Signed-off-by: Tomas Glozar <tglozar@redhat.com>
    Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>

Signed-off-by: Tomas Glozar <tglozar@redhat.com>
2025-04-04 11:14:45 +02:00
..
Makefile.arch
Makefile.include tools/build: Use SYSTEM_BPFTOOL for system bpftool 2025-04-04 11:14:45 +02:00
utilities.mak tools build: Add 3-component logical version comparators 2023-11-13 11:21:34 +01:00