all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#55805] [PATCH] gnu: linux-libre: enable hidraw by default
@ 2022-06-05 12:02 Tom Fitzhenry
  2022-06-05 12:23 ` Pavel Shlyak
  2022-06-05 13:15 ` Tobias Geerinckx-Rice via Guix-patches via
  0 siblings, 2 replies; 4+ messages in thread
From: Tom Fitzhenry @ 2022-06-05 12:02 UTC (permalink / raw)
  To: 55805; +Cc: Tom Fitzhenry

* gnu/packages/linux.scm (%default-extra-linux-options): Enable CONFIG_HIDRAW.

hidraw is needed to create /dev/hidraw* devices, commonly used for U2F
devices, e.g. via libu2f-host.

CONFIG_HIDRAW is not enabled in the mainline arm64 defconfig, but is enabled
on:
* the mainline x86_64 defconfig
* gnu/packages/aux-files/linux-libre/*arm64.conf

HIDRAW's Kconfig documentation advises "If unsure, say Y."[0]

Tested by compiling and running linux-libre-arm64-generic, and observing that
/dev/hidraw* devices are created, and SSH-via-U2F now works.

0. Linux kernel, drivers/hid/Kconfig

Link: https://www.kernel.org/doc/Documentation/hid/hidraw.txt
Signed-off-by: Tom Fitzhenry <tom@tom-fitzhenry.me.uk>
---
 gnu/packages/linux.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 4fc0ac16af..12e0db23c4 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -687,6 +687,8 @@ (define %default-extra-linux-options
     ("CONFIG_MEMCG_KMEM" . #t)
     ("CONFIG_CPUSETS" . #t)
     ("CONFIG_PROC_PID_CPUSET" . #t)
+    ;; Enable hidraw by default
+    ("CONFIG_HIDRAW" . #t)
     ;; Allow disk encryption by default
     ("CONFIG_DM_CRYPT" . m)
     ;; Modules required for initrd:

base-commit: 8334e7c36ba7266fdbcf783d80c02a072cf1347b
-- 
2.36.1





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

* [bug#55805] [PATCH] gnu: linux-libre: enable hidraw by default
  2022-06-05 12:02 [bug#55805] [PATCH] gnu: linux-libre: enable hidraw by default Tom Fitzhenry
@ 2022-06-05 12:23 ` Pavel Shlyak
  2022-06-05 13:15 ` Tobias Geerinckx-Rice via Guix-patches via
  1 sibling, 0 replies; 4+ messages in thread
From: Pavel Shlyak @ 2022-06-05 12:23 UTC (permalink / raw)
  To: 55805

Nice idea. Good to merge.




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

* [bug#55805] [PATCH] gnu: linux-libre: enable hidraw by default
  2022-06-05 12:02 [bug#55805] [PATCH] gnu: linux-libre: enable hidraw by default Tom Fitzhenry
  2022-06-05 12:23 ` Pavel Shlyak
@ 2022-06-05 13:15 ` Tobias Geerinckx-Rice via Guix-patches via
  2022-06-05 13:46   ` Tom Fitzhenry
  1 sibling, 1 reply; 4+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2022-06-05 13:15 UTC (permalink / raw)
  To: Tom Fitzhenry; +Cc: 55805

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

Hi Tom,

Tom Fitzhenry 写道:
> +    ;; Enable hidraw by default
> +    ("CONFIG_HIDRAW" . #t)

I agree with the content of this change, but why add it here & not 
to the kernel configuration aux-files?

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

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

* [bug#55805] [PATCH] gnu: linux-libre: enable hidraw by default
  2022-06-05 13:15 ` Tobias Geerinckx-Rice via Guix-patches via
@ 2022-06-05 13:46   ` Tom Fitzhenry
  0 siblings, 0 replies; 4+ messages in thread
From: Tom Fitzhenry @ 2022-06-05 13:46 UTC (permalink / raw)
  To: 55805; +Cc: me

Tobias Geerinckx-Rice via Guix-patches via <guix-patches@gnu.org>
writes:

> I agree with the content of this change, but why add it here & not to
> the kernel configuration aux-files?

My understanding of gnu/packages/linux.scm is that kernels come in two
forms:

i. "-generic" kernels, which build their .config via mainline defconfig +
  #:extra-options.
  
ii. non "-generic" kernels, which use "#:configuration-file
  kernel-config" to use the config from aux-files.

This patch solely addresses (i) kernels, since (ii) kernels already have
CONFIG_HIDRAW, as we can see by inspecting the aux-files:

$ ls gnu/packages/aux-files/linux-libre/* | wc -l
25
$ grep CONFIG_HIDRAW=y gnu/packages/aux-files/linux-libre/* | wc -l
25




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

end of thread, other threads:[~2022-06-05 13:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-05 12:02 [bug#55805] [PATCH] gnu: linux-libre: enable hidraw by default Tom Fitzhenry
2022-06-05 12:23 ` Pavel Shlyak
2022-06-05 13:15 ` Tobias Geerinckx-Rice via Guix-patches via
2022-06-05 13:46   ` Tom Fitzhenry

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.