Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
sdimitro committed Oct 4, 2023
1 parent 6fb4adb commit acca0ff
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
15 changes: 14 additions & 1 deletion default-package-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ function merge_with_upstream() {
#
function kernel_prepare() {
logmust install_pkgs \
equivs \
devscripts \
equivs \
gawk \
kernel-wedge
}

Expand Down Expand Up @@ -182,6 +183,18 @@ function kernel_build() {
logmust cd "$WORKDIR"
logmust mv ./*deb "artifacts/"

#
# XXX: refactor & explain
#
logmust echo "SERAPHEIM START"
logmust ls "$WORKDIR/repo/debian/linux-image-${kernel_version}-dbgsym/usr/lib/debug/boot/"
logmust mkdir ~/vmlinux-artifacts

if test -d "$WORKDIR/repo/debian/linux-image-${kernel_version}-dbgsym/usr/lib/debug/boot/"; then
logmust cp "$WORKDIR/repo/debian/linux-image-${kernel_version}-dbgsym/usr/lib/debug/boot/vmlinux-${kernel_version}" ~/vmlinux-artifacts/"vmlinux-${kernel_version}"
fi
logmust echo "SERAPHEIM END"

#
# Make sure that we recorded the kernel version properly by checking
# one of the .debs produced
Expand Down
12 changes: 12 additions & 0 deletions lib/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,18 @@ function install_kernel_headers() {
for kernel in $KERNEL_VERSIONS; do
logmust dpkg-query -l "linux-headers-$kernel" >/dev/null
done

#
# XXX: Refactor & explain
#
logmust "SERAPHEIM START2"
if test -d ~/vmlinux-artifacts; then
local kernel
for kernel in $KERNEL_VERSIONS; do
logmust cp ~/vmlinux-artifacts/"vmlinux-${kernel}" "/usr/src/linux-headers-$kernel/vmlinux"
done
fi
logmust "SERAPHEIM END2"
}

function delphix_revision() {
Expand Down

0 comments on commit acca0ff

Please sign in to comment.