]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - scripts/Makefile.modpost
[PATCH] lockdep: annotate USBFS
[linux-2.6-omap-h63xx.git] / scripts / Makefile.modpost
index 576cce5e387f4472bc31a20fcfca2e08fcea6fdd..a49550205dcc5eab6147dab893334a96d34f9123 100644 (file)
@@ -72,7 +72,7 @@ $(modules:.ko=.mod.c): __modpost ;
 # Step 5), compile all *.mod.c files
 
 # modname is set to make c_flags define KBUILD_MODNAME
-modname = $(*F)
+modname = $(notdir $(@:.mod.o=))
 
 quiet_cmd_cc_o_c = CC      $@
       cmd_cc_o_c = $(CC) $(c_flags) $(CFLAGS_MODULE)   \