Skip to content

Commit c2e43aa

Browse files
committed
feat: preserve System.map on kernel builds
Preserve System.map, so that we can use that to verify that module set and the kernel don't have unresolved symbols. Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com> (cherry picked from commit adeaafc)
1 parent 230b4bc commit c2e43aa

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

kernel/kernel/pkg.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ steps:
3535
;;
3636
esac
3737
38+
cp System.map /rootfs/boot/System.map
39+
3840
export KERNELRELEASE=$(cat include/config/kernel.release)
3941
make -j $(nproc) modules_install INSTALL_MOD_PATH=/rootfs/usr INSTALL_MOD_STRIP=1
40-
depmod -b /rootfs/usr $KERNELRELEASE
42+
depmod -b /rootfs/usr -F /rootfs/boot/System.map --errsyms -w $KERNELRELEASE
4143
unlink /rootfs/usr/lib/modules/$KERNELRELEASE/build
4244
sbom:
4345
outputPath: /rootfs/usr/share/spdx/kernel.spdx.json

libarchive/pkg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dependencies:
55
- stage: base
66
steps:
77
- sources:
8-
- url: https://www.libarchive.org/downloads/libarchive-{{ .libarchive_version }}.tar.xz
8+
- url: https://github.com/libarchive/libarchive/releases/download/v{{ .libarchive_version }}/libarchive-{{ .libarchive_version }}.tar.xz
99
destination: libarchive.tar.xz
1010
sha256: "{{ .libarchive_sha256 }}"
1111
sha512: "{{ .libarchive_sha512 }}"

0 commit comments

Comments
 (0)