Install vmlinux with root executable permissions (#4871)
There was a bug where debug sources were missing from sources that were built into vmlinux. This is because find_debuginfo, the script which extracts debug sources, looks only at files which are executable. Because we were installing vmlinux as 644, it was being skipped. Therefore, change to install with permissions 744.
This commit is contained in:
Родитель
b9425ed476
Коммит
abe001946e
|
@ -10,7 +10,7 @@
|
|||
Summary: Signed Linux Kernel for %{buildarch} systems
|
||||
Name: kernel-signed-%{buildarch}
|
||||
Version: 5.15.92.1
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: GPLv2
|
||||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
|
@ -153,6 +153,9 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg
|
|||
%exclude /module_info.ld
|
||||
|
||||
%changelog
|
||||
* Wed Feb 15 2023 Rachel Menge <rachelmenge@microsoft.com> - 5.15.92.1-3
|
||||
- Bump release to match kernel
|
||||
|
||||
* Thu Feb 09 2023 Minghe Ren <mingheren@microsoft.com> - 5.15.92.1-2
|
||||
- Disable CONFIG_INIT_ON_FREE_DEFAULT_ON
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Summary: Linux API header files
|
||||
Name: kernel-headers
|
||||
Version: 5.15.92.1
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: GPLv2
|
||||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
|
@ -36,6 +36,9 @@ cp -rv usr/include/* /%{buildroot}%{_includedir}
|
|||
%{_includedir}/*
|
||||
|
||||
%changelog
|
||||
* Wed Feb 15 2023 Rachel Menge <rachelmenge@microsoft.com> - 5.15.92.1-3
|
||||
- Bump release to match kernel
|
||||
|
||||
* Thu Feb 09 2023 Minghe Ren <mingheren@microsoft.com> - 5.15.92.1-2
|
||||
- Disable CONFIG_INIT_ON_FREE_DEFAULT_ON
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
Summary: Linux Kernel
|
||||
Name: kernel
|
||||
Version: 5.15.92.1
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: GPLv2
|
||||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
|
@ -228,7 +228,7 @@ install -D -m 640 arch/arm64/boot/dts/freescale/imx8mq-evk.dtb %{buildroot}/boot
|
|||
install -vm 400 System.map %{buildroot}/boot/System.map-%{uname_r}
|
||||
install -vm 600 .config %{buildroot}/boot/config-%{uname_r}
|
||||
cp -r Documentation/* %{buildroot}%{_defaultdocdir}/linux-%{uname_r}
|
||||
install -vm 644 vmlinux %{buildroot}%{_libdir}/debug/lib/modules/%{uname_r}/vmlinux-%{uname_r}
|
||||
install -vm 744 vmlinux %{buildroot}%{_libdir}/debug/lib/modules/%{uname_r}/vmlinux-%{uname_r}
|
||||
# `perf test vmlinux` needs it
|
||||
ln -s vmlinux-%{uname_r} %{buildroot}%{_libdir}/debug/lib/modules/%{uname_r}/vmlinux
|
||||
|
||||
|
@ -410,6 +410,9 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg
|
|||
%{_sysconfdir}/bash_completion.d/bpftool
|
||||
|
||||
%changelog
|
||||
* Wed Feb 15 2023 Rachel Menge <rachelmenge@microsoft.com> - 5.15.92.1-3
|
||||
- Install vmlinux as root executable for debuginfo
|
||||
|
||||
* Thu Feb 09 2023 Minghe Ren <mingheren@microsoft.com> - 5.15.92.1-2
|
||||
- Disable CONFIG_INIT_ON_FREE_DEFAULT_ON
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
filesystem-1.1-12.cm2.aarch64.rpm
|
||||
kernel-headers-5.15.92.1-2.cm2.noarch.rpm
|
||||
kernel-headers-5.15.92.1-3.cm2.noarch.rpm
|
||||
glibc-2.35-3.cm2.aarch64.rpm
|
||||
glibc-devel-2.35-3.cm2.aarch64.rpm
|
||||
glibc-i18n-2.35-3.cm2.aarch64.rpm
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
filesystem-1.1-12.cm2.x86_64.rpm
|
||||
kernel-headers-5.15.92.1-2.cm2.noarch.rpm
|
||||
kernel-headers-5.15.92.1-3.cm2.noarch.rpm
|
||||
glibc-2.35-3.cm2.x86_64.rpm
|
||||
glibc-devel-2.35-3.cm2.x86_64.rpm
|
||||
glibc-i18n-2.35-3.cm2.x86_64.rpm
|
||||
|
|
|
@ -135,7 +135,7 @@ intltool-0.51.0-7.cm2.noarch.rpm
|
|||
itstool-2.0.6-4.cm2.noarch.rpm
|
||||
kbd-2.2.0-1.cm2.aarch64.rpm
|
||||
kbd-debuginfo-2.2.0-1.cm2.aarch64.rpm
|
||||
kernel-headers-5.15.92.1-2.cm2.noarch.rpm
|
||||
kernel-headers-5.15.92.1-3.cm2.noarch.rpm
|
||||
kmod-29-1.cm2.aarch64.rpm
|
||||
kmod-debuginfo-29-1.cm2.aarch64.rpm
|
||||
kmod-devel-29-1.cm2.aarch64.rpm
|
||||
|
|
|
@ -135,7 +135,7 @@ intltool-0.51.0-7.cm2.noarch.rpm
|
|||
itstool-2.0.6-4.cm2.noarch.rpm
|
||||
kbd-2.2.0-1.cm2.x86_64.rpm
|
||||
kbd-debuginfo-2.2.0-1.cm2.x86_64.rpm
|
||||
kernel-headers-5.15.92.1-2.cm2.noarch.rpm
|
||||
kernel-headers-5.15.92.1-3.cm2.noarch.rpm
|
||||
kmod-29-1.cm2.x86_64.rpm
|
||||
kmod-debuginfo-29-1.cm2.x86_64.rpm
|
||||
kmod-devel-29-1.cm2.x86_64.rpm
|
||||
|
|
Загрузка…
Ссылка в новой задаче