Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker file for compiling #26

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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