diff mbox series

media-build: fix menuconfig usage for kernel >= 5.13.0

Message ID 20221025152902.14298-1-tmn505@terefe.re
State New
Headers show
Series media-build: fix menuconfig usage for kernel >= 5.13.0 | expand

Commit Message

Tomasz Maciej Nowak Oct. 25, 2022, 3:29 p.m. UTC
From: Tomasz Maciej Nowak <tmn505@gmail.com>

Because of 6dd85ff178cd ("kconfig: change "modules" from sub-option to
first-level attribute") in Linux kernel the "option" key-word is not
recognised anymore. That causes an abort when menuconfig is invoked.
Fix it by adding proper attribute depending on kernel version the
media_build is used against.

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
---
 v4l/scripts/make_kconfig.pl | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Comments

Hans Verkuil Nov. 4, 2022, 10:01 a.m. UTC | #1
Hi Tomasz,

The media_build system is no longer maintained, see

https://lore.kernel.org/linux-media/32288c08-3220-25ce-36e2-7c98ff81a264@xs4all.nl/

So I'm rejecting this patch as it is no longer relevant.

Regards,

	Hans

On 25/10/2022 17:29, Tomasz Maciej Nowak wrote:
> From: Tomasz Maciej Nowak <tmn505@gmail.com>
> 
> Because of 6dd85ff178cd ("kconfig: change "modules" from sub-option to
> first-level attribute") in Linux kernel the "option" key-word is not
> recognised anymore. That causes an abort when menuconfig is invoked.
> Fix it by adding proper attribute depending on kernel version the
> media_build is used against.
> 
> Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
> ---
>  v4l/scripts/make_kconfig.pl | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/v4l/scripts/make_kconfig.pl b/v4l/scripts/make_kconfig.pl
> index 69f0c67a37b1..76fbf8a168bc 100755
> --- a/v4l/scripts/make_kconfig.pl
> +++ b/v4l/scripts/make_kconfig.pl
> @@ -651,7 +651,11 @@ while (my ($key, $deps) = each %depend) {
>  	print OUT "# Needed by ", join(', ', keys %$deps), "\n";
>  	print OUT "config $key\n\ttristate\n";
>  	print OUT "\tdefault ", qw(n m y)[$kernopts{$key}], "\n\n";
> -	print OUT "\toption modules\n" if ($key eq "MODULES");
> +	if (cmp_ver($kernver, '5.13.0') < 0) {
> +		print OUT "\toption modules\n" if ($key eq "MODULES");
> +	} else {
> +		print OUT "\tmodules\n" if ($key eq "MODULES");
> +	}
>  }
>  close OUT;
>
diff mbox series

Patch

diff --git a/v4l/scripts/make_kconfig.pl b/v4l/scripts/make_kconfig.pl
index 69f0c67a37b1..76fbf8a168bc 100755
--- a/v4l/scripts/make_kconfig.pl
+++ b/v4l/scripts/make_kconfig.pl
@@ -651,7 +651,11 @@  while (my ($key, $deps) = each %depend) {
 	print OUT "# Needed by ", join(', ', keys %$deps), "\n";
 	print OUT "config $key\n\ttristate\n";
 	print OUT "\tdefault ", qw(n m y)[$kernopts{$key}], "\n\n";
-	print OUT "\toption modules\n" if ($key eq "MODULES");
+	if (cmp_ver($kernver, '5.13.0') < 0) {
+		print OUT "\toption modules\n" if ($key eq "MODULES");
+	} else {
+		print OUT "\tmodules\n" if ($key eq "MODULES");
+	}
 }
 close OUT;