From: Brian Masney bmasney@redhat.com
redhat/configs: add bootconfig to kernel-tools package
Upstream Status: RHEL Only
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
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template index blahblah..blahblah 100644 --- a/redhat/kernel.spec.template +++ b/redhat/kernel.spec.template @@ -1234,7 +1234,7 @@ This package provides debug information for package %{package_name}-tools. # symlinks because of the trailing nonmatching alternation and # the leading .*, because of find-debuginfo.sh's buggy handling # of matching the pattern against the symlinks file. -%{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 %{package_name}-tools-debuginfo.list} +%{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 %{package_name}-tools-debuginfo.list}
%package -n rtla %if 0%{gemini} @@ -3037,6 +3037,10 @@ pushd tools/thermal/tmon/ %{log_msg "build tmon"} %{tools_make} popd +pushd tools/bootconfig/ +%{log_msg "build bootconfig"} +%{tools_make} +popd pushd tools/iio/ %{log_msg "build iio"} %{tools_make} @@ -3351,6 +3355,9 @@ chmod 0755 %{buildroot}%{_libdir}/libcpupower.so* pushd tools/thermal/tmon %{tools_make} INSTALL_ROOT=%{buildroot} install popd +pushd tools/bootconfig +%{tools_make} DESTDIR=%{buildroot} install +popd pushd tools/iio %{tools_make} DESTDIR=%{buildroot} install popd @@ -3878,6 +3885,7 @@ fi\ # cpupowerarchs %endif %{_bindir}/tmon +%{_bindir}/bootconfig %{_bindir}/iio_event_monitor %{_bindir}/iio_generic_buffer %{_bindir}/lsiio
-- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3463
From: Brian Masney on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3463#note_2187836...
To verify that the binary is present, I went to the 'Publish aarch64' stages for one of the builds, viewed the RPM archive at S3, downloaded the kernel- tools RPM and validated that the bootconfig binary is present as expected.
``` $ rpm2cpio ~/kernel-tools-6.12.0-0.rc5.45.3463_1518918769.el10.aarch64.rpm | cpio -idmv ./etc/logrotate.d/kvm_stat ./usr/bin/bootconfig ^^^^^^^^^^^^^^^^^^^ ./usr/bin/cpupower ./usr/bin/gpio-event-mon ./usr/bin/gpio-hammer ./usr/bin/gpio-watch ./usr/bin/iio_event_monitor ./usr/bin/iio_generic_buffer ./usr/bin/kvm_stat ./usr/bin/lsgpio ./usr/bin/lsiio ./usr/bin/page_owner_sort ./usr/bin/slabinfo ./usr/bin/tmon ./usr/lib/systemd/system/kvm_stat.service ./usr/share/bash-completion/completions/cpupower ./usr/share/locale/cs/LC_MESSAGES/cpupower.mo ./usr/share/locale/de/LC_MESSAGES/cpupower.mo ./usr/share/locale/fr/LC_MESSAGES/cpupower.mo ./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/share/man/man1/cpupower-frequency-info.1.gz ./usr/share/man/man1/cpupower-frequency-set.1.gz ./usr/share/man/man1/cpupower-idle-info.1.gz ./usr/share/man/man1/cpupower-idle-set.1.gz ./usr/share/man/man1/cpupower-info.1.gz ./usr/share/man/man1/cpupower-monitor.1.gz ./usr/share/man/man1/cpupower-powercap-info.1.gz ./usr/share/man/man1/cpupower-set.1.gz ./usr/share/man/man1/cpupower.1.gz ./usr/share/man/man1/kvm_stat.1.gz 1935 blocks
$ file ./usr/bin/bootconfig ./usr/bin/bootconfig: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=2f592a44e612417ae5c994be19d08769cb370267, for GNU/Linux 3.7.0, stripped ```
From: Brian Masney on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3463#note_2187836...
To verify that the binary is present, I went to one of the 'Publish aarch64' stages, viewed the RPM archive at S3, downloaded the kernel-tools RPM and validated that the bootconfig binary is present as expected.
``` $ rpm2cpio ~/kernel-tools-6.12.0-0.rc5.45.3463_1518918769.el10.aarch64.rpm | cpio -idmv ./etc/logrotate.d/kvm_stat ./usr/bin/bootconfig ^^^^^^^^^^^^^^^^^^^ ./usr/bin/cpupower ./usr/bin/gpio-event-mon ./usr/bin/gpio-hammer ./usr/bin/gpio-watch ./usr/bin/iio_event_monitor ./usr/bin/iio_generic_buffer ./usr/bin/kvm_stat ./usr/bin/lsgpio ./usr/bin/lsiio ./usr/bin/page_owner_sort ./usr/bin/slabinfo ./usr/bin/tmon ./usr/lib/systemd/system/kvm_stat.service ./usr/share/bash-completion/completions/cpupower ./usr/share/locale/cs/LC_MESSAGES/cpupower.mo ./usr/share/locale/de/LC_MESSAGES/cpupower.mo ./usr/share/locale/fr/LC_MESSAGES/cpupower.mo ./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/share/man/man1/cpupower-frequency-info.1.gz ./usr/share/man/man1/cpupower-frequency-set.1.gz ./usr/share/man/man1/cpupower-idle-info.1.gz ./usr/share/man/man1/cpupower-idle-set.1.gz ./usr/share/man/man1/cpupower-info.1.gz ./usr/share/man/man1/cpupower-monitor.1.gz ./usr/share/man/man1/cpupower-powercap-info.1.gz ./usr/share/man/man1/cpupower-set.1.gz ./usr/share/man/man1/cpupower.1.gz ./usr/share/man/man1/kvm_stat.1.gz 1935 blocks
$ file ./usr/bin/bootconfig ./usr/bin/bootconfig: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=2f592a44e612417ae5c994be19d08769cb370267, for GNU/Linux 3.7.0, stripped ```
kernel@lists.fedoraproject.org