Though the assembly errors we see in the linux-restricted-modules builds
themselves are benign (the .ko checksums are validated) the same erroneous
commands are not (always) benign in the final end-user installations.
Eliminate these extra commands in the final end-user BUILD script.
BugLink: https://bugs.launchpad.net/bugs/1919315
Signed-off-by: Andy Whitcroft <apw@canonical.com>
cp "$base/signatures/$package/"*".ko.sig" "$pkgdir/bits"
sha256sum -c "$base/signatures/$package/SHA256SUMS" || exit 1
sh ./CLEAN
+
+ sed -i '/objdump/d' ./BUILD
+
else
# We are in the main kernel, put the .kos together as we will
# on the users machine, sign them, and keep just the signature.