mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 10:35:53 +02:00
bpftool: add bpftool
Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user