datapath: introduce a method to install kernel modules
authorWei Yongjun <yjwei@cn.fujitsu.com>
Mon, 24 May 2010 02:20:10 +0000 (10:20 +0800)
committerBen Pfaff <blp@nicira.com>
Mon, 24 May 2010 16:54:47 +0000 (09:54 -0700)
After we choose to build the Linux kernel module, install
them using make modules_install.

   % ./configure --with-l26=/lib/modules/`uname -r`/build
   % make
   % cd datapath/linux-2.6/
   % make modules_install

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

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
datapath/linux-2.6/Makefile.main.in

index 0809e61..74bed78 100644 (file)
@@ -50,6 +50,9 @@ endif
 
 default:
        $(MAKE) -C $(KSRC) M=$(builddir) modules
+
+modules_install:
+       $(MAKE) -C $(KSRC) M=$(builddir) modules_install
 endif
 
 # Much of the kernel build system in this file is derived from Intel's