X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/blobdiff_plain/c6eade91d55f10003bb38e61779fef92f8d60c02..94668592a79d7dedf67e077808509230d15dd37a:/patch_kernel_config.pl?ds=sidebyside diff --git a/patch_kernel_config.pl b/patch_kernel_config.pl index 3c08b36..6b4c701 100644 --- a/patch_kernel_config.pl +++ b/patch_kernel_config.pl @@ -59,6 +59,16 @@ my %asahi_options = ( 'CONFIG_FB_EFI' => 'y', 'CONFIG_BACKLIGHT_CLASS_DEVICE' => 'y', 'CONFIG_BACKLIGHT_GPIO' => 'm', + 'CONFIG_TYPEC_TPS6598X' => 'y', + 'CONFIG_BT_HCIBCM4377' => 'm', + 'CONFIG_HID_DOCKCHANNEL' => 'm', + 'CONFIG_APPLE_DOCKCHANNEL' => 'm', + 'CONFIG_SND_SOC_CS42L84' => 'm', + 'CONFIG_SND_SOC_TAS2780' => 'm', + 'CONFIG_USB_XHCI_PCI_ASMEDIA' => 'y', + 'CONFIG_APPLE_M1_CPU_PMU' => 'y', + 'CONFIG_SND_SOC_CS42L83' => 'm', + 'CONFIG_DRM_APPLE' => 'y', ); my %debian_options; @@ -70,13 +80,18 @@ for (@lines) { } for my $o (keys %asahi_options) { - if (not exists $debian_options{$o}) { + if ((not exists $debian_options{$o}) && $asahi_options{$o} ne 'n') { print "$o missing, adding\n"; $debian_options{$o} = $asahi_options{$o}; + } elsif ((exists $debian_options{$o}) && ($asahi_options{$o} eq 'n')) { + print "$o present, removing\n"; + delete $debian_options{$o}; + } elsif ((exists $asahi_options{$o} && exists $debian_options{$o}) && ($debian_options{$o} ne $asahi_options{$o})) { + print "$o different\n"; } } -open(CONFIG, '>', 'config') || die; +open(CONFIG, '>', 'config.new') || die; for (keys %debian_options) { print CONFIG $_ . '=' . $debian_options{$_} . "\n"; }