diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.modpost | 4 | ||||
-rw-r--r-- | scripts/mod/modpost.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost index d5bbbcce31ef..c6fcc597b3be 100644 --- a/scripts/Makefile.modpost +++ b/scripts/Makefile.modpost | |||
@@ -70,10 +70,10 @@ __modpost: $(modules:.ko=.o) FORCE | |||
70 | $(call cmd,modpost) $(wildcard vmlinux) $(filter-out FORCE,$^) | 70 | $(call cmd,modpost) $(wildcard vmlinux) $(filter-out FORCE,$^) |
71 | 71 | ||
72 | quiet_cmd_kernel-mod = MODPOST $@ | 72 | quiet_cmd_kernel-mod = MODPOST $@ |
73 | cmd_kernel-mod = $(cmd_modpost) $(KBUILD_VMLINUX_OBJS) | 73 | cmd_kernel-mod = $(cmd_modpost) $@ |
74 | 74 | ||
75 | PHONY += vmlinux | 75 | PHONY += vmlinux |
76 | vmlinux: FORCE | 76 | vmlinux.o: FORCE |
77 | $(call cmd,kernel-mod) | 77 | $(call cmd,kernel-mod) |
78 | 78 | ||
79 | # Declare generated files as targets for modpost | 79 | # Declare generated files as targets for modpost |
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index bb895b13c170..ec036c261fb1 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -75,7 +75,8 @@ static int is_vmlinux(const char *modname) | |||
75 | else | 75 | else |
76 | myname = modname; | 76 | myname = modname; |
77 | 77 | ||
78 | return strcmp(myname, "vmlinux") == 0; | 78 | return (strcmp(myname, "vmlinux") == 0) || |
79 | (strcmp(myname, "vmlinux.o") == 0); | ||
79 | } | 80 | } |
80 | 81 | ||
81 | void *do_nofail(void *ptr, const char *expr) | 82 | void *do_nofail(void *ptr, const char *expr) |