From: Alexey 'Alexxy' Shvetsov <alexxy@gentoo.org>
To: gentoo-dev <gentoo-dev@lists.gentoo.org>
Subject: [gentoo-dev] sys-kernel/gentoo-kernel on riscv
Date: Mon, 03 Jul 2023 14:43:16 +0300 [thread overview]
Message-ID: <5687644.DvuYhMxLoT@t490> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 214 bytes --]
Hi!
In order to use sys-kernel/gentoo-kernel with enabled savedconfig on riscv (i
tested on starfive2) kernel-build eclass should be modifyed as in included
patches.
--
Best regards,
Alexey 'Alexxy' Shvetsov
[-- Attachment #1.2: 0002-eclass-kernel-build.eclass-should-depend-on-dtc-for-.patch --]
[-- Type: text/x-patch, Size: 735 bytes --]
From 85ce6d67a537ddbfe19fc817cde687dd99ebec0a Mon Sep 17 00:00:00 2001
From: Alexey Shvetsov <alexxy@gentoo.org>
Date: Mon, 3 Jul 2023 14:35:33 +0300
Subject: [PATCH 2/2] eclass/kernel-build.eclass: should depend on dtc for arm*
and riscv
Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
---
eclass/kernel-build.eclass | 3 +++
1 file changed, 3 insertions(+)
diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass
index 2123f165846a..0c8eaf3c1cd5 100644
--- a/eclass/kernel-build.eclass
+++ b/eclass/kernel-build.eclass
@@ -39,6 +39,9 @@ BDEPEND="
sys-devel/flex
virtual/libelf
app-alternatives/yacc
+ arm? ( sys-apps/dtc )
+ arm64? ( sys-apps/dtc )
+ riscv? ( sys-apps/dtc )
"
IUSE="+strip"
--
2.41.0
[-- Attachment #1.3: 0001-eclass-kernel-build.eclass-riscv-also-need-dtbs.patch --]
[-- Type: text/x-patch, Size: 1108 bytes --]
From d1ca6ded9d043ac06c55cd20213cad9b0ef89b27 Mon Sep 17 00:00:00 2001
From: Alexey Shvetsov <alexxy@gentoo.org>
Date: Mon, 3 Jul 2023 14:34:27 +0300
Subject: [PATCH 1/2] eclass/kernel-build.eclass: riscv also need dtbs
Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
---
eclass/kernel-build.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass
index 963e020b3746..2123f165846a 100644
--- a/eclass/kernel-build.eclass
+++ b/eclass/kernel-build.eclass
@@ -188,7 +188,7 @@ kernel-build_src_test() {
debug-print-function ${FUNCNAME} "${@}"
local targets=( modules_install )
# on arm or arm64 you also need dtb
- if use arm || use arm64; then
+ if use arm || use arm64 || use riscv; then
targets+=( dtbs_install )
fi
@@ -216,7 +216,7 @@ kernel-build_src_install() {
# on what kind of installkernel is installed
local targets=( modules_install )
# on arm or arm64 you also need dtb
- if use arm || use arm64; then
+ if use arm || use arm64 || use riscv; then
targets+=( dtbs_install )
fi
--
2.41.0
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 618 bytes --]
next reply other threads:[~2023-07-03 11:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-03 11:43 Alexey 'Alexxy' Shvetsov [this message]
2023-07-03 11:52 ` [gentoo-dev] sys-kernel/gentoo-kernel on riscv Michał Górny
2023-07-03 13:54 ` Alexey 'Alexxy' Shvetsov
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=5687644.DvuYhMxLoT@t490 \
--to=alexxy@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/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