Skip to content

Commit b65366c

Browse files
committed
kernel.spec: add bootconfig to kernel-tools package
JIRA: https://issues.redhat.com/browse/RHEL-65546 Upstream Status: RHEL Only, https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3463 Add the bootconfig binary to the kernel-tools package. CONFIG_BOOT_CONFIG is already enabled in RHEL and this allows having a separate file with the kernel parameters and is described at https://docs.kernel.org/admin-guide/bootconfig.html. We intend to use this for automotive for testing purposes since some embedded platforms limit the kernel command line paramters to 511 bytes. Signed-off-by: Brian Masney <bmasney@redhat.com>
1 parent 0bdbbde commit b65366c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

redhat/kernel.spec.template

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ This package provides debug information for package kernel-tools.
11681168
# symlinks because of the trailing nonmatching alternation and
11691169
# the leading .*, because of find-debuginfo.sh's buggy handling
11701170
# of matching the pattern against the symlinks file.
1171-
%{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p '.*%%{_bindir}/centrino-decode(\.debug)?|.*%%{_bindir}/powernow-k8-decode(\.debug)?|.*%%{_bindir}/cpupower(\.debug)?|.*%%{_libdir}/libcpupower.*|.*%%{_bindir}/turbostat(\.debug)?|.*%%{_bindir}/x86_energy_perf_policy(\.debug)?|.*%%{_bindir}/tmon(\.debug)?|.*%%{_bindir}/lsgpio(\.debug)?|.*%%{_bindir}/gpio-hammer(\.debug)?|.*%%{_bindir}/gpio-event-mon(\.debug)?|.*%%{_bindir}/gpio-watch(\.debug)?|.*%%{_bindir}/iio_event_monitor(\.debug)?|.*%%{_bindir}/iio_generic_buffer(\.debug)?|.*%%{_bindir}/lsiio(\.debug)?|.*%%{_bindir}/intel-speed-select(\.debug)?|.*%%{_bindir}/page_owner_sort(\.debug)?|.*%%{_bindir}/slabinfo(\.debug)?|.*%%{_sbindir}/intel_sdsi(\.debug)?|XXX' -o kernel-tools-debuginfo.list}
1171+
%{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p '.*%%{_bindir}/bootconfig(\.debug)?|.*%%{_bindir}/centrino-decode(\.debug)?|.*%%{_bindir}/powernow-k8-decode(\.debug)?|.*%%{_bindir}/cpupower(\.debug)?|.*%%{_libdir}/libcpupower.*|.*%%{_bindir}/turbostat(\.debug)?|.*%%{_bindir}/x86_energy_perf_policy(\.debug)?|.*%%{_bindir}/tmon(\.debug)?|.*%%{_bindir}/lsgpio(\.debug)?|.*%%{_bindir}/gpio-hammer(\.debug)?|.*%%{_bindir}/gpio-event-mon(\.debug)?|.*%%{_bindir}/gpio-watch(\.debug)?|.*%%{_bindir}/iio_event_monitor(\.debug)?|.*%%{_bindir}/iio_generic_buffer(\.debug)?|.*%%{_bindir}/lsiio(\.debug)?|.*%%{_bindir}/intel-speed-select(\.debug)?|.*%%{_bindir}/page_owner_sort(\.debug)?|.*%%{_bindir}/slabinfo(\.debug)?|.*%%{_sbindir}/intel_sdsi(\.debug)?|XXX' -o kernel-tools-debuginfo.list}
11721172

11731173
%package -n rtla
11741174
Summary: Real-Time Linux Analysis tools
@@ -2737,6 +2737,9 @@ chmod +x tools/power/cpupower/utils/version-gen.sh
27372737
pushd tools/thermal/tmon/
27382738
%{tools_make}
27392739
popd
2740+
pushd tools/bootconfig/
2741+
%{tools_make}
2742+
popd
27402743
pushd tools/iio/
27412744
%{tools_make}
27422745
popd
@@ -3052,6 +3055,9 @@ install -m644 %{SOURCE2001} %{buildroot}%{_sysconfdir}/sysconfig/cpupower
30523055
pushd tools/thermal/tmon
30533056
%{tools_make} INSTALL_ROOT=%{buildroot} install
30543057
popd
3058+
pushd tools/bootconfig
3059+
%{tools_make} DESTDIR=%{buildroot} install
3060+
popd
30553061
pushd tools/iio
30563062
%{tools_make} DESTDIR=%{buildroot} install
30573063
popd
@@ -3559,6 +3565,7 @@ fi
35593565
# cpupowerarchs
35603566
%endif
35613567
%{_bindir}/tmon
3568+
%{_bindir}/bootconfig
35623569
%{_bindir}/iio_event_monitor
35633570
%{_bindir}/iio_generic_buffer
35643571
%{_bindir}/lsiio

0 commit comments

Comments
 (0)