public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] sys-kernel/gentoo-kernel on riscv
@ 2023-07-03 11:43 Alexey 'Alexxy' Shvetsov
  2023-07-03 11:52 ` Michał Górny
  0 siblings, 1 reply; 3+ messages in thread
From: Alexey 'Alexxy' Shvetsov @ 2023-07-03 11:43 UTC (permalink / raw
  To: gentoo-dev


[-- 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 --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] sys-kernel/gentoo-kernel on riscv
  2023-07-03 11:43 [gentoo-dev] sys-kernel/gentoo-kernel on riscv Alexey 'Alexxy' Shvetsov
@ 2023-07-03 11:52 ` Michał Górny
  2023-07-03 13:54   ` Alexey 'Alexxy' Shvetsov
  0 siblings, 1 reply; 3+ messages in thread
From: Michał Górny @ 2023-07-03 11:52 UTC (permalink / raw
  To: gentoo-dev

On Mon, 2023-07-03 at 14:43 +0300, Alexey 'Alexxy' Shvetsov wrote:
> 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. 
> 

WFM.  Feel free to push it straight into ::gentoo after waiting some
time for more comments.

-- 
Best regards,
Michał Górny



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] sys-kernel/gentoo-kernel on riscv
  2023-07-03 11:52 ` Michał Górny
@ 2023-07-03 13:54   ` Alexey 'Alexxy' Shvetsov
  0 siblings, 0 replies; 3+ messages in thread
From: Alexey 'Alexxy' Shvetsov @ 2023-07-03 13:54 UTC (permalink / raw
  To: gentoo-dev; +Cc: Michał Górny

[-- Attachment #1: Type: text/plain, Size: 612 bytes --]

В письме от понедельник, 3 июля 2023 г. 14:52:21 MSK пользователь Michał Górny 
написал:
> On Mon, 2023-07-03 at 14:43 +0300, Alexey 'Alexxy' Shvetsov wrote:
> > 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.
> 
> WFM.  Feel free to push it straight into ::gentoo after waiting some
> time for more comments.

Ok. Pushing it, since there were no objections. And it shouldnt hurt anyone


-- 
Best regards,
Alexey 'Alexxy' Shvetsov

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-03 13:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-03 11:43 [gentoo-dev] sys-kernel/gentoo-kernel on riscv Alexey 'Alexxy' Shvetsov
2023-07-03 11:52 ` Michał Górny
2023-07-03 13:54   ` Alexey 'Alexxy' Shvetsov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox