bpftool: add bpftool

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
Vincent Li
2024-12-21 17:57:09 -08:00
parent 708556b443
commit 51ff36eb32
2 changed files with 8 additions and 0 deletions

View File

@@ -23751,3 +23751,4 @@ usr/lib/libcpupower.so.1
#usr/share/locale/it/LC_MESSAGES/cpupower.mo
#usr/share/locale/ka/LC_MESSAGES/cpupower.mo
#usr/share/locale/pt/LC_MESSAGES/cpupower.mo
usr/sbin/bpftool

View File

@@ -180,6 +180,10 @@ endif
# Build objtool
cd $(DIR_APP)/tools/objtool && make $(MAKETUNING)
# Build bpftool
cd $(DIR_APP)/tools/bpf/bpftool && sed -i -e 's/^prefix ?= \/usr\/local/prefix ?= \/usr/' Makefile
cd $(DIR_APP)/tools/bpf/bpftool && make $(MAKETUNING)
# Install the kernel
cd $(DIR_APP) && cp -v arch/$(KERNEL_ARCH)/boot/$(KERNEL_TARGET) /boot/vmlinuz-$(KVER)
cd $(DIR_APP) && cp -v System.map /boot/System.map-$(KVER)
@@ -224,6 +228,9 @@ endif
cd $(DIR_APP) && cp -a --parents tools/build/{Build.include,fixdep.c} \
tools/scripts/utilities.mak /lib/modules/$(KVER)/build
# Install bpftool
cd $(DIR_APP)/tools/bpf/bpftool && make install
# Make sure we can build external modules
touch -r /lib/modules/$(KVER)/build/Makefile \
/lib/modules/$(KVER)/build/include/generated/uapi/linux/version.h