Commit 5c8daf12 authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: Provide "make some/dir/module.ko"

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)
parent d4930da8
...@@ -413,6 +413,8 @@ targets += arch/$(ARCH)/vmlinux.lds.s ...@@ -413,6 +413,8 @@ targets += arch/$(ARCH)/vmlinux.lds.s
$(Q)$(MAKE) $(build)=$(@D) $@ $(Q)$(MAKE) $(build)=$(@D) $@
%.o: %.c scripts FORCE %.o: %.c scripts FORCE
$(Q)$(MAKE) $(build)=$(@D) $@ $(Q)$(MAKE) $(build)=$(@D) $@
%.ko: scripts FORCE
$(Q)$(MAKE) $(build)=$(@D) $@
%.lst: %.c scripts FORCE %.lst: %.c scripts FORCE
$(Q)$(MAKE) $(build)=$(@D) $@ $(Q)$(MAKE) $(build)=$(@D) $@
%.s: %.S scripts FORCE %.s: %.S scripts FORCE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment