[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v16 7/9] Makefile: install modules with "make instal
From: |
Fam Zheng |
Subject: |
[Qemu-devel] [PATCH v16 7/9] Makefile: install modules with "make install" |
Date: |
Wed, 15 Jan 2014 16:48:31 +0800 |
Install all the modules to ${MODDIR}.
Signed-off-by: Fam Zheng <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Makefile b/Makefile
index 670ce44..a91f119 100644
--- a/Makefile
+++ b/Makefile
@@ -371,6 +371,12 @@ install-datadir install-localstatedir
ifneq ($(TOOLS),)
$(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)"
endif
+ifneq ($(CONFIG_MODULES),)
+ $(INSTALL_DIR) "$(DESTDIR)$(moddir)"
+ for s in $(patsubst %.mo,%$(DSOSUF),$(modules-m)); do \
+ $(INSTALL_PROG) $(STRIP_OPT) $$s
"$(DESTDIR)$(moddir)/$${s//\//-}"; \
+ done
+endif
ifneq ($(HELPERS-y),)
$(INSTALL_DIR) "$(DESTDIR)$(libexecdir)"
$(INSTALL_PROG) $(STRIP_OPT) $(HELPERS-y) "$(DESTDIR)$(libexecdir)"
--
1.8.5.2
- [Qemu-devel] [PATCH v16 1/9] rules.mak: fix $(obj) to a real relative path, (continued)
- [Qemu-devel] [PATCH v16 4/9] darwin: do not use -mdynamic-no-pic, Fam Zheng, 2014/01/15
- [Qemu-devel] [PATCH v16 8/9] .gitignore: ignore module related files (dll, so, mo), Fam Zheng, 2014/01/15
- [Qemu-devel] [PATCH v16 9/9] block: convert block drivers linked with libs to modules, Fam Zheng, 2014/01/15
- [Qemu-devel] [PATCH v16 7/9] Makefile: install modules with "make install",
Fam Zheng <=
- [Qemu-devel] [PATCH v16 3/9] block: use per-object cflags and libs, Fam Zheng, 2014/01/15
- [Qemu-devel] [PATCH v16 5/9] build-sys: introduce common-obj-m and block-obj-m for DSO, Fam Zheng, 2014/01/15
- [Qemu-devel] [PATCH v16 6/9] module: implement module loading, Fam Zheng, 2014/01/15
- Re: [Qemu-devel] [PATCH v16 6/9] module: implement module loading, Peter Maydell, 2014/01/15
- Re: [Qemu-devel] [PATCH v16 6/9] module: implement module loading, Paolo Bonzini, 2014/01/15
- Re: [Qemu-devel] [PATCH v16 6/9] module: implement module loading, Peter Maydell, 2014/01/15
- Re: [Qemu-devel] [PATCH v16 6/9] module: implement module loading, Paolo Bonzini, 2014/01/15
- Re: [Qemu-devel] [PATCH v16 6/9] module: implement module loading, Peter Maydell, 2014/01/15
- Re: [Qemu-devel] [PATCH v16 6/9] module: implement module loading, Paolo Bonzini, 2014/01/15
- Re: [Qemu-devel] [PATCH v16 6/9] module: implement module loading, Alex Bligh, 2014/01/15