Skip to content

Add barebox bootloader support (and testing)

Enrico Jorns openembedded-core 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest9 patches 5 repliesIn review
  2. v29 patches 13 repliesSuperseded

Changes in v3 from the cover letter

* bump to barebox 2023.04.0
* add anonymous python to not act as provider when no config is set
* reasoning for default BAREBOX_CONFIGs in patch description and set PREFERRED_PROVIDER_virtual/bootloader to u-boot to avoid conflicts
* extend patch description and add comment for vt100 regex
* set CC=${CC} and LD=${LD} in barebox-tools to fix musl builds

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9barebox: add initial supportmeta/conf/distro/include/maintainers.inc meta/recipes-bsp/barebox/barebox.inc meta/recipes-bsp/barebox/barebox_2023.04.0.bb+148 -01 reply
2/9barebox-tools: add initial barebox tools supportmeta/conf/distro/include/maintainers.inc meta/recipes-bsp/barebox/barebox-tools_2023.04.0.bb+59 -00 replies
3/9barebox: set default BAREBOX_CONFIG for qemu machinesmeta/conf/machine/qemuarm.conf meta/conf/machine/qemuarm64.conf meta/conf/machine/qemux86-64.conf +1 more+8 -00 replies
4/9oeqa/utils/qemurunner: support ignoring vt100 escape sequencesmeta/lib/oeqa/utils/qemurunner.py+3 -12 replies
5/9oeqa/utils/qemurunner: simplify output parsing and make crlf-compatiblemeta/lib/oeqa/utils/qemurunner.py+15 -170 replies
6/9oeqa/utils/commands: document runqemu context managermeta/lib/oeqa/utils/commands.py+16 -10 replies
7/9oeqa: support passing custom boot patterns to runqemumeta/lib/oeqa/targetcontrol.py meta/lib/oeqa/utils/commands.py meta/lib/oeqa/utils/qemurunner.py+7 -50 replies
8/9oeqa/selftest/cases: add barebox testsmeta/lib/oeqa/selftest/cases/barebox.py+72 -00 replies
9/9oeqa/selftest/cases: add basic u-boot testmeta/lib/oeqa/selftest/cases/uboot.py+40 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/9] Add barebox bootloader support (and testing)

This adds support for the barebox bootloader (and tools) to oe-core.

In order to have proper testing, this extends oe-selftest to allow basic testing of bootloaders. While at it, cover both barebox and u-boot.

v3:

* bump to barebox 2023.04.0
* add anonymous python to not act as provider when no config is set
* reasoning for default BAREBOX_CONFIGs in patch description and set PREFERRED_PROVIDER_virtual/bootloader to u-boot to avoid conflicts
* extend patch description and add comment for vt100 regex
* set CC=${CC} and LD=${LD} in barebox-tools to fix musl builds

Enrico Jorns (7):
barebox: set default BAREBOX_CONFIG for qemu machines oeqa/utils/qemurunner: support ignoring vt100 escape sequences oeqa/utils/qemurunner: simplify output parsing and make crlf-compatible oeqa/utils/commands: document runqemu context manager
oeqa: support passing custom boot patterns to runqemu oeqa/selftest/cases: add barebox tests
oeqa/selftest/cases: add basic u-boot test

Marco Felsch (2):
barebox: add initial support
barebox-tools: add initial barebox tools support

 meta/conf/distro/include/maintainers.inc      |   2 +
 meta/conf/machine/qemuarm.conf                |   1 +
 meta/conf/machine/qemuarm64.conf              |   1 +
 meta/conf/machine/qemux86-64.conf             |   1 +
 meta/lib/oeqa/selftest/cases/barebox.py       |  72 +++++++++
 meta/lib/oeqa/selftest/cases/uboot.py         |  40 +++++
 meta/lib/oeqa/targetcontrol.py                |   5 +-
 meta/lib/oeqa/utils/commands.py               |  22 ++-
 meta/lib/oeqa/utils/qemurunner.py             |  38 ++---
 .../barebox/barebox-tools_2023.04.0.bb        |  58 +++++++
 meta/recipes-bsp/barebox/barebox.inc          | 149 ++++++++++++++++++
 meta/recipes-bsp/barebox/barebox_2023.04.0.bb |   3 +
 12 files changed, 368 insertions(+), 24 deletions(-)
 create mode 100644 meta/lib/oeqa/selftest/cases/barebox.py
 create mode 100644 meta/lib/oeqa/selftest/cases/uboot.py
 create mode 100644 meta/recipes-bsp/barebox/barebox-tools_2023.04.0.bb
 create mode 100644 meta/recipes-bsp/barebox/barebox.inc
 create mode 100644 meta/recipes-bsp/barebox/barebox_2023.04.0.bb
Signature · 1 line
2.39.2