]> git.hungrycats.org Git - linux/commitdiff
kbuild: Provide "make some/dir/module.ko"
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Mon, 30 Dec 2002 19:21:46 +0000 (13:21 -0600)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Mon, 30 Dec 2002 19:21:46 +0000 (13:21 -0600)
Now that we have a unique suffix for kernel modules (.ko), we
can extend to former "make some/object.o" to work for kernel modules
as well, even composite ones.

It's as easy as "make some/dir/module.ko".

(Sam Ravnborg/me)

Makefile

index 5f6cd42ec359bc64aa7298fb793d78f195b1f831..800d7669c1e06714bb94c9ab9f21cab3398458b7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -413,6 +413,8 @@ targets += arch/$(ARCH)/vmlinux.lds.s
        $(Q)$(MAKE) $(build)=$(@D) $@
 %.o: %.c scripts FORCE
        $(Q)$(MAKE) $(build)=$(@D) $@
+%.ko: scripts FORCE
+       $(Q)$(MAKE) $(build)=$(@D) $@
 %.lst: %.c scripts FORCE
        $(Q)$(MAKE) $(build)=$(@D) $@
 %.s: %.S scripts FORCE