diff --git a/config/rootfiles/common/loongarch64/linux b/config/rootfiles/common/loongarch64/linux index 90bc8a818..683af41ba 100644 --- a/config/rootfiles/common/loongarch64/linux +++ b/config/rootfiles/common/loongarch64/linux @@ -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 diff --git a/lfs/linux b/lfs/linux index cb2ba6ce8..92662fed5 100644 --- a/lfs/linux +++ b/lfs/linux @@ -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