9elements / firmware-action

Build system for firmware images for several open source firmware solutions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automatically build, test and publish Docker containers

AtomicFS opened this issue · comments

  • on update of Dockerfile
  • on schedule? (weekly / monthly)?

Regarding naming and versioning ... how should we do this?
coreboot:4.19 is not really working if we build periodically ... maybe coreboot-4.19:2023-07-17 and coreboot-4.19:latest for example?

The same goes for the edk2

  • uefi:edk2-stable202008 -> uefi_edk2-stable202008:2023-07-17
  • uefi:edk2-stable202105 -> uefi_edk2-stable202105:2023-07-17
  • uefi:edk2-stable202111 -> uefi_edk2-stable202111:2023-07-17
  • uefi:edk2-stable202205 -> uefi_edk2-stable202205:2023-07-17
  • uefi:edk2-stable202208 -> uefi_edk2-stable202208:2023-07-17
  • uefi:edk2-stable202211 -> uefi_edk2-stable202211:2023-07-17
  • uefi:vUDK2017 -> uefi_vUDK2017:2023-07-17

Although with this ... there will be a lot of packages :(

Regarding naming and versioning ... how should we do this? coreboot:4.19 is not really working if we build periodically ... maybe coreboot-4.19:2023-07-17 and coreboot-4.19:latest for example?

The same goes for the edk2

* `uefi:edk2-stable202008` -> `uefi_edk2-stable202008:2023-07-17`

* `uefi:edk2-stable202105` -> `uefi_edk2-stable202105:2023-07-17`

* `uefi:edk2-stable202111` -> `uefi_edk2-stable202111:2023-07-17`

* `uefi:edk2-stable202205` -> `uefi_edk2-stable202205:2023-07-17`

* `uefi:edk2-stable202208` -> `uefi_edk2-stable202208:2023-07-17`

* `uefi:edk2-stable202211` -> `uefi_edk2-stable202211:2023-07-17`

* `uefi:vUDK2017` -> `uefi_vUDK2017:2023-07-17`

Although with this ... there will be a lot of packages :(

The docker/metadata-action has a neat defaults, so I will just stick with them instead of making up my own versioning.

There is a problem that less than usable uptime of nasm.us. Turns out coreboot maintains their own mirror, so it is possible to just add environment variable BUILDGCC_OPTIONS=-m into the Dockerfile:

 # Install dependencies
 ENV DEBIAN_FRONTEND=noninteractive
+ENV BUILDGCC_OPTIONS=-m
 
 # Install git from PPA as v2.34 cannot clone coreboot...
 RUN apt-get -y update && \

This works for the coreboot 4.19 Dockerfile, not yet sure about the others.