From: Jan Kiszka <jan.kiszka@siemens.com>
To: isar-users <isar-users@googlegroups.com>
Cc: "Gerhold, Steffen (CT RDA IOT SES-DE)" <steffen.gerhold@siemens.com>
Subject: [PATCH v2] sdkchroot: Fix dependency for RISC-V
Date: Thu, 19 Nov 2020 09:50:02 +0100 [thread overview]
Message-ID: <f30c8893-3397-70d1-bccd-292aabfe245c@siemens.com> (raw)
From: Jan Kiszka <jan.kiszka@siemens.com>
RISC-V needs our crossbuild-essential-riscv64 package, and that needs to
be added to the dependency list of the sdkchroot, like already
the case for dpkg-base.bbclass.
While we could so far rely on buildchroot-host having installed the
required real dependencies of crossbuild-essential-riscv64 already, this
is not the case for the sdkchroot. So add those dependencies to our
replacement package.
Reported-by Steffen Gerhold <steffen.gerhold@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
Changes in v2:
- actually test the sdk and ensure that it installs the cross compiler
..._0.1-isar.bb => crossbuild-essential-riscv64_0.2-isar.bb} | 5 +++++
meta/recipes-devtools/sdkchroot/sdkchroot.bb | 2 ++
2 files changed, 7 insertions(+)
rename meta/recipes-devtools/crossbuild-essential-riscv64/{crossbuild-essential-riscv64_0.1-isar.bb => crossbuild-essential-riscv64_0.2-isar.bb} (63%)
diff --git a/meta/recipes-devtools/crossbuild-essential-riscv64/crossbuild-essential-riscv64_0.1-isar.bb b/meta/recipes-devtools/crossbuild-essential-riscv64/crossbuild-essential-riscv64_0.2-isar.bb
similarity index 63%
rename from meta/recipes-devtools/crossbuild-essential-riscv64/crossbuild-essential-riscv64_0.1-isar.bb
rename to meta/recipes-devtools/crossbuild-essential-riscv64/crossbuild-essential-riscv64_0.2-isar.bb
index eeefba92..be06688f 100644
--- a/meta/recipes-devtools/crossbuild-essential-riscv64/crossbuild-essential-riscv64_0.1-isar.bb
+++ b/meta/recipes-devtools/crossbuild-essential-riscv64/crossbuild-essential-riscv64_0.2-isar.bb
@@ -9,3 +9,8 @@ inherit dpkg-raw
DPKG_ARCH = "all"
ISAR_CROSS_BUILD = "0"
+
+DEBIAN_DEPENDS = " \
+ gcc-riscv64-linux-gnu, \
+ g++-riscv64-linux-gnu, \
+ dpkg-cross"
diff --git a/meta/recipes-devtools/sdkchroot/sdkchroot.bb b/meta/recipes-devtools/sdkchroot/sdkchroot.bb
index c96cc772..893b2877 100644
--- a/meta/recipes-devtools/sdkchroot/sdkchroot.bb
+++ b/meta/recipes-devtools/sdkchroot/sdkchroot.bb
@@ -19,6 +19,8 @@ SDK_INSTALL ?= ""
DEPENDS += "${SDK_INSTALL}"
+DEPENDS_append_riscv64 = "${@' crossbuild-essential-riscv64' if d.getVar('ISAR_CROSS_COMPILE', True) == '1' and d.getVar('PN') != 'crossbuild-essential-riscv64' else ''}"
+
TOOLCHAIN = "crossbuild-essential-${DISTRO_ARCH}"
TOOLCHAIN_${HOST_ARCH} = "build-essential"
TOOLCHAIN_i386 = "build-essential"
--
2.26.2
next reply other threads:[~2020-11-19 8:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-19 8:50 Jan Kiszka [this message]
2020-11-26 15:59 ` Anton Mikanovich
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=f30c8893-3397-70d1-bccd-292aabfe245c@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=steffen.gerhold@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