-
Notifications
You must be signed in to change notification settings - Fork 10
/
build
executable file
·56 lines (47 loc) · 1.67 KB
/
build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env bash
set -e
SIM=${1:-keenkraken}
BUILD_TYPE=${2:-release}
CUSTOM_GCC=${3:-system}
FLEXUS_ROOT=$(realpath flexus)
QEMU_ROOT=$(realpath qemu)
profile="-pr ${FLEXUS_ROOT}/target/_profile/${BUILD_TYPE}"
if [ "$CUSTOM_GCC" = "custom" ]; then
profile="${profile} -pr ${FLEXUS_ROOT}/target/_profile/custom-gcc"
fi
case $SIM in
*kraken)
conan build $FLEXUS_ROOT $profile --name=$SIM -of out -b missing
conan export-pkg $FLEXUS_ROOT $profile --name=$SIM -of out
;;
[cC][Qq]|qemu)
pushd $QEMU_ROOT
if [ "$BUILD_TYPE" = "debug" ]; then
./configure --target-list=aarch64-softmmu \
--disable-docs \
--enable-capstone \
--enable-slirp \
--enable-savevm-external \
--enable-libqflex \
--enable-debug \
--extra-cflags="-fsanitize=address" \
--extra-cflags="-fno-omit-frame-pointer"
else
./configure --target-list=aarch64-softmmu \
--disable-docs \
--enable-capstone \
--enable-slirp \
--enable-savevm-external \
--enable-libqflex
fi
popd
make -C qemu -j
;;
[Qq])
make -C qemu -j
;;
*)
echo "Never heard of '${SIM}'"
exit 1
;;
esac