summaryrefslogtreecommitdiff
path: root/v4l/scripts/fix_kconfig.pl
blob: 368a8faca51336f84d0a42457466c0e2073ec3e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl
use strict;

my $need_changes = 0;
my $out;

open IN, '<.config';
while (<IN>) {
	s/CONFIG_VIDEO_CX88_MPEG=y/CONFIG_VIDEO_CX88_MPEG=m/ and $need_changes=1;
	$out .= $_;
}
close IN;

if ($need_changes) {
	printf("There's a known bug with the building system with this kernel. Working around.\n");
	open OUT, '>.config';
	print OUT $out;
	close OUT;
}