From 30d72416c4c084731e942b71c19b078bb1ae829f Mon Sep 17 00:00:00 2001 From: Blinov Evgeniy Date: Sat, 5 Oct 2024 18:27:43 +0300 Subject: [PATCH] dockerfile Work stage 2024-10-05 18:27:43 A Dockerfile M README.md --- Dockerfile | 7 +++++++ README.md | 24 ++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f16e3bd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.12-bookworm + +RUN mkdir /root/u-boot + +COPY . /root/amlogic-boot-fip/ + +WORKDIR /root/amlogic-boot-fip diff --git a/README.md b/README.md index 71e98aa..37acf36 100644 --- a/README.md +++ b/README.md @@ -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)