Files
linux-kernel-module-cheat/zip-img
Ciro Santilli b675cf35cb zip-image: factor out with common
Notably, only include the strictly necessary files in the archive, otherwise
initrd's from other builds might get in the way.
2018-08-09 22:25:53 +01:00

11 lines
349 B
Bash
Executable File

#!/usr/bin/env bash
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
common_setup
cd "$common_root_dir"
outfile="${common_out_dir}/lkmc-${common_sha}.zip"
rm -f "$outfile"
for common_arch in x86_64 arm aarch64; do
common_setup
zip -r "$outfile" "${common_qcow2_file#${common_root_dir}/}" "${common_linux_image#${common_root_dir}/}"
done