| # ========================================================================== |
| # Installing modules |
| # ========================================================================== |
| |
| src := $(obj) |
| |
| .PHONY: modules_install |
| modules_install: |
| |
| include .config |
| |
| include $(obj)/Makefile |
| |
| include scripts/Makefile.lib |
| |
| # ========================================================================== |
| |
| quiet_cmd_modules_install = INSTALL $(obj-m:.o=.ko) |
| cmd_modules_install = mkdir -p $(MODLIB)/kernel/$(obj); \ |
| cp $(obj-m:.o=.ko) $(MODLIB)/kernel/$(obj) |
| |
| modules_install: $(subdir-ym) |
| ifneq ($(obj-m:.o=.ko),) |
| $(call cmd,modules_install) |
| else |
| @: |
| endif |
| |
| # Descending |
| # --------------------------------------------------------------------------- |
| |
| .PHONY: $(subdir-ym) |
| $(subdir-ym): |
| $(Q)$(MAKE) -rR -f scripts/Makefile.modinst obj=$@ |