summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2020-04-08 22:22:29 +0300
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2020-04-09 18:55:05 +0300
commitffa0566db4112477eff1203e81942a72864b6c25 (patch)
treede562112d620e7441a674d666acc6c0614ea5b54
parent65495f16c3106aa21d8e363a350c49bee1e4a516 (diff)
make: add option to install modules only
Building backports for another target host makes useless commands ralated to a rebuilding of initrd images. Add make option mod_install that just installs modules files into target modules directory. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
-rw-r--r--Makefile.real9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.real b/Makefile.real
index 6550802..50d6d8b 100644
--- a/Makefile.real
+++ b/Makefile.real
@@ -87,11 +87,14 @@ backport-include/backport/autoconf.h: .config Kconfig.versions Kconfig.kernel
modules: backport-include/backport/autoconf.h
@$(MAKE) -f Makefile.build modules
-.PHONY: install
-install: modules
+.PHONY: mod_install
+mod_install: modules
@$(MAKE) -C $(KLIB_BUILD) M=$(BACKPORT_DIR) \
INSTALL_MOD_DIR=$(KMODDIR) $(KMODPATH_ARG) \
modules_install
+
+.PHONY: full_mod_install
+full_mod_install: mod_install
@./scripts/blacklist.sh $(KLIB)/ $(KLIB)/$(KMODDIR)
@./scripts/compress_modules.sh $(KLIB)/$(KMODDIR)
@./scripts/check_depmod.sh
@@ -103,7 +106,7 @@ install: modules
@echo
.PHONY: modules_install
-modules_install: install
+modules_install: full_mod_install
.PHONY: uninstall
uninstall: