9elements/firmware-action

Build system for open source firmware (coreboot, linux, EDK2, ...) with unified builds across development and CI environments.

https://github.com/9elements/firmware-action

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.5%) to scientific vocabulary

Keywords

bios build-system build-tool coreboot edk2 firmware firmware-development firmware-tools linux linux-kernel u-boot u-root uefi

Keywords from Contributors

mesh sequences interactive hacking network-simulation
Last synced: 6 months ago · JSON representation ·

Repository

Build system for open source firmware (coreboot, linux, EDK2, ...) with unified builds across development and CI environments.

Basic Info
Statistics
  • Stars: 19
  • Watchers: 8
  • Forks: 1
  • Open Issues: 21
  • Releases: 34
Topics
bios build-system build-tool coreboot edk2 firmware firmware-development firmware-tools linux linux-kernel u-boot u-root uefi
Created about 3 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Citation Codeowners Security

README.md

Firmware-Action

Lint building containers go test Go Report Card codecov

Description

Firmware-action is a tool to simplify building firmware. Think of it as Makefile or Taskfile but specifically for firmware. The tool it-self is written entirely in Golang.

Motivation behind the creation is to unify building of firmware across development environments. The goal of firmware-action is to run on your local machine but also in your CI/CD pipeline, with the same configuration producing the same output.

There is also an independent python tool to prepare Docker containers to be used with firmware-action. These are hosted on GitHub and are freely available (no need to build any Docker containers yourself).

There is also a GitHub action integration allowing you to use firmware-action in your GitHub CI/CD.

At the moment firmware-action has modules to build: - coreboot - linux - tianocore / edk2 - firmware stitching (populating IFD regions with binaries) - u-root - u-boot - universal module (run arbitrary commands in arbitrary Docker container)

This list should expand in the future (see issue 56).

Firmware-action is using dagger under the hood, which makes it a rather versatile tool. When firmware-action is used, it automatically downloads user-specified Docker containers in which it will attempt to build the firmware.

If your firmware consists of multiple components, such as coreboot with linux as the payload, you can simply define each as a module and define dependency between them. Each module is built separately, but can use the output of another module as input. In the coreboot + linux example, you can call firmware-action to build coreboot recursively, which will also build linux due to the dependency definition. This way, you can build complex stacks of firmware in a single call.

Documentation is hosted in pages.

There is a standalone repository with usage examples at firmware-action-example.

Pre-compiled coreboot toolchains for docker containers are stored in separate directory firmware-action-toolchains.

Containers

We maintain multiple containers that can be freely used with firmware-action. They are hosted both in GitHub registry as well as in DockerHub.

DockerHub registry contains only releases, while GitHub registry contains also containers build on main branch.

Here is a list of all containers:

| Container | Maintained | Note | | -------------------- | ---------- | ------------------------------------------ | | coreboot4.19 | [x] | | | coreboot4.20 | [ ] | discontinued in favor of 4.20.1 | | coreboot4.20.1 | [x] | | | coreboot4.21 | [x] | | | coreboot4.22 | [ ] | discontinued in favor of 4.22.1 | | coreboot4.22.01 | [x] | | | coreboot24.02 | [ ] | discontinued in favor of 24.02.01 | | coreboot24.02.01 | [x] | | | coreboot24.05 | [x] | | | coreboot25.03 | [x] | | | udk2017 | [x] | | | edk2-stable202008 | [x] | | | edk2-stable202105 | [x] | | | edk2-stable202111 | [x] | | | edk2-stable202205 | [x] | | | edk2-stable202208 | [x] | | | edk2-stable202211 | [x] | | | edk2-stable202302 | [x] | | | edk2-stable202305 | [x] | | | edk2-stable202308 | [x] | | | edk2-stable202311 | [x] | | | edk2-stable202402 | [x] | | | edk2-stable202405 | [x] | | | edk2-stable202408 | [ ] | discontinued in favor of stable202408.01 | | edk2-stable202408.01 | [x] | | | edk2-stable202411 | [x] | | | edk2-stable202502 | [x] | | | linux6.1.111 | [ ] | discontinued in favor of `linux6.1| | linux_6.1.45 | [ ] | discontinued in favor oflinux6.1` | | linux6.1 | [x] | | | linux6.6.52 | [ ] | discontinued in favor of `linux6.6` | | linux6.6 | [x] | | | linux6.9.9 | [ ] | discontinued because not LTS | | linux6.11 | [ ] | discontinued because not LTS | | linux6.12 | [x] | | | uroot0.14.0 | [x] | | | uboot2025.01 | [x] | | | uboot_2025.04 | [x] | |

Legacy containers

These were created by hand long time ago and since then have been replaced.

| Container | Maintained | Note | | --------------------------------------------------------------------------------- | ---------- | ------------ | | coreboot | [ ] | discontinued | | uefi | [ ] | discontinued |

Owner

  • Name: 9elements
  • Login: 9elements
  • Kind: organization
  • Location: Bochum, Germany

Digital product and design studio. High on code.

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: firmware-action
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - name: 9elements
    address: Kortumstraße 19-21
    city: Bochum
    country: DE
    post-code: '44787'
    email: contact@9elements.com
    website: 'https://9elements.com/'
    tel: +49-234-6894188
repository-code: 'https://github.com/9elements/firmware-action'
repository: 'https://github.com/9elements/firmware-action-example/'
abstract: >-
  Firmware-action is a tool to simplify building firmware.
  It is like Makefile or Taskfile but specifically for
  firmware.
keywords:
  - firmware
  - coreboot
  - u-boot
  - linuxboot
  - UEFI
  - edk2
  - BIOS
  - GitHub action
license: MIT

GitHub Events

Total
  • Create event: 586
  • Release event: 18
  • Issues event: 84
  • Watch event: 9
  • Delete event: 577
  • Issue comment event: 284
  • Push event: 956
  • Pull request review comment event: 100
  • Pull request review event: 420
  • Pull request event: 573
  • Fork event: 3
Last Year
  • Create event: 586
  • Release event: 18
  • Issues event: 84
  • Watch event: 9
  • Delete event: 577
  • Issue comment event: 284
  • Push event: 956
  • Pull request review comment event: 100
  • Pull request review event: 420
  • Pull request event: 573
  • Fork event: 3

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 932
  • Total Committers: 6
  • Avg Commits per committer: 155.333
  • Development Distribution Score (DDS): 0.261
Past Year
  • Commits: 626
  • Committers: 4
  • Avg Commits per committer: 156.5
  • Development Distribution Score (DDS): 0.26
Top Committers
Name Email Commits
AtomicFS v****y@9****m 689
dependabot[bot] 4****] 179
AtomicFS v****y@w****u 27
Marvin Drees m****s@9****m 19
Patrick Rudolph p****h@9****m 13
Vojtech Vesely v****y@s****m 5
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 81
  • Total pull requests: 446
  • Average time to close issues: 2 months
  • Average time to close pull requests: 3 days
  • Total issue authors: 4
  • Total pull request authors: 5
  • Average comments per issue: 0.67
  • Average comments per pull request: 0.78
  • Merged pull requests: 382
  • Bot issues: 0
  • Bot pull requests: 187
Past Year
  • Issues: 38
  • Pull requests: 381
  • Average time to close issues: 26 days
  • Average time to close pull requests: 2 days
  • Issue authors: 3
  • Pull request authors: 4
  • Average comments per issue: 0.47
  • Average comments per pull request: 0.71
  • Merged pull requests: 323
  • Bot issues: 0
  • Bot pull requests: 187
Top Authors
Issue Authors
  • AtomicFS (104)
  • PatrickRudolph (7)
  • LeanSheng (2)
  • dependabot[bot] (2)
  • mynetz (1)
  • bcran (1)
Pull Request Authors
  • AtomicFS (405)
  • dependabot[bot] (276)
  • github-actions[bot] (59)
  • MDr164 (8)
  • PatrickRudolph (7)
Top Labels
Issue Labels
feature (38) bug (33) docker (32) low_priority (25) go (20) github_actions (20) enhancement (16) suggestion (15) documentation (15) quality_of_life (14) testing (11) good_first_issue (10) blocked (8) python (7) help_wanted (5) module/coreboot (5) module/edk2 (5) dependencies (4) upstream_issue (2) not_reproduced (2) high_priority (2) wontfix (2) question (2) github actions (1) module/stitching (1) javascript (1) module/linux (1) reminder (1) bugfix (1)
Pull Request Labels
dependencies (292) go (187) github_actions (183) testing (121) documentation (111) bugfix (91) feature (75) docker (74) python (64) module/coreboot (47) module/edk2 (42) module/linux (38) submodules (38) enhancement (32) module/u-root (20) module/stitching (12) github actions (9) javascript (8) high_priority (7) low_priority (4) quality_of_life (3) blocked (3) bug (2)

Packages

  • Total packages: 4
  • Total downloads: unknown
  • Total dependent packages: 0
    (may contain duplicates)
  • Total dependent repositories: 0
    (may contain duplicates)
  • Total versions: 72
proxy.golang.org: github.com/9elements/firmware-action/cmd/firmware-action

Package main implements the core logic of running composable Dagger pipelines Documentation [is hosted in GitHub pages](https://9elements.github.io/firmware-action/)

  • Versions: 0
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.8%
Average: 5.9%
Dependent repos count: 6.1%
Last synced: 7 months ago
proxy.golang.org: github.com/9elements/firmware-action/action

Package main implements the core logic of running composable Dagger pipelines Documentation [is hosted in GitHub pages](https://9elements.github.io/firmware-action/)

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 9.6%
Average: 10.2%
Dependent repos count: 10.8%
Last synced: 7 months ago
proxy.golang.org: github.com/9elements/firmware-action
  • Versions: 36
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 8.9%
Dependent repos count: 10.6%
Stargazers count: 11.9%
Average: 12.6%
Forks count: 19.1%
Last synced: 6 months ago
github actions: 9elements/firmware-action

Compile a selected firmware solution like coreboot, EDKII, OpenBMC and more

  • Versions: 35
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 0.0%
Stargazers count: 7.2%
Average: 15.2%
Forks count: 19.1%
Dependent repos count: 34.3%
Last synced: 6 months ago

Dependencies

.github/workflows/docker-build-and-test.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
.github/workflows/example.yml actions
  • ./ * composite
  • actions/checkout v3 composite
.github/workflows/go-test.yml actions
  • actions/checkout v3 composite
.github/workflows/lint.yml actions
  • actions/checkout v3 composite
  • actions/setup-go v4 composite
  • golangci/golangci-lint-action v3 composite
  • oxsecurity/megalinter/flavors/cupcake v7 composite
  • wagoid/commitlint-github-action v5 composite
.github/workflows/pytest.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
action.yml actions
  • dist/invoke-action.mjs node20 javascript
docker/coreboot/Dockerfile docker
  • base latest build
  • ubuntu jammy build
docker/edk2/Dockerfile docker
  • ${INTERMEDIATE_IMAGE} latest build
  • ${SOURCE_IMAGE} latest build
  • base latest build
docker/linux/Dockerfile docker
  • ${SOURCE_IMAGE} latest build
action/go.mod go
  • dagger.io/dagger v0.8.3
  • github.com/99designs/gqlgen v0.17.36
  • github.com/Khan/genqlient v0.6.0
  • github.com/Masterminds/semver v1.5.0
  • github.com/adrg/xdg v0.4.0
  • github.com/davecgh/go-spew v1.1.1
  • github.com/iancoleman/strcase v0.3.0
  • github.com/mitchellh/go-homedir v1.1.0
  • github.com/plus3it/gorecurcopy v0.0.1
  • github.com/pmezard/go-difflib v1.0.0
  • github.com/sethvargo/go-envconfig v0.9.0
  • github.com/sethvargo/go-githubactions v1.1.0
  • github.com/stretchr/testify v1.8.4
  • github.com/vektah/gqlparser/v2 v2.5.8
  • golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63
  • golang.org/x/sync v0.3.0
  • golang.org/x/sys v0.11.0
  • gopkg.in/yaml.v3 v3.0.1
action/go.sum go
  • dagger.io/dagger v0.8.3
  • github.com/99designs/gqlgen v0.17.36
  • github.com/Khan/genqlient v0.6.0
  • github.com/Masterminds/semver v1.5.0
  • github.com/adrg/xdg v0.4.0
  • github.com/agnivade/levenshtein v1.1.1
  • github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883
  • github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0
  • github.com/davecgh/go-spew v1.1.0
  • github.com/davecgh/go-spew v1.1.1
  • github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48
  • github.com/google/go-cmp v0.5.8
  • github.com/iancoleman/strcase v0.3.0
  • github.com/kr/pretty v0.1.0
  • github.com/kr/pretty v0.2.1
  • github.com/kr/pty v1.1.1
  • github.com/kr/text v0.1.0
  • github.com/mitchellh/go-homedir v1.1.0
  • github.com/plus3it/gorecurcopy v0.0.1
  • github.com/pmezard/go-difflib v1.0.0
  • github.com/sergi/go-diff v1.3.1
  • github.com/sethvargo/go-envconfig v0.9.0
  • github.com/sethvargo/go-githubactions v1.1.0
  • github.com/stretchr/objx v0.1.0
  • github.com/stretchr/testify v1.4.0
  • github.com/stretchr/testify v1.7.0
  • github.com/stretchr/testify v1.8.4
  • github.com/vektah/gqlparser/v2 v2.5.8
  • golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63
  • golang.org/x/sync v0.3.0
  • golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359
  • golang.org/x/sys v0.11.0
  • gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
  • gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15
  • gopkg.in/yaml.v2 v2.2.2
  • gopkg.in/yaml.v2 v2.4.0
  • gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
  • gopkg.in/yaml.v3 v3.0.1
package-lock.json npm
  • 418 dependencies
package.json npm
  • mega-linter-runner ^6.19.0 development
.dagger-ci/daggerci/pyproject.toml pypi
.dagger-ci/daggerci/requirements.txt pypi
  • PyYAML *
  • anyio *
  • dagger-io *
  • humanize *
  • prettytable *
  • pytest *
  • pytest-benchmark *
  • pytest-cov *
  • pytest-flake8 *
  • pytest-pylint *
  • pytest-timeout *