Files
linux-kernel-module-cheat/build-all
Ciro Santilli 六四事件 法轮功 01393a65d3 build-all: add missing --gem5 to build package
m5 tool is just too important
2018-09-15 00:17:39 +01:00

23 lines
397 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
archs='x86_64 arm aarch64'
gem5=true
while getopts A:G OPT; do
case "$OPT" in
A)
archs="$OPTARG"
;;
G)
gem5=false
;;
esac
done
shift "$(($OPTIND - 1))"
for arch in $archs; do
./build-qemu --arch "$arch"
./build-buildroot --arch "$arch" --gem5 --kernel-modules -l "$@"
if "$gem5"; then
./build-gem5 --arch "$arch"
fi
done