Skip to content

Commit

Permalink
Merge pull request #874 from bottlerocket-os/kerneler
Browse files Browse the repository at this point in the history
kernel: Include objtool in kernel-devel
  • Loading branch information
sam-aws authored Mar 27, 2020
2 parents 455fd26 + 0cdf371 commit 5e78fc5
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 5e78fc5

Please sign in to comment.