Automatically patch linux backports to build against linux-okreader
This commit is contained in:
parent
f5eefd5f78
commit
c34e0f1f39
1
build.sh
1
build.sh
@ -86,6 +86,7 @@ compile_linux_modules() {
|
||||
make -j$(($(nproc)+1)) modules
|
||||
cd ../../
|
||||
|
||||
patch -N -p1 < src/linux_backports.patch
|
||||
cd src/backports-3.14.22-1
|
||||
KLIB_BUILD=../linux/ make defconfig-brcmfmac
|
||||
KLIB_BUILD=../linux/ make -j$(($(nproc)+1))
|
||||
|
13
src/linux_backports.patch
Normal file
13
src/linux_backports.patch
Normal file
@ -0,0 +1,13 @@
|
||||
--- a/src/backports-3.14.22-1/backport-include/linux/compat.h
|
||||
+++ b/src/backports-3.14.22-1/backport-include/linux/compat.h
|
||||
@@ -14,8 +14,8 @@
|
||||
#endif
|
||||
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0))
|
||||
-#define compat_put_timespec LINUX_BACKPORT(compat_put_timespec)
|
||||
-extern int compat_put_timespec(const struct timespec *, void __user *);
|
||||
+//#define compat_put_timespec LINUX_BACKPORT(compat_put_timespec)
|
||||
+//extern int compat_put_timespec(const struct timespec *, void __user *);
|
||||
#endif
|
||||
|
||||
#endif /* __BACKPORT_COMPAT_H */
|
Loading…
Reference in New Issue
Block a user