Skip to content

Commit 414a10e

Browse files
committed
fix drivers
1 parent 21ca766 commit 414a10e

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

mellanox-mstflint/pkg.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ shell: /bin/bash
44
dependencies:
55
- stage: base
66
- stage: kernel-build
7+
- image: "{{ .LLVM }}"
78
steps:
89
- sources:
910
- url: https://github.com/Mellanox/mstflint/releases/download/v{{ .mellanox_mstflint_version }}/kernel-mstflint-{{ .mellanox_mstflint_version }}.tar.gz
@@ -17,15 +18,15 @@ steps:
1718
tar -xzf kernel-mstflint.tgz --strip-components=1
1819
build:
1920
- |
20-
make KPVER=$(cat /src/include/config/kernel.release) KSRC=/src
21+
make LLVM=1 KPVER=$(cat /src/include/config/kernel.release) KSRC=/src
2122
install:
2223
- |
2324
mkdir -p /rootfs/usr/lib/modules/$(cat /src/include/config/kernel.release)/
2425
cp /src/modules.order /rootfs/usr/lib/modules/$(cat /src/include/config/kernel.release)/
2526
cp /src/modules.builtin /rootfs/usr/lib/modules/$(cat /src/include/config/kernel.release)/
2627
cp /src/modules.builtin.modinfo /rootfs/usr/lib/modules/$(cat /src/include/config/kernel.release)/
2728
28-
make -C /src M=$PWD modules_install INSTALL_MOD_PATH=/rootfs/usr INSTALL_MOD_DIR=extras INSTALL_MOD_STRIP=1
29+
make LLVM=1 -C /src M=$PWD modules_install INSTALL_MOD_PATH=/rootfs/usr INSTALL_MOD_DIR=extras INSTALL_MOD_STRIP=1
2930
test:
3031
- |
3132
# https://www.kernel.org/doc/html/v4.15/admin-guide/module-signing.html#signed-modules-and-stripping

px-fuse/patches/prototypes.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/dev.c b/dev.c
2+
index 7cd8304..0473244 100755
3+
--- a/dev.c
4+
+++ b/dev.c
5+
@@ -69,7 +69,7 @@ static struct fuse_req *__fuse_request_alloc(gfp_t flags)
6+
return req;
7+
}
8+
9+
-struct fuse_req *fuse_request_alloc()
10+
+struct fuse_req *fuse_request_alloc(void)
11+
{
12+
return __fuse_request_alloc(GFP_NOIO);
13+
}

px-fuse/pkg.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ shell: /bin/bash
44
dependencies:
55
- stage: base
66
- stage: kernel-build
7+
- image: "{{ .LLVM }}"
78
steps:
89
- sources:
910
- url: https://github.com/portworx/px-fuse/archive/{{ .px_fuse_ref }}.tar.gz
@@ -17,20 +18,21 @@ steps:
1718
tar xf px-fuse.tar.gz --strip-components=1
1819
- |
1920
patch -p1 < /pkg/patches/idr.patch
21+
patch -p1 < /pkg/patches/prototypes.patch
2022
- |
2123
autoreconf
2224
./configure
2325
build:
2426
- |
25-
make -j $(nproc) KERNELPATH=/src
27+
make LLVM=1 -j $(nproc) KERNELPATH=/src
2628
install:
2729
- |
2830
mkdir -p /rootfs/usr/lib/modules/$(cat /src/include/config/kernel.release)/
2931
cp /src/modules.order /rootfs/usr/lib/modules/$(cat /src/include/config/kernel.release)/
3032
cp /src/modules.builtin /rootfs/usr/lib/modules/$(cat /src/include/config/kernel.release)/
3133
cp /src/modules.builtin.modinfo /rootfs/usr/lib/modules/$(cat /src/include/config/kernel.release)/
3234
33-
make -C /src M=$(pwd) modules_install INSTALL_MOD_PATH=/rootfs/usr INSTALL_MOD_DIR=extras INSTALL_MOD_STRIP=1
35+
make LLVM=1 -C /src M=$(pwd) modules_install INSTALL_MOD_PATH=/rootfs/usr INSTALL_MOD_DIR=extras INSTALL_MOD_STRIP=1
3436
test:
3537
- |
3638
# https://www.kernel.org/doc/html/v4.15/admin-guide/module-signing.html#signed-modules-and-stripping

0 commit comments

Comments
 (0)