dockerfile
# Compile and install qemu_stm32
from fedora:28
RUN dnf install -y \
arm-none-eabi-gcc\
arm-none-eabi-newlib\
findutils\
gcc\
git\
glib2-devel\
libfdt-devel\
pixman-devel\
pkgconf-pkg-config\
python\
make\
zlib-devel ;\
git clone https://github.com/beckus/qemu_stm32.git
RUN cd qemu_stm32 && ./configure --extra-cflags="-w" --enable-debug --target-list="arm-softmmu" && make && make install
# Install demos
RUN git clone https://github.com/beckus/stm32_p103_demos.git && cd stm32_p103_demos && make
docker-compose
version: '3'
services:
qemu_stm32:
container_name: qemu_stm32
build:
context: .
dockerfile: Dockerfile
working_dir: /stm32_p103_demos/demos/freertos_singlethread
command: [ "/bin/sh","-c","sleep 99999" ]
STM32F103
qemu-system-arm -M stm32-p103 -kernel main.bin
标签:stm32,git,qemu,p103,STM32,demos,&&,docker,QEMU
From: https://www.cnblogs.com/guanchaoguo/p/17585010.html