-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmkall.sh
executable file
·37 lines (34 loc) · 1.48 KB
/
mkall.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
33
34
35
36
37
#!/bin/bash
cd build
rm -rf * .*
# URL: https://qemu.readthedocs.io/en/latest/devel/build-system.html
# ubuntu 18.04.06
# sudo apt install make vim ctags cscope meson gcc pkg-config libglib2.0-dev libpixman-1-dev
# cd qemu
# make ctags
# make cscope
# mkdir ../build
# cd build
../configure --help &> configure.help
# ../qemu/configure --target-list=x86_64-softmmu --enable-debug 2>&1 | tee configure.log
# ../qemu/configure --target-list=arm-softmmu --enable-debug --enable-debug-info --extra-cflags="-g3" --extra-ldflags="-g3" --enable-qom-cast-debug 2>&1 | tee configure.log
../configure --target-list=x86_64-softmmu,arm-softmmu --enable-debug 2>&1 | tee configure.log
# ../qemu/configure --enable-debug 2>&1 | tee configure.log
# ../qemu/configure --enable-debug --enable-profiler 2>&1 | tee configure_debug_profiler.log
make 2>&1 | tee make.log
sudo make install 2>&1 | tee install.log
cd -
make ctags
make cscope
# Warning, treated as error:
# ../docs/qemu-option-trace.rst.inc:4:Malformed option description '[enable=]PATTERN', should look like "opt", "-opt args", "--opt args", "/opt args" or "+opt args"
# URL: https://www.mail-archive.com/[email protected]/msg723079.html
# vi ../docs/qemu-option-trace.rst.inc
# +.. option:: -trace
# tracing
# docs/devel/tracing.txt
# ../configure --enable-debug --enable-trace-backends=simple 2>&1 | tee configure_enable-debug_enable-trace-backends-simple.log
# make -s
# sudo make install
# echo vm_state_notify > /tmp/events
# qemu --trace events=/tmp/events