Hi all.

I'm having difficult to debug an issue I have.
Although I'm able to build my kernel, overlays, dtb and modules without any
errors using a specific git repo and my toolchain on my host, the bitbake
fails to build in the `do_compile_kernelmodules` step and the error I get
is:

```
|
/docker/build/tmp/work-shared/nanopi-duo2/kernel-source/drivers/net/wireless/realtek/rtl8189fs/core/rtw_cmd.c:22:10:
fatal error: drv_types.h: No such file or directory
|    22 | #include <drv_types.h>
|       |          ^~~~~~~~~~~~~
| compilation terminated.
|
/docker/build/tmp/work-shared/nanopi-duo2/kernel-source/scripts/Makefile.build:280:
recipe for target 'drivers/net/wireless/realtek/rtl8189fs/core/rtw_cmd.o'
failed
| make[6]: *** [drivers/net/wireless/realtek/rtl8189fs/core/rtw_cmd.o]
Error 1
|
/docker/build/tmp/work-shared/nanopi-duo2/kernel-source/scripts/Makefile.build:497:
recipe for target 'drivers/net/wireless/realtek/rtl8189fs' failed
| make[5]: *** [drivers/net/wireless/realtek/rtl8189fs] Error 2
|
/docker/build/tmp/work-shared/nanopi-duo2/kernel-source/scripts/Makefile.build:497:
recipe for target 'drivers/net/wireless/realtek' failed
| make[4]: *** [drivers/net/wireless/realtek] Error 2
| make[4]: *** Waiting for unfinished jobs....
```

Of course the drv_types.h file is there and I've said the kernel builds
fine using any toolchain from version 7.2 up to 8, I've tried locally on my
workstation.

The kernel recipe is located here:
https://bitbucket.org/dimtass/meta-allwinner-hx/src/a168d58cb142e246b3185b920552ac5e7f7afc0c/recipes-kernel/linux/linux-megous_5.3.bb?at=feature%2Fupgrade-to-kernel-5.3.y

I've also tried to override the default do_compile_kernelmodules and
simplify it down to this, but it still fails with the same error:
```
oe_runmake modules
```

Any good ideas?

Thanks!
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#47605): https://lists.yoctoproject.org/g/yocto/message/47605
Mute This Topic: https://lists.yoctoproject.org/mt/67794785/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to