diff options
| author | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-10-23 09:42:06 -0500 |
|---|---|---|
| committer | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-10-23 09:42:06 -0500 |
| commit | b706ce290d2690de6ff89fcea10e00cb624c6a22 (patch) | |
| tree | 7316c70cf4f193eb2f93a59413b96da0ee26a1e6 /scripts/Makefile.modinst | |
| parent | ecf2c2143f0865f447020144b2ee6e4181f65814 (diff) | |
kbuild: Split Rules.make
Rules.make is used in 4 phases,
o generate modversions
o build
o install modules
o clean
split out the code specific to the phase and move it into
scripts/Makefile.<phase>
Diffstat (limited to 'scripts/Makefile.modinst')
| -rw-r--r-- | scripts/Makefile.modinst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/Makefile.modinst b/scripts/Makefile.modinst new file mode 100644 index 000000000000..6e1fe0e5bcbd --- /dev/null +++ b/scripts/Makefile.modinst @@ -0,0 +1,17 @@ +# ========================================================================== +# Installing modules +# ========================================================================== + +quiet_cmd_modules_install = INSTALL $(obj-m) +cmd_modules_install = mkdir -p $(MODLIB)/kernel/$(obj); \ + cp $(obj-m) $(MODLIB)/kernel/$(obj) + +.PHONY: modules_install + +modules_install: $(subdir-ym) +ifneq ($(obj-m),) + $(call cmd,modules_install) +else + @: +endif + |
