summaryrefslogtreecommitdiff
path: root/scripts/Makefile.modpost
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2006-06-24 22:50:18 +0200
committerSam Ravnborg <sam@mars.ravnborg.org>2006-06-24 23:13:59 +0200
commite5c44fd88c146755da6941d047de4d97651404a9 (patch)
treee97c72787b08f9576eb14242483b09ce8850934e /scripts/Makefile.modpost
parent216b2f1f718d653795024a085636d063693dd9a9 (diff)
downloadlinux-3.10-e5c44fd88c146755da6941d047de4d97651404a9.tar.gz
linux-3.10-e5c44fd88c146755da6941d047de4d97651404a9.tar.bz2
linux-3.10-e5c44fd88c146755da6941d047de4d97651404a9.zip
kbuild: fix make -rR breakage
make failed to supply the filename when using make -rR and using $(*F) to get target filename without extension. This bug was not reproduceable in small scale but using: $(basename $(notdir $@)) fixes it with same functionality. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/Makefile.modpost')
-rw-r--r--scripts/Makefile.modpost2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost
index 576cce5e387..e83613e0e82 100644
--- a/scripts/Makefile.modpost
+++ b/scripts/Makefile.modpost
@@ -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 = $(basetarget)
quiet_cmd_cc_o_c = CC $@
cmd_cc_o_c = $(CC) $(c_flags) $(CFLAGS_MODULE) \