On Mon 14 Mar 2016 03:44:02 PM CDT, Chaves wrote:
Building External Modules
I'm trying to add new external modules already compiled to the new Open
Suse kernel and it seems that Im missing something. I was following the
steps that can be seen below;
- 1. online repository enabled
sudo zypper ref
sudo zypper lu
sudo zypper up
- 2.Command Syntax to add the externals modules
- 2.1.The command to build an external module
$ make -C <path_to_kernel_src> M=$PWD ////Up to
here its compiling without error
$ make -C /lib/modules/4.1.15-8-default/kernel/*
SUBDIRS=$home/user/Development/Modules
- 2.2.To build against the running kernel
$ make -C /lib/modules/`user -r`/build
M=$home/user/Development/Modules
- 2.3.Install the module(s) just built, add the target "modules" to
the command:
$ make -C /lib/modules/`user -r`/build
M=$home/user/Development/Modules modules
I think I am missing the prebuilt kernel that contains the configuration
and header files used in the build, because the folder "build" inside
the "4.1.15-8-default" never was created as expected. So, when I trying
to add the modules I alwais got an error message;
"/lib/modules/4.1.15-8-default/build: Not such a file or directory"
Regards
Bookmarks