-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·32 lines (31 loc) · 1.1 KB
/
build.sh
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
#!/bin/bash
set -xeuo pipefail
case $1 in
secrets)
features=microram cc_link=0 ../rust-support/build_microram.sh secrets secrets
;;
secrets_dummy)
features=microram cc_link=0 ../rust-support/build_microram.sh secrets_dummy secrets_dummy
;;
victim)
features=microram,constants,secrets ../rust-support/build_microram.sh victim
;;
kernel_attacker)
features=microram,secrets keep_symbols=__cc_syscall_handler \
../rust-support/build_microram.sh kernel_attacker
;;
kernel_attacker_dummy)
features=microram,secrets keep_symbols=__cc_syscall_handler \
cc_secret_objects="build/secrets_dummy.bc" \
../rust-support/build_microram.sh kernel_attacker . kernel_attacker_dummy
;;
checker)
features=microram,secrets ../rust-support/build_microram.sh checker
;;
attacker)
features=microram cc_secret_objects= keep_symbols=CC_COMMITMENT_RANDOMNESS \
../rust-support/build_microram.sh attacker
;;
*)
echo "bad build target: $1" 1>&2
esac