This repository has been archived by the owner on Sep 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.yml
121 lines (109 loc) · 4.13 KB
/
package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name : linux-tools
version : 6.5.3
release : 84
source :
- https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.5.3.tar.xz : 4cac13f7b17bd8dcf9032ad68f9123ab5313d698c9f59416043165150763eb4f
license : GPL-2.0-only
component :
- programming.tools
- bpftool : system.utils
- cpupower : programming.library
- cpupower-devel : programming.devel
- turbostat : system.utils
- x86_energy_perf_policy : system.utils
summary :
- Useful kernel development tools such as perf
- bpftool : BPF utilities
- cpupower : The cpupower program
- cpupower-devel : Development files for linux-tools-cpupower
- turbostat : Reports on processor topology, frequency, idle power-state statistics, temperature, and power usage on Intel processors.
- x86_energy_perf_policy : Allows programs and admins to define the relative importance of performance and energy efficiency.
description:
- Useful kernel development tools such as perf
- bpftool : BPF utilities
- cpupower : The cpupower program
- cpupower-devel : Development files for linux-tools-cpupower
- turbostat : Reports on processor topology, frequency, idle power-state statistics, temperature, and power usage on Intel processors.
- x86_energy_perf_policy : Allows programs and admins to define the relative importance of performance and energy efficiency.
libsplit : no
patterns :
- main :
- /usr/include
- bpftool :
- /usr/bin/bpf*
- /usr/share/bash-completion/completions/bpftool
- /usr/share/man/man*/bpf*
- cpupower :
- /usr/bin/cpu*
- /usr/sbin/cpu*
- /usr/lib64/libcpu*.so.*
- /usr/share/bash-completion/completions/cpupower
- /usr/share/locale
- /usr/share/man/man1/cpu*
- cpupower-devel :
- /usr/include/cpu*.h
- /usr/include/powercap.h
- /usr/lib64/libcpu*.so
- turbostat :
- /usr/bin/turbostat
- /usr/share/man/man8/turbostat.8
- x86_energy_perf_policy :
- /usr/bin/x86_energy_perf_policy
- /usr/share/man/man8/x86_energy_perf_policy.8
replaces :
- kernel-tools
builddeps :
- pkgconfig(audit)
- pkgconfig(devmapper)
- pkgconfig(libcap)
- pkgconfig(libpci)
- pkgconfig(libtraceevent)
- pkgconfig(libunwind)
- pkgconfig(libzstd)
- pkgconfig(numa)
- pkgconfig(python3)
- pkgconfig(slang)
- asciidoc
- elfutils-devel
- libelf-devel
- llvm-clang
- python-docutils
- xmlto
environment: |
# Maximize ccache efficiency
export KBUILD_BUILD_USER=root
export KBUILD_BUILD_TIMESTAMP="0"
export SOURCE_DATE_EPOCH=0
# export GCC_IGNORE_WERROR=1 # please for the love of god stop.
build : |
pushd tools/bpf/bpftool
%make prefix=/usr all doc
popd
pushd tools/bpf
%make -W runqslower prefix=/usr
popd
pushd tools/perf
%make PYTHON=python3 PYTHON_CONFIG=python3-config PERF_VERSION=%version% prefix=/usr
popd
pushd tools/power/cpupower
%make prefix=/usr
popd
pushd tools/power/x86/x86_energy_perf_policy
%make prefix=/usr
popd
pushd tools/power/x86/turbostat
%make prefix=/usr
popd
install : |
install -dm00755 $installdir/usr/share/man/man8
%make_install -C tools/bpf -W runqslower_install prefix=/usr
mv $installdir/usr/{sbin,bin}/bpftool
%make_install -C tools/bpf/bpftool doc-install prefix=/usr/share
%make_install -C tools/perf PYTHON=python3 PYTHON_CONFIG=python3-config PERF_VERSION=%version% WERROR=0 prefix=/usr
%make_install -C tools/power/cpupower prefix=/usr mandir=/usr/share/man docdir=/usr/share/doc/${package} libdir=%libdir%
install -D -m 00644 $installdir/etc/bash_completion.d/perf $installdir/usr/share/bash-completion/completions/perf
%make_install -C tools/power/cpupower prefix=/usr mandir=/usr/share/man docdir=/usr/share/doc/${package} libdir=%libdir%
%make_install -C tools/power/x86/turbostat prefix=/usr man8dir=/usr/share/man
%make_install -C tools/power/x86/x86_energy_perf_policy prefix=/usr man8dir=/usr/share/man
rm -rvf $installdir/etc
rm -rvf $installdir/usr/share/sbin