mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 18:25:57 +01:00
build-all: make gem5 rebuild optional rootfs_post_image_script: prevent qemu-img from generating trace files
22 lines
477 B
Bash
Executable File
22 lines
477 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eux
|
|
# Build all archs (that we care the most about).
|
|
# Will take forever from a clean repo, this is most useful
|
|
# after pulling the repository to do an incremental build
|
|
# then quickly test out all the setups.
|
|
gem5=true
|
|
while getopts G OPT; do
|
|
case "$OPT" in
|
|
G)
|
|
gem5=false
|
|
;;
|
|
esac
|
|
done
|
|
shift "$(($OPTIND - 1))"
|
|
for arch in x86_64 arm aarch64; do
|
|
./build -a "$arch" -klq
|
|
if "$gem5"; then
|
|
./build -a "$arch" -g -Gkl
|
|
fi
|
|
done
|