Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 855 Bytes

build_qemu.md

File metadata and controls

30 lines (20 loc) · 855 Bytes

Building QEMU from source code

P2IM borrows the build script from GNU MCU Eclipse QEMU. The script builds QEMU in a docker container.

The steps to compile QEMU is as follows.

Install docker

Follow the steps in https://docs.docker.com/install/linux/docker-ce/ubuntu/ to install docker.

Then enable non-root user to run docker containers by

sudo usermod -aG docker $USER

Remember to log out and log back in for this to take effect!

Install dependencies

sudo apt-get install curl git automake texinfo unzip

Build QEMU

cd qemu/ # cd to ROOT_OF_REPO/qemu/
WORK_FOLDER_PATH=`pwd`/src ./build_scripts/build-qemu.sh --deb64 --no-strip

You can found QEMU binary at src/install/debian64/qemu/bin/qemu-system-gnuarmeclipse