kernel-5.7.13
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c bbswitch-0.8.new/bbswitch.c
|
||||
--- bbswitch-0.8.orig/bbswitch.c 2013-12-04 21:22:06.000000000 -0200
|
||||
+++ bbswitch-0.8.new/bbswitch.c 2020-04-01 12:02:35.518754892 -0300
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <linux/suspend.h>
|
||||
#include <linux/seq_file.h>
|
||||
#include <linux/pm_runtime.h>
|
||||
+#include <linux/version.h>
|
||||
|
||||
#define BBSWITCH_VERSION "0.8"
|
||||
|
||||
@@ -375,13 +376,23 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
|
||||
+static struct proc_ops bbswitch_fops = {
|
||||
+ .proc_open = bbswitch_proc_open,
|
||||
+ .proc_read = seq_read,
|
||||
+ .proc_write = bbswitch_proc_write,
|
||||
+ .proc_lseek = seq_lseek,
|
||||
+ .proc_release= single_release
|
||||
+};
|
||||
+#else
|
||||
static struct file_operations bbswitch_fops = {
|
||||
.open = bbswitch_proc_open,
|
||||
.read = seq_read,
|
||||
.write = bbswitch_proc_write,
|
||||
.llseek = seq_lseek,
|
||||
.release= single_release
|
||||
-};
|
||||
+ };
|
||||
+#endif
|
||||
|
||||
static struct notifier_block nb = {
|
||||
.notifier_call = &bbswitch_pm_handler
|
||||
@@ -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>
|
||||
@@ -13,17 +13,18 @@
|
||||
<Summary>Kernel module allowing to switch dedicated graphics card on Optimus laptops</Summary>
|
||||
<Description>kernel module allowing to switch dedicated graphics card on Optimus laptops</Description>
|
||||
<BuildDependencies>
|
||||
<Dependency version="5.6.19">kernel-module-headers</Dependency>
|
||||
<Dependency version="5.7.13">kernel-module-headers</Dependency>
|
||||
</BuildDependencies>
|
||||
<Archive sha1sum="e282ee682d794e3962baa4dead01917c42571e78" type="targz">https://github.com/Bumblebee-Project/bbswitch/archive/v0.8.tar.gz</Archive>
|
||||
<Patches>
|
||||
<Patch level="1">kernel56.patch</Patch>
|
||||
<Patch level="1">0001-proc_ops-struct.patch</Patch>
|
||||
<Patch level="1">0002-kernel-5.7.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
<Package>
|
||||
<Name>module-bbswitch</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency version="5.6.19">kernel</Dependency>
|
||||
<Dependency version="5.7.13">kernel</Dependency>
|
||||
<Dependency release="current">bbswitch-common</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
@@ -61,6 +62,13 @@
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="35">
|
||||
<Date>2020-08-05</Date>
|
||||
<Version>0.8</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>İdris Kalp</Name>
|
||||
<Email>idriskalp@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="34">
|
||||
<Date>2020-06-17</Date>
|
||||
<Version>0.8</Version>
|
||||
|
||||
Reference in New Issue
Block a user