diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2023-01-23 13:23:29 +0100 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2023-01-25 12:01:16 +0100 |
commit | 944265347a81eadc3354731d5f739a6a4fdf6e7b (patch) | |
tree | 1d52fff22593f4f8af8e0ef890f12305e53a0f5c /target | |
parent | 8b46a263ab4afaf9857f0d29d369c2eefbf8a4f4 (diff) | |
download | upstream-944265347a81eadc3354731d5f739a6a4fdf6e7b.tar.gz upstream-944265347a81eadc3354731d5f739a6a4fdf6e7b.tar.bz2 upstream-944265347a81eadc3354731d5f739a6a4fdf6e7b.zip |
kernel: expose (unhide) CONFIG_ASN1 as ksmbd requirement
OpenWrt provides kmod-asn1-decoder for CONFIG_ASN1 but selecting it
doesn't really work as expected. Kernel symbol is hidden and can be
actually selected only as a dependency. That works well for in-kernel
stuff but fails for external modules requiring ASN1 like ksmbd.
Modify kernel Kconfig to make CONFIG_ASN1 always selectable. It's
required to satisfy ksmbd dependencies cleanly (without hack like
selecting unrelated modules).
Link: http://lists.openwrt.org/pipermail/openwrt-devel/2023-January/040298.html
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/generic/hack-5.4/252-init-Kconfig-make-ASN1-explicitly-selectable-unhide-.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/target/linux/generic/hack-5.4/252-init-Kconfig-make-ASN1-explicitly-selectable-unhide-.patch b/target/linux/generic/hack-5.4/252-init-Kconfig-make-ASN1-explicitly-selectable-unhide-.patch new file mode 100644 index 0000000000..62bf7f77d5 --- /dev/null +++ b/target/linux/generic/hack-5.4/252-init-Kconfig-make-ASN1-explicitly-selectable-unhide-.patch @@ -0,0 +1,30 @@ +From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl> +Date: Mon, 23 Jan 2023 12:24:12 +0100 +Subject: [PATCH] init/Kconfig: make ASN1 explicitly selectable (unhide it) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Kernel developers assumed ASN1 symbol may be needed only by in-kernel +code and they made it hidden. It is actually used by ksmbd version being +developed in GitHub (there is also upstream one since Linux 5.15). + +To allow building ksmbd from GitHub cleanly allow selecting its +dependency (CONFIG_ASN1) explicitly by unhiding it. + +Signed-off-by: Rafał Miłecki <rafal@milecki.pl> +--- + init/Kconfig | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/init/Kconfig ++++ b/init/Kconfig +@@ -2249,7 +2249,7 @@ config PADATA + bool + + config ASN1 +- tristate ++ tristate "ASN.1 grammar compiler" + help + Build a simple ASN.1 grammar compiler that produces a bytecode output + that can be interpreted by the ASN.1 stream decoder and used to |