# Add newexternal  modules to custom kernel

**URL:** <https://forums.suse.com/t/add-newexternal-modules-to-custom-kernel/27990>\
**Category:** SLES Point of Service\
**Created:** [March 14, 2016, 5:43pm UTC](https://forums.suse.com/t/add-newexternal-modules-to-custom-kernel/27990 "2016-03-14T17:43:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chaves](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@Chaves](https://forums.suse.com/u/Chaves)\
**Post date:** [March 14, 2016, 5:43pm UTC](https://forums.suse.com/t/add-newexternal-modules-to-custom-kernel/27990/1 "2016-03-14T17:43:18Z")

</div>

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;  
[LIST=1]  
[_]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

```

[/LIST]

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

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [March 14, 2016, 6:33pm UTC](https://forums.suse.com/t/add-newexternal-modules-to-custom-kernel/27990/2 "2016-03-14T18:33:33Z")

</div>

> [@](#):
>
> 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

Hi  
You in the wrong forum, these forum are for SUSE Linux Enterprise, not  
openSUSE, you need to be over at [https://forums.opensuse.org](https://forums.opensuse.org) same  
username/login

–  
Cheers Malcolm Â°Â¿Â° LFCS, SUSE Knowledge Partner (Linux Counter #276890)  
SUSE Linux Enterprise Desktop 12 SP1|GNOME 3.10.4|3.12.53-60.30-default  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!
