From 41f7f42d1e7bc34c2790313723a0eded35e7c799 Mon Sep 17 00:00:00 2001 From: Adam Wang <53825932+AdamW666@users.noreply.github.com> Date: Mon, 15 Jul 2024 15:57:28 +1000 Subject: [PATCH] Add docker file --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..677457ae --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +# docker image for compiling YiYiYa on ARM platform +# 1. build image: docker build -t yiyiya_build:latest . +# 2. run container: docker run -it -v $(pwd):/var/YiYiYa yiyiya_build:latest /bin/sh -c "make all" +# 3. in the shell run: qemu-system-arm -name YiYiYa -M raspi2b -rtc base=localtime -kernel build/raspi2/armv7-a/debug/kernel.elf -serial stdio -D ./qemu.log -drive if=sd,id=sd0,format=raw,file=image/disk.img +FROM ubuntu:22.04 +RUN apt update +RUN apt install -y wget +RUN apt install -y gcc-arm-none-eabi +RUN apt install -y mtools u-boot-tools dosfstools +RUN apt install -y make +RUN apt install -y python3.11 +RUN ln -s /usr/bin/python3.11 /usr/bin/python +RUN wget https://bootstrap.pypa.io/get-pip.py -P /var/tmp +RUN python /var/tmp/get-pip.py +RUN pip install yymake +WORKDIR /var/YiYiYa