From: "'Jan Kiszka' via isar-users" <isar-users@googlegroups.com>
To: isar-users <isar-users@googlegroups.com>
Subject: [PATCH 2/3] opensbi-starfive-visionfive2: Use new obensbi class
Date: Wed, 29 Oct 2025 19:08:16 +0100 [thread overview]
Message-ID: <cd86cc0fbc82f27f07e28a61cfb14490eeb17ab1.1761761297.git.jan.kiszka@siemens.com> (raw)
In-Reply-To: <cover.1761761297.git.jan.kiszka@siemens.com>
From: Jan Kiszka <jan.kiszka@siemens.com>
This simplifies the recipe, specifically obsoleting the need for an own
rules file.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
.../opensbi/files/starfive-visionfive2-rules | 12 ------------
.../opensbi/opensbi-starfive-visionfive2_1.4.bb | 17 +++++------------
2 files changed, 5 insertions(+), 24 deletions(-)
delete mode 100644 meta-isar/recipes-bsp/opensbi/files/starfive-visionfive2-rules
diff --git a/meta-isar/recipes-bsp/opensbi/files/starfive-visionfive2-rules b/meta-isar/recipes-bsp/opensbi/files/starfive-visionfive2-rules
deleted file mode 100644
index 452ff356..00000000
--- a/meta-isar/recipes-bsp/opensbi/files/starfive-visionfive2-rules
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/make -f
-
-ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
-export CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)-
-endif
-
-override_dh_auto_build:
- CFLAGS= LDFLAGS= $(MAKE) $(PARALLEL_MAKE) \
- PLATFORM=generic FW_TEXT_START=0x40000000 FW_OPTIONS=0
-
-%:
- dh $@
diff --git a/meta-isar/recipes-bsp/opensbi/opensbi-starfive-visionfive2_1.4.bb b/meta-isar/recipes-bsp/opensbi/opensbi-starfive-visionfive2_1.4.bb
index 766d1ed7..0b08a1af 100644
--- a/meta-isar/recipes-bsp/opensbi/opensbi-starfive-visionfive2_1.4.bb
+++ b/meta-isar/recipes-bsp/opensbi/opensbi-starfive-visionfive2_1.4.bb
@@ -1,25 +1,18 @@
#
-# Copyright (c) Siemens AG, 2023
+# Copyright (c) Siemens AG, 2023-2025
#
# SPDX-License-Identifier: MIT
-inherit dpkg
+inherit opensbi
DESCRIPTION = "OpenSBI firmware for StarFive VisionFive 2"
-SRC_URI = " \
- https://github.com/riscv-software-src/opensbi/archive/refs/tags/v${PV}.tar.gz;downloadfilename=opensbi-${PV}.tar.gz \
- file://starfive-visionfive2-rules"
+SRC_URI += "https://github.com/riscv-software-src/opensbi/archive/refs/tags/v${PV}.tar.gz;downloadfilename=opensbi-${PV}.tar.gz"
SRC_URI[sha256sum] = "319b62a4186fbce9b81a0c5f0ec9f003a10c808397a72138bc9745d9b87b1eb1"
S = "${WORKDIR}/opensbi-${PV}"
-do_prepare_build[cleandirs] += "${S}/debian"
-do_prepare_build() {
- cp ${WORKDIR}/starfive-visionfive2-rules ${WORKDIR}/rules
- deb_debianize
-
- echo "build/platform/generic/firmware/fw_dynamic.bin /usr/lib/opensbi/starfive-visionfive2/" > ${S}/debian/install
-}
+OPENSBI_EXTRA_BUILDARGS = "FW_TEXT_START=0x40000000 FW_OPTIONS=0"
+OPENSBI_BIN = "fw_dynamic.bin"
COMPATIBLE_MACHINE = "starfive-visionfive2"
--
2.51.0
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/cd86cc0fbc82f27f07e28a61cfb14490eeb17ab1.1761761297.git.jan.kiszka%40siemens.com.
next prev parent reply other threads:[~2025-10-29 18:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-29 18:08 [PATCH 0/3] Simplify OpenSBI builds 'Jan Kiszka' via isar-users
2025-10-29 18:08 ` [PATCH 1/3] meta: Add class for building custom OpenSBI firmware 'Jan Kiszka' via isar-users
2025-10-29 18:08 ` 'Jan Kiszka' via isar-users [this message]
2025-10-29 18:08 ` [PATCH 3/3] opensbi-sifive-fu540: Use new obensbi class 'Jan Kiszka' via isar-users
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cd86cc0fbc82f27f07e28a61cfb14490eeb17ab1.1761761297.git.jan.kiszka@siemens.com \
--to=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox