summaryrefslogtreecommitdiff
path: root/Meta/CLion/run.sh
blob: 394ab5ff8db44e3c3afe6298f07f0b3374ae09c0 (plain)
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
#!/bin/sh

set -e

: "${SERENITY_RAM_SIZE:='256M'}"
export SERENITY_RAM_SIZE

# set SERENITY_ROOT to the path to the serenity directory
: "${SERENITY_ROOT:='/mnt/c/Users/Ragnarok/serenity-project/serenity'}"
: "${SERENITY_BUILD:="$SERENITY_ROOT/Build"}"
export SERENITY_ROOT SERENITY_BUILD

cd -P -- "$SERENITY_BUILD" || exit
make install
make image

# set this to point to qemu installation on windows
export SERENITY_QEMU_BIN='/mnt/c/Program Files/qemu/qemu-system-i386.exe'

export SERENITY_COMMON_QEMU_ARGS="
$SERENITY_EXTRA_QEMU_ARGS
-s -m $SERENITY_RAM_SIZE
-cpu max
-d cpu_reset,guest_errors
-smp 2
-device VGA,vgamem_mb=64
-hda _disk_image
-device ich9-ahci
-debugcon stdio
-soundhw pcspk
-soundhw sb16
"

"$SERENITY_ROOT/Meta/run.sh" "$@"