From ecd03f8f0df906ead55d1141ca1338f48aeb0c7c Mon Sep 17 00:00:00 2001 From: psy Date: Sat, 24 Jul 2021 16:06:56 +0530 Subject: [PATCH] Added Docker Support --- Dockerfile | 11 +++++++++++ README.md | 6 +++++- docker-compose.yml | 5 +++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 Dockerfile create mode 100644 docker-compose.yml 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