Skip to content

Commit

Permalink
kernel: Include objtool in kernel-devel
Browse files Browse the repository at this point in the history
objtool is a requirement for compiling external modules, particularly if
stack validation is enabled at build time.

Signed-off-by: Samuel Mendoza-Jonas <[email protected]>
  • Loading branch information
sam-aws committed Mar 26, 2020
1 parent 2373814 commit 0cdf371
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/kernel/kernel.spec
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ mkdir src_squashfs
for file in $(cat kernel_devel_files); do
install -D ${file} src_squashfs/%{version}/${file}
done
# if we have it, include objtool (not all arches support it yet)
if [ "%{_cross_karch}" == "x86" ]; then
install -D tools/objtool/objtool src_squashfs/%{version}/tools/objtool/objtool
fi

mksquashfs src_squashfs kernel-devel.squashfs
install -D kernel-devel.squashfs %{buildroot}%{_cross_datadir}/bottlerocket/kernel-devel.squashfs
install -d %{buildroot}%{kernel_sourcedir}
Expand Down

0 comments on commit 0cdf371

Please sign in to comment.