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 Dockerfile for build in docker #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM python:3.12-bookworm

RUN mkdir /root/u-boot

COPY . /root/amlogic-boot-fip/

WORKDIR /root/amlogic-boot-fip
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,30 @@ $ ls my-output-dir
u-boot.bin u-boot.bin.sd.bin u-boot.bin.usb.bl2 u-boot.bin.usb.tpl
```

Docker

```
docker build -t amlogic-boot-fip:latest .

## build single board
docker run \
--rm \
-v ${UBOOT_PATH}:/root/u-boot \
-v ${AMLOGIC_BOOT_FIP_OUTPUT}:/root/amlogic-boot-fip/build \
--name amlogic-boot-fip \
amlogic-boot-fip:latest \
/root/amlogic-boot-fip/build-fip.sh p212 /root/u-boot/u-boot.bin /root/amlogic-boot-fip/build

## test all builds
docker run \
--rm \
-v ${UBOOT_PATH}:/root/u-boot \
-v ${AMLOGIC_BOOT_FIP_OUTPUT}:/root/amlogic-boot-fip/build \
--name amlogic-boot-fip \
amlogic-boot-fip:latest \
/root/amlogic-boot-fip/build-all-fip.sh /root/u-boot/u-boot.bin
```

System Requirements:
- x86-64 Linux system
- Python 3 (for GXBB, GXL & GXM boards only)
Expand Down