[ovs-dev] [PATCH 1/3] datapath: install linux kernel modules when do make install

Wei Yongjun yjwei at cn.fujitsu.com
Thu May 20 05:12:05 UTC 2010


If we choose to build the Linux kernel module, install them to
when we do make install.

   % ./configure --with-l26=/lib/modules/`uname -r`/build
   % make
   % make install

the openswitch kernel modules will be installed to dir
/lib/modules/`uname -r`/extra/

Signed-off-by: Wei Yongjun <yjwei at cn.fujitsu.com>
---
 datapath/linux-2.6/Makefile.main.in |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/datapath/linux-2.6/Makefile.main.in b/datapath/linux-2.6/Makefile.main.in
index 0809e61..42a8ce2 100644
--- a/datapath/linux-2.6/Makefile.main.in
+++ b/datapath/linux-2.6/Makefile.main.in
@@ -16,7 +16,6 @@ $(foreach s,$(sort $(foreach m,$(build_modules),$($(m)_sources))), \
 distclean: clean
 	rm -f kcompat.h
 distdir: clean
-install:
 all: default
 check: all
 clean:
@@ -50,6 +49,9 @@ endif
 
 default:
 	$(MAKE) -C $(KSRC) M=$(builddir) modules
+
+install:
+	$(MAKE) -C $(KSRC) M=$(builddir) modules_install
 endif
 
 # Much of the kernel build system in this file is derived from Intel's
-- 
1.6.5.2






More information about the dev mailing list