[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/13: gnu: linux: Allow kconfig options to be strings
From: |
guix-commits |
Subject: |
05/13: gnu: linux: Allow kconfig options to be strings |
Date: |
Tue, 5 Apr 2022 14:43:10 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 0748d3febd315270335c914a4bad44d5e6400036
Author: antlers <autumnalantlers@gmail.com>
AuthorDate: Mon Apr 4 11:26:09 2022 -0700
gnu: linux: Allow kconfig options to be strings
* gnu/packages/linux.scm (config->string): add a clause handling strings
Allows for the declarative configuration of kconfig options which accept
strings, such as CONFIG_MODULE_SIG_KEY.
I've enclosed the given string in quotes, but don't do any kind of
escaping. See the kernel mailing list for the current state of escaped
strings upstream:
https://patchwork.kernel.org/project/linux-kbuild/patch/1431003982-992-1-git-send-email-sr@denx.de/
Apologies to those with double-quotes or backslashes in their
CONFIG_SYSTEM_*_KEYS.
Signed-off-by: antlers <autumnalantlers@gmail.com>
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/linux.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index ec68f5c57e..9a81fc4a3d 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -767,7 +767,9 @@ for ARCH and optionally VARIANT, or #f if there is no such
configuration."
((option . #t)
(string-append option "=y"))
((option . #f)
- (string-append option "=n")))
+ (string-append option "=n"))
+ ((option . string)
+ (string-append option "=\"" string "\"")))
options)
"\n"))
- branch master updated (66177c2b87 -> e777c3e34c), guix-commits, 2022/04/05
- 03/13: doc: Update the sample yggdrasil-private.conf., guix-commits, 2022/04/05
- 06/13: gnu: python-dotenv: Update to 0.20.0., guix-commits, 2022/04/05
- 08/13: gnu: python-w3lib: Fix build., guix-commits, 2022/04/05
- 02/13: gnu: curlie: Update to 1.6.9, guix-commits, 2022/04/05
- 01/13: gnu: xmonad-next: Change #:phases to gexp., guix-commits, 2022/04/05
- 04/13: gnu: celluloid: Update to 0.23., guix-commits, 2022/04/05
- 05/13: gnu: linux: Allow kconfig options to be strings,
guix-commits <=
- 07/13: gnu: python-gst: Fix the concatenation of install path., guix-commits, 2022/04/05
- 09/13: gnu: pantheon-calculator: Update to 1.7.2., guix-commits, 2022/04/05
- 10/13: gnu: phodav: Use libsoup 2 instead of libsoup 3., guix-commits, 2022/04/05
- 12/13: services: messaging: Fix two copy-paste mistakes; avoid warnings., guix-commits, 2022/04/05
- 11/13: gnu: plocate: Build with "--sharedstatedir=/var"., guix-commits, 2022/04/05
- 13/13: gnu: l2md: Update to 9db252bc., guix-commits, 2022/04/05