[2/2] meta-isar: opensbi-sifive-fu540: Use DEBIAN_BUILD_DEPENDS

Message ID 10e9015df2ef806cd6d0004585d59e6ee443f192.1602830524.git.jan.kiszka@siemens.com
State Accepted, archived
Headers show
Series sifive-fu540: opensbi build fix and cleanup | expand

Commit Message

Jan Kiszka Oct. 15, 2020, 9:42 p.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

Cleanup the manual injection of the build dependency.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_0.8.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_0.8.bb b/meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_0.8.bb
index 6ab83483..eb2e2068 100644
--- a/meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_0.8.bb
+++ b/meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_0.8.bb
@@ -12,12 +12,12 @@  SRC_URI[sha256sum] = "17e048ac765e92e15f7436b604452614cf88dc2bcbbaab18cdc024f3fd
 
 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
 
-    sed -i 's/\(Build-Depends:.*\)/\1, u-boot-sifive/' ${S}/debian/control
-
     echo "build/platform/sifive/fu540/firmware/fw_payload.bin /usr/lib/opensbi/sifive-fu540/" > ${S}/debian/install
 }