From: psy Date: 星期六, 24 Jul 2021 10:36:56 +0000 (+0530) Subject: Added Docker Support X-Git-Tag: v0.4.2~7^2 X-Git-Url: https://git.renegade-project.org/?a=commitdiff_plain;h=refs%2Fpull%2F44%2Fhead;p=edk2-sdm845.git Added Docker Support --- diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2534e1c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM ubuntu:20.04 +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt-get update && apt-get -y install build-essential uuid-dev iasl nasm gcc-aarch64-linux-gnu abootimg python3-distutils python3-pil python3-git locales \ + && rm -rf /var/lib/apt/lists/* \ + && locale-gen en_US.UTF-8 +ENV LANG en_US.utf8 +WORKDIR /build +COPY . . + +CMD ["/bin/bash"] diff --git a/README.md b/README.md index 998354e..3b2e923 100644 --- a/README.md +++ b/README.md @@ -67,11 +67,15 @@ git clone https://github.com/edk2-porting/edk2-sdm845.git --depth=1 cd edk2-sdm845 ``` -2.Build this project +2.1 Build this project (only on linux) ```bash bash build.sh --device DEVICE ``` +2.2 For Macos/Windows (you can use docker) +````bash +docker-compose run edk2 ./build.sh -d your device +```` 3.Boot the image diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..2cf28cb --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,5 @@ +services: + edk2: + build: . + volumes: + - .:/build