[arch-commits] Commit in bbswitch/trunk (0002-kernel-5.7.patch PKGBUILD)

Jan Steffens heftig at archlinux.org
Tue Jun 2 01:25:48 UTC 2020


    Date: Tuesday, June 2, 2020 @ 01:25:47
  Author: heftig
Revision: 637929

0.8-324: linux 5.7.arch1-1

Added:
  bbswitch/trunk/0002-kernel-5.7.patch
Modified:
  bbswitch/trunk/PKGBUILD

-----------------------+
 0002-kernel-5.7.patch |   11 +++++++++++
 PKGBUILD              |   14 +++++++++-----
 2 files changed, 20 insertions(+), 5 deletions(-)

Added: 0002-kernel-5.7.patch
===================================================================
--- 0002-kernel-5.7.patch	                        (rev 0)
+++ 0002-kernel-5.7.patch	2020-06-02 01:25:47 UTC (rev 637929)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c	2020-06-02 00:34:20.370571802 +0000
++++ bbswitch-0.8-5.7/bbswitch.c	2020-06-02 00:35:18.161403639 +0000
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include <linux/pci.h>
++#include <linux/proc_fs.h>
+ #include <linux/acpi.h>
+ #include <linux/module.h>
+ #include <asm/uaccess.h>

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-02 01:25:45 UTC (rev 637928)
+++ PKGBUILD	2020-06-02 01:25:47 UTC (rev 637929)
@@ -5,7 +5,7 @@
 pkgbase=bbswitch
 pkgname=(bbswitch bbswitch-dkms)
 pkgver=0.8
-pkgrel=323
+pkgrel=324
 pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus laptops"
 arch=('x86_64')
 url="http://github.com/Bumblebee-Project/bbswitch"
@@ -12,13 +12,15 @@
 license=('GPL')
 makedepends=('linux-headers')
 source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz"
-        "0001-proc_ops-struct.patch")
+        0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
 sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
-            '993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1')
+            '993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+            '2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
 
 prepare() {
-    cd ${pkgbase}-${pkgver}
-    patch -Np1 < $srcdir/0001-proc_ops-struct.patch
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
 }
 
 build() {
@@ -43,3 +45,5 @@
   cd ${pkgbase}-${pkgver}
   install -Dt "${pkgdir}/usr/src/${pkgbase}-${pkgver}" -m644 Makefile bbswitch.c dkms/dkms.conf
 }
+
+# vim:set sw=2 noet:


More information about the arch-commits mailing list