mbox series

[0/3] Simplify OpenSBI builds

Message ID cover.1761761297.git.jan.kiszka@siemens.com
Headers show
Series Simplify OpenSBI builds | expand

Message

Jan Kiszka Oct. 29, 2025, 6:08 p.m. UTC
Introduce a class to simplify recipes for building custom OpenSBI
firmware.

This is also a pilot to switch from the "require .inc" to a more common
"inherit" pattern for pulling such helpers.

Note that the fu540 conversion is only build-tested - I no longer have
access to such a board.

Jan

Jan Kiszka (3):
  meta: Add class for building custom OpenSBI firmware
  opensbi-starfive-visionfive2: Use new obensbi class
  opensbi-sifive-fu540: Use new obensbi class

 RECIPE-API-CHANGELOG.md                       |  6 ++++
 .../opensbi/files/sifive-fu540-rules          | 12 --------
 .../opensbi/files/starfive-visionfive2-rules  | 12 --------
 .../opensbi/opensbi-sifive-fu540_1.1.bb       | 15 +++-------
 .../opensbi-starfive-visionfive2_1.4.bb       | 17 ++++-------
 meta/classes/opensbi.bbclass                  | 28 +++++++++++++++++++
 meta/recipes-bsp/opensbi/rules.tmpl           | 19 +++++++++++++
 7 files changed, 62 insertions(+), 47 deletions(-)
 delete mode 100644 meta-isar/recipes-bsp/opensbi/files/sifive-fu540-rules
 delete mode 100644 meta-isar/recipes-bsp/opensbi/files/starfive-visionfive2-rules
 create mode 100644 meta/classes/opensbi.bbclass
 create mode 100644 meta/recipes-bsp/opensbi/rules.tmpl