I'm building the core-image-minimal and wanted to add an out-of-tree kernel 
driver. These are my steps:
1. Create SDK environment
2. Adding the C and header file in the SDK and then create the patch for it
3. In layer-mylayer/recipes-kernel/linux/ there is linux_intel_%.bbappend file 
and and folders which include those patches
4. I edited the linux_intel_%.bbappend file:

```
do_kernel_configme() {
install -d ${S}/drivers/folder1/my-folder
}
```
Which in folder1/my-folder is where I placed the C files.
5. I also added this to my conf/local.conf:
```
IMAGE_INSTALL += "kernel-module-<name-of-module>"
```
But it's still not working so I added this line:
```
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += " kernel-modules"
```

My questions are:

1. Why it didn't create the /lib/modules folder in the root of my image? 
Anything I did wrong or missing here?
2. Some online material mentioned about machine.conf which I do not understand 
what it is and where it's located? My image is built for core-inteli7-64 so I 
think it what they meant is in /meta-intel/conf/machine/core-inteli7-64.conf?
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7670): 
https://lists.yoctoproject.org/g/meta-intel/message/7670
Mute This Topic: https://lists.yoctoproject.org/mt/93698632/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to