I tried to recompile dependent libraries, as shown here: ROCK Pi 4 > Develoment > Comple a kernel module on ROCK Pi 4, but it fails with an error:
gcc: error: unrecognized command line option ‘-mgeneral-regs-only’
scripts/Makefile.build:277: recipe for target ‘scripts/mod/empty.o’ failed
make: *** [scripts/mod/empty.o] Error 1
scripts/Makefile.build:484: recipe for target ‘scripts/mod’ failed
make: *** [scripts/mod] Error 2
Makefile:584: recipe for target ‘scripts’ failed
make: *** [scripts] Error 2
Any idea what could still be missing in the preparation in order to succeed? I am directly working on the ROCK Pi 4 and not trying to cross-compile.
Thanks a lot!