Added Docker Support
This commit is contained in:
parent
cbbe081a7e
commit
ecd03f8f0d
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@ -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"]
|
@ -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
|
||||
|
||||
|
5
docker-compose.yml
Normal file
5
docker-compose.yml
Normal file
@ -0,0 +1,5 @@
|
||||
services:
|
||||
edk2:
|
||||
build: .
|
||||
volumes:
|
||||
- .:/build
|
Loading…
Reference in New Issue
Block a user