This error:

> cp Module.symvers *.ko ../rtlib/
> cp: cannot stat 'Module.symvers': No such file or directory

Is a red herring. Fix:

diff --git a/src/Makefile b/src/Makefile
index 96eba38334..374b4bf35d 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -538,7 +538,7 @@ ifeq ($(BUILD_SYS),kbuild)
modules:
       MAKEFLAGS="$(filter-out --warn-undefined-variables,$(MAKEFLAGS))" \
       $(PYTHON) modsilent.py $(MAKE) 
KBUILD_EXTRA_SYMBOLS=$(moduledir)/Module.symvers -C $(KERNELDIR) SUBDIRS=`pwd` 
CC=$(CC) V=$(BUILD_VERBOSE) modules
-       -cp Module.symvers *$(MODULE_EXT) ../rtlib/
+       -cp $(moduledir)/Module.symvers $(moduledir)/*$(MODULE_EXT) ../rtlib/
endif
 
# These rules clean things up. 'modclean' cleans files generated by 'modules'


LinuxCNC doesn't initialize the build process for the kernel modules at all, 
that's what's wrong:

Reading 204/204 dependency files
Done reading dependencies
MAKEFLAGS="" \
/usr/bin/python3.9 modsilent.py make 
KBUILD_EXTRA_SYMBOLS=/usr/realtime/modules/Module.symvers -C 
/lib/modules/5.4.219-rtai-amd64+/build SUBDIRS=`pwd` CC=gcc V=0 modules
make[1]: Entering directory '/home/ntu/linux-5.4.y'
 CALL    scripts/checksyscalls.sh
 CALL    scripts/atomic/check-atomics.sh
 Building modules, stage 2.
 MODPOST 33 modules
make[1]: Leaving directory '/home/ntu/linux-5.4.y'
cp /usr/realtime/modules/Module.symvers /usr/realtime/modules/*.ko ../rtlib/
You now need to run 'sudo make setuid' in order to run in place.

What do?

Alec


_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to