OpenWrt Forum Archive

Topic: How to add dependencies to cdc_ether.ko drivers?

The content of this topic has been archived on 9 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi guys,I need to integrate 4g module(ZTE ME3760) into my device(MTK7620a) based on openwrt. The module needs his own drivers compiled from source files cdc_encap.c and cdc_encap.h . I also modify cdc_ether.c to use some function in cdc_encap.c.I put cdc_encap.h,cdc_encap.c where cdc_ether.c is and add this line 'obj-m += cdc_encap.o' to the Makefile.But I failed ,error is:
kmod-usb-net-cdc-ether is missing dependencies for follow libraries:cdc_encap.ko.
I found cdc_ether.ko and cdc_encap.ko in their own directory.I think maybe i configure some files wrong?Do you konw why?And how to configure it right?Thank you!

Help!Help!

The discussion might have continued from here.