What are your version parameters set to? You don't want spaces, semicolons, etc. in this line:
KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)$(LOCALVERSION)
If you insert the following line as the first target in _modinst_ in your Makefile, you'll know if make thinks your KERNELRELEASE is a filename (note the tab at the beginning of the line):
Code:
@mkdir foo; cd foo; touch $(KERNELRELEASE); cd -; ls -la foo
Moy