git branch --all
git checkout -b remotes/origin/stable-5.0
make -j64 clean ---删除5.1
cd ..
rm -rf build/ 不删除 有问题
root@cloud:~/qemu-system/virtio_qemu/qemu.5.0/5.0.x# git apply --check *patch
root@cloud:~/qemu-system/virtio_qemu/qemu.5.0/5.0.x# git apply *patch
root@cloud:~/qemu-system/virtio_qemu/qemu.5.0/5.0.x# cd ../build/
root@cloud:~/qemu-system/virtio_qemu/qemu.5.0/build# ../configure --target-list=aarch64-softmmu
../configure --target-list=aarch64-softmmu
编译出来的还是5.1
root@cloud:~/qemu-system# qemu-system-aarch64 -version QEMU emulator version 5.0.1 (v5.0.1-dirty) Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers
git clone --branch stable-5.0 --single-branch --depth 1 --shallow-submodules https://github.com/qemu/qemu
没有capstone和ui再拉取这两个包
git clone https://github.com/qemu/capstone.git capstone git clone https://github.com/qemu/keycodemapdb.git ui/keycodemapdb mv capstone/ ui/ qemu/
root@cloud:~/qemu-system# qemu-system-aarch64 -version QEMU emulator version 5.0.1 (v5.0.1-dirty) Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers root@cloud:~/qemu-system# qemu-system-aarch64: Property '.nvdimm' not found root@cloud:~/qemu-system#