From a51811911653da50833d10105ade214c71e06378 Mon Sep 17 00:00:00 2001 From: Bo Ren Date: Tue, 23 Jul 2024 15:11:53 +0800 Subject: [PATCH] update to 0.6.0 Signed-off-by: Bo Ren --- Makefile | 2 ++ download | 2 +- libbpf.spec | 19 +++++++++++-------- 3 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3cd7737 --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +sources: + echo ok diff --git a/download b/download index 2de5181..06e25e1 100644 --- a/download +++ b/download @@ -1 +1 @@ -3c8a943916e9ede4932bc37600ba8a44 linux-4.18.0-402.el8.tar.xz +dd960bbfb305e29f156d5cf34aba83c1 linux-5.10.134-15.al8.tar.xz diff --git a/libbpf.spec b/libbpf.spec index 67a94f5..93a27c3 100644 --- a/libbpf.spec +++ b/libbpf.spec @@ -1,15 +1,16 @@ -%global anolis_release .0.3 +%global anolis_release .2 # We build libbpf from RHEL kernel sources, that's why we use # directly kernel tar for RHEL kernel build. # We update libbpf's 'sources' file with proper hash that's # used as kernel tar. # RHEL kernel version-release -%define kver 4.18.0-402 -%define source linux-%{kver}.el8 +%define kver 5.10.134 +%define krel 15.al8 +%define source linux-%{kver}-%{krel} Name: libbpf -Version: 0.5.0 +Version: 0.6.0 Release: 1%{anolis_release}%{?dist} Summary: Libbpf library @@ -18,8 +19,6 @@ Source0: %{source}.tar.xz BuildRequires: gcc elfutils-libelf-devel elfutils-devel python3 Conflicts: bcc < 0.10 -Patch1: 0001-Add-build-support-for-loongarch-platform.patch - %description A mirror of bpf-next linux tree bpf-next/tools/lib/bpf directory plus its supporting header files. The version of the package reflects the version of @@ -48,8 +47,6 @@ developing applications that use %{name} %prep %setup -n %{source} -%patch1 -p1 - %build pushd tools/lib/bpf %{libbpf_make} prefix=%{_prefix} @@ -73,6 +70,12 @@ popd %{_libdir}/libbpf.a %changelog +* Fri May 31 2024 Shenglong Zhu - 0.6.0-1.2 +- Fix kernel header requirement + +* Fri Oct 20 2023 Liwei Ge - - 0.6.0-1.1 +- Update kernel + * Thu Sep 28 2023 Hui Li - 0.5.0-1.0.3 - Add support for loongarch64 -- Gitee