[ovs-dev] [PATCH 2/2] datapath: Resolve external module dependencies.

Rajahalme, Jarno (NSN - FI/Espoo) jarno.rajahalme at nsn.com
Wed Jun 26 15:05:08 UTC 2013

On Jun 25, 2013, at 22:31 , ext Jesse Gross wrote:

> The Open vSwitch kernel module now has dependencies on symbols
> exported by other kernel modules (currently just for GRE). In
> order for it to load, the dependencies must be correctly resolved
> ahead of time. This runs depmod as part of the module installation
> process and updates the installation instructions.
> Reported-by: Justin Pettit <jpettit at nicira.com>
> Signed-off-by: Jesse Gross <jesse at nicira.com>
> ---
> diff --git a/datapath/linux/Makefile.main.in b/datapath/linux/Makefile.main.in
> index 2e445ac..a62e0ca 100644
> --- a/datapath/linux/Makefile.main.in
> +++ b/datapath/linux/Makefile.main.in
> @@ -71,6 +71,7 @@ default:
> modules_install:
> 	$(MAKE) -C $(KSRC) M=$(builddir) modules_install
> +	depmod `cat $(KSRC)/include/config/kernel.release`

This line does not work on my system. 'cat' produces "3.2.46", while /lib/modules contains:

2.6.32-5-amd64	2.6.39-2-amd64	3.1.0-1-amd64  3.2.0-2-amd64  3.2.0-4-amd64
2.6.38-2-amd64	3.0.0-1-amd64	3.2.0-1-amd64  3.2.0-3-amd64

so I guess "depmod `uname -r`" would be the right thing to do, which is the same as "depmod" by itself. With this the "make modules_install" seems to succeed.


More information about the dev mailing list