Skip to content

Commit

Permalink
add sed command to centos template for adding no-incompatible-pointer…
Browse files Browse the repository at this point in the history
…-types KCFLAG

Signed-off-by: Logan Bond <logantbond@gmail.com>
  • Loading branch information
EXONER4TED authored and poiana committed Jul 19, 2023
1 parent 2602b28 commit 1fe1e7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/driverbuilder/builder/templates/centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ mv usr/src/kernels/*/* /tmp/kernel
{{ if .BuildModule }}
# Build the module
cd {{ .DriverBuildDir }}
sed -i 's/make -C $(KERNELDIR)/make KCFLAGS="-Wno-incompatible-pointer-types" -C $(KERNELDIR)/g' Makefile
make CC=/usr/bin/gcc-{{ .GCCVersion }} KERNELDIR=/tmp/kernel
mv {{ .ModuleDriverName }}.ko {{ .ModuleFullPath }}
strip -g {{ .ModuleFullPath }}
Expand Down

0 comments on commit 1fe1e7b

Please sign in to comment.