Makefile.modinst 798 Bytes
Newer Older
Kai Germaschewski's avatar
Kai Germaschewski committed
1 2 3 4
# ==========================================================================
# Installing modules
# ==========================================================================

5 6
src := $(obj)

Kai Germaschewski's avatar
Kai Germaschewski committed
7
.PHONY: modules_install
8 9 10 11 12 13
modules_install:

include .config

include $(obj)/Makefile

14
include scripts/Makefile.lib
15 16 17 18

# ==========================================================================

quiet_cmd_modules_install = INSTALL $(obj-m)
19 20
      cmd_modules_install = mkdir -p $(MODLIB)/kernel && \
		      cp $(obj-m) $(MODLIB)/kernel/
Kai Germaschewski's avatar
Kai Germaschewski committed
21 22 23 24 25 26 27 28

modules_install: $(subdir-ym)
ifneq ($(obj-m),)
	$(call cmd,modules_install)
else
	@:
endif

29 30 31 32 33 34
# Descending
# ---------------------------------------------------------------------------

.PHONY: $(subdir-ym)
$(subdir-ym):
	$(Q)$(MAKE) -rR -f scripts/Makefile.modinst obj=$@