edited Makefile and set KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -Wno-unused-but-set-variable -o-uninitialized -fno-strict-aliasing -fno-common -Wimplicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks
make CFLAGS_MODULE=-fno-pic modules
The build goes without an error and I get my modules. The problem is when I try to insmod them on my Ray I get "invalid module format" with no additional errors reported in dmesg. The only thing (I think) I know is that it's not the problem with the 'magic version' string as I have tried changing the default in the Makefile and then I do get that that it's a wrong magic version.
I have tried compiling using the DooMLoRD's 4.4.3 toolchain and that did the trick!
Just a note if someone else wants to compile additional modules... don't use the no-pic flag! Simply do 'make modules'.
Now to see if I can talk to my old Garmin GPS through a newly created ttyUSB0
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?