public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "'Jan Kiszka' via isar-users" <isar-users@googlegroups.com>
To: isar-users <isar-users@googlegroups.com>
Subject: [PATCH 3/3] opensbi-sifive-fu540: Use new obensbi class
Date: Wed, 29 Oct 2025 19:08:17 +0100	[thread overview]
Message-ID: <d24674eb9796556c47c3d9249d39088426114f23.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>
---
 .../recipes-bsp/opensbi/files/sifive-fu540-rules  | 12 ------------
 .../opensbi/opensbi-sifive-fu540_1.1.bb           | 15 ++++-----------
 2 files changed, 4 insertions(+), 23 deletions(-)
 delete mode 100644 meta-isar/recipes-bsp/opensbi/files/sifive-fu540-rules

diff --git a/meta-isar/recipes-bsp/opensbi/files/sifive-fu540-rules b/meta-isar/recipes-bsp/opensbi/files/sifive-fu540-rules
deleted file mode 100644
index 98bc1b49..00000000
--- a/meta-isar/recipes-bsp/opensbi/files/sifive-fu540-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_PAYLOAD_PATH=/usr/lib/u-boot/sifive_unleashed/u-boot.bin
-
-%:
-	dh $@
diff --git a/meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_1.1.bb b/meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_1.1.bb
index 8902e13e..b83c27c9 100644
--- a/meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_1.1.bb
+++ b/meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_1.1.bb
@@ -3,23 +3,16 @@
 #
 # SPDX-License-Identifier: MIT
 
-inherit dpkg
+inherit opensbi
 
-SRC_URI = " \
-    https://github.com/riscv/opensbi/archive/v${PV}.tar.gz;downloadfilename=opensbi-${PV}.tar.gz \
-    file://sifive-fu540-rules"
+SRC_URI += "https://github.com/riscv/opensbi/archive/v${PV}.tar.gz;downloadfilename=opensbi-${PV}.tar.gz"
 SRC_URI[sha256sum] = "d183cb890130983a4f01e75fc03ee4f7ea0e16a7923b8af9c6dff7deb2fedaec"
 
 S = "${WORKDIR}/opensbi-${PV}"
 
 DEBIAN_BUILD_DEPENDS = "u-boot-sifive"
 
-do_prepare_build[cleandirs] += "${S}/debian"
-do_prepare_build() {
-    cp ${WORKDIR}/sifive-fu540-rules ${WORKDIR}/rules
-    deb_debianize
-
-    echo "build/platform/generic/firmware/fw_payload.bin /usr/lib/opensbi/sifive-fu540/" > ${S}/debian/install
-}
+OPENSBI_EXTRA_BUILDARGS = "FW_PAYLOAD_PATH=/usr/lib/u-boot/sifive_unleashed/u-boot.bin"
+OPENSBI_BIN = "fw_payload.bin"
 
 COMPATIBLE_MACHINE = "sifive-fu540"
-- 
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/d24674eb9796556c47c3d9249d39088426114f23.1761761297.git.jan.kiszka%40siemens.com.

      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 ` [PATCH 2/3] opensbi-starfive-visionfive2: Use new obensbi class 'Jan Kiszka' via isar-users
2025-10-29 18:08 ` 'Jan Kiszka' via isar-users [this message]

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=d24674eb9796556c47c3d9249d39088426114f23.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