mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 20:44:26 +01:00
build-all: allow selecting custom archs
This commit is contained in:
14
build-all
14
build-all
@@ -1,18 +1,18 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eux
|
set -eu
|
||||||
# Build all archs (that we care the most about).
|
archs='x86_64 arm aarch64'
|
||||||
# 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=-g
|
gem5=-g
|
||||||
while getopts G OPT; do
|
while getopts A:G OPT; do
|
||||||
case "$OPT" in
|
case "$OPT" in
|
||||||
|
A)
|
||||||
|
archs="$OPTARG"
|
||||||
|
;;
|
||||||
G)
|
G)
|
||||||
gem5=
|
gem5=
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
shift "$(($OPTIND - 1))"
|
shift "$(($OPTIND - 1))"
|
||||||
for arch in x86_64 arm aarch64; do
|
for arch in $archs; do
|
||||||
./build -a "$arch" -klq $gem5 "$@"
|
./build -a "$arch" -klq $gem5 "$@"
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user