File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,9 @@ function merge_with_upstream() {
3737#
3838function kernel_prepare() {
3939 logmust install_pkgs \
40- equivs \
4140 devscripts \
41+ equivs \
42+ gawk \
4243 kernel-wedge
4344}
4445
@@ -182,6 +183,18 @@ function kernel_build() {
182183 logmust cd " $WORKDIR "
183184 logmust mv ./* deb " artifacts/"
184185
186+ #
187+ # XXX: refactor & explain
188+ #
189+ logmust echo " SERAPHEIM START"
190+ logmust ls " $WORKDIR /repo/debian/linux-image-${kernel_version} -dbgsym/usr/lib/debug/boot/"
191+ logmust mkdir ~ /vmlinux-artifacts
192+
193+ if test -d " $WORKDIR /repo/debian/linux-image-${kernel_version} -dbgsym/usr/lib/debug/boot/" ; then
194+ logmust cp " $WORKDIR /repo/debian/linux-image-${kernel_version} -dbgsym/usr/lib/debug/boot/vmlinux-${kernel_version} " ~ /vmlinux-artifacts/" vmlinux-${kernel_version} "
195+ fi
196+ logmust echo " SERAPHEIM END"
197+
185198 #
186199 # Make sure that we recorded the kernel version properly by checking
187200 # one of the .debs produced
Original file line number Diff line number Diff line change @@ -594,6 +594,18 @@ function install_kernel_headers() {
594594 for kernel in $KERNEL_VERSIONS ; do
595595 logmust dpkg-query -l " linux-headers-$kernel " > /dev/null
596596 done
597+
598+ #
599+ # XXX: Refactor & explain
600+ #
601+ logmust " SERAPHEIM START2"
602+ if test -d ~ /vmlinux-artifacts; then
603+ local kernel
604+ for kernel in $KERNEL_VERSIONS ; do
605+ logmust cp ~ /vmlinux-artifacts/" vmlinux-${kernel} " " /usr/src/linux-headers-$kernel /vmlinux"
606+ done
607+ fi
608+ logmust " SERAPHEIM END2"
597609}
598610
599611function delphix_revision() {
You can’t perform that action at this time.
0 commit comments