File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ build_one() {
2727 rm -rf " $work " " $out " ; mkdir -p " $stage " " $kstage " " $out "
2828 " $SELF /scripts/build-components.sh" " ${component_cache_args[@]} " \
2929 " $work " " $stage " " $kstage " " $flavor "
30+ if [[ $flavor == prod ]]; then
31+ # Yocto splits module DWARF into debug packages which are not shipped in
32+ # the production image. Keep BTF and loadable ELF metadata, but do not put
33+ # hundreds of MiB of host-side DWARF into the immutable guest root.
34+ find " $kstage /usr/lib/modules" -type f -name ' *.ko' -exec objcopy --strip-debug {} +
35+ fi
3036 # ExtraTrees is copied over Debian's usr-merged root where /bin, /sbin and
3137 # /lib are symlinks. Normalize build systems (notably OpenZFS) that install
3238 # into the legacy physical directories before handing the tree to mkosi.
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ grep -q 'image/assemble.sh' "$D/build.sh"
2424grep -q ' build-ovmf.sh' " $D /scripts/build-components.sh"
2525grep -q ' fbe0805b2091393406952e84724188f8c1941837' " $D /scripts/build-ovmf.sh"
2626grep -q ' AmdSev/AmdSevX64.dsc' " $D /scripts/build-ovmf.sh"
27+ grep -q ' objcopy --strip-debug' " $D /build.sh"
2728grep -q ' "firmware_sev":"files/ovmf-sev.fd"' " $D /scripts/make-release-artifacts.sh"
2829grep -q ' measurement.snp.cbor' " $D /tests/check-output.sh"
2930grep -q ' 0001-validate-ocsp-response-freshness.patch' " $D /scripts/build-nvattest.sh"
You can’t perform that action at this time.
0 commit comments