mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Kernel: T7253: build linux-perf-$version package
Previous patch was removed during VyOS 1.3 -> 1.4 development cycle as the internal handling for Kernel package generation changed. This brings back the perf binary in a new linux-perf-$KERNELVERSION Debian package.
This commit is contained in:
parent
73df823da1
commit
1545aa4b76
@ -0,0 +1,62 @@
|
||||
diff --git c/scripts/package/builddeb i/scripts/package/builddeb
|
||||
index d7dd0d04c70c..6f4a9a7c2c62 100755
|
||||
--- c/scripts/package/builddeb
|
||||
+++ i/scripts/package/builddeb
|
||||
@@ -182,6 +182,16 @@ install_libc_headers () {
|
||||
mv $pdir/usr/include/asm $pdir/usr/include/$host_arch/
|
||||
}
|
||||
|
||||
+install_perf () {
|
||||
+ pdir=$1
|
||||
+
|
||||
+ rm -rf $pdir
|
||||
+
|
||||
+ $MAKE -C tools/ perf_install prefix=$pdir/usr
|
||||
+ mv tools/perf/$pdir/usr $srctree/$pdir
|
||||
+
|
||||
+}
|
||||
+
|
||||
rm -f debian/files
|
||||
|
||||
packages_enabled=$(dh_listpackages)
|
||||
@@ -199,6 +209,8 @@ do
|
||||
install_libc_headers debian/linux-libc-dev;;
|
||||
linux-headers-*)
|
||||
install_kernel_headers debian/linux-headers ${package#linux-headers-};;
|
||||
+ linux-perf-*)
|
||||
+ install_perf debian/linux-perf ${package};;
|
||||
esac
|
||||
done
|
||||
|
||||
@@ -213,6 +225,8 @@ do
|
||||
create_package ${package} debian/linux-libc-dev;;
|
||||
linux-headers-*)
|
||||
create_package ${package} debian/linux-headers;;
|
||||
+ linux-perf-*)
|
||||
+ create_package ${package} debian/linux-perf;;
|
||||
esac
|
||||
done
|
||||
|
||||
diff --git c/scripts/package/mkdebian i/scripts/package/mkdebian
|
||||
index 5044224cf671..21f98ae50be0 100755
|
||||
--- c/scripts/package/mkdebian
|
||||
+++ i/scripts/package/mkdebian
|
||||
@@ -238,6 +238,18 @@ Description: Linux support headers for userspace development
|
||||
Multi-Arch: same
|
||||
EOF
|
||||
|
||||
+cat <<EOF >> debian/control
|
||||
+
|
||||
+Package: linux-perf-$version
|
||||
+Section: devel
|
||||
+Architecture: $debarch
|
||||
+Depends: \${shlibs:Depends}
|
||||
+Description: Performance analysis tools for Linux $version
|
||||
+ This package contains the 'perf' performance analysis tools for Linux
|
||||
+ kernel version $version .
|
||||
+Multi-Arch: same
|
||||
+EOF
|
||||
+
|
||||
if is_enabled CONFIG_MODULES; then
|
||||
cat <<EOF >> debian/control
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user