Przeglądaj źródła

Add an override for surface-sam builtin modules.

Blaž Hrastnik 5 lat temu
rodzic
commit
24bbf8e028

+ 0 - 1
pkg/arch/README.md

@@ -27,4 +27,3 @@ Primarily tested on Arch Linux + Surface Laptop 13" (Intel).
   makepkg -s
   makepkg -s
   sudo pacman -U *.pkg.tar.*
   sudo pacman -U *.pkg.tar.*
   ```
   ```
-  You will need to blacklist the builtin modules.

+ 8 - 1
pkg/arch/surface-aggregator-module/PKGBUILD

@@ -15,12 +15,19 @@ _srcname=source
 _srcbranch='master'
 _srcbranch='master'
 source=(
 source=(
   "$_srcname::git+https://github.com/linux-surface/surface-aggregator-module.git#branch=$_srcbranch"
   "$_srcname::git+https://github.com/linux-surface/surface-aggregator-module.git#branch=$_srcbranch"
+  surface-sam.conf
+)
+sha256sums=(
+  'SKIP'
+  'a1fe1e49bfcbb7a2e24ceeeb1fc0e8f36d5cc577b4ef5ae17f15a007a91e2860'
 )
 )
-sha256sums=('SKIP')
 
 
 package() {
 package() {
   cd ${srcdir}/${_srcname}/
   cd ${srcdir}/${_srcname}/
 
 
   install -d "${pkgdir}"/usr/src/${_modname}-${_modver}/
   install -d "${pkgdir}"/usr/src/${_modname}-${_modver}/
   cp -t "${pkgdir}"/usr/src/${_modname}-${_modver}/ module/*
   cp -t "${pkgdir}"/usr/src/${_modname}-${_modver}/ module/*
+
+  # blacklist the precompiled modules
+  install -Dt "${pkgdir}"/etc/modprobe.d/surface-sam.conf -m644 surface-sam.conf
 }
 }

+ 9 - 0
pkg/arch/surface-aggregator-module/surface-sam.conf

@@ -0,0 +1,9 @@
+blacklist surface_sam_ssh
+blacklist surface_sam_san
+blacklist surface_sam_vhf
+blacklist surface_sam_dtx
+blacklist surface_sam_hps
+blacklist surface_sam_sid
+blacklist surface_sam_sid_gpelid
+blacklist surface_sam_sid_perfmode
+blacklist surface_sam_sid_vhf