Undefined Variables During MODPOST
I am building a kernel for an android phone. I transplanted an updated version of the WiFi code from Broadcomm.
Doing this involved adjusting Kconfigs and Makefiles to point to the files I added and I got the code to build properly without warning or error. Until I get to the MODPOST part. Then I get these errors: ERROR: "wl_iw_handler_def" [drivers/net/wireless/bcmdhd/dhd.ko] undefined! ERROR: "wl_iw_event" [drivers/net/wireless/bcmdhd/dhd.ko] undefined! ERROR: "wl_iw_detach" [drivers/net/wireless/bcmdhd/dhd.ko] undefined! ERROR: "wl_iw_get_wireless_stats" [drivers/net/wireless/bcmdhd/dhd.ko] undefined! ERROR: "wl_iw_ioctl" [drivers/net/wireless/bcmdhd/dhd.ko] undefined! I am not sure where/how to correct these as I have never seen an error like this. I am used to being given a file and line location for what needs to be fixed. I read that this may have to do with exporting them, but I still don't know where or how to do that, and I wonder why that would not already be in the code if it were the culprit. Any input on where to look for what is causing this would be greatly appreciated. D . |
You can check WiFi driver makefile to make sure the compiler option match with your kernel.
|
I've got the same question. I checked the driver makefile and the option look the same. How did you solve the error ?
|
I reverted my changes. Never found a solution that allowed me to keep the new files.
|
Just thought I'd post my solution in case anyone else comes across this problem.
This fix solves the error, I can't guarantee it'll compile a complete driver just yet as my kernel has other problems. Add wl_iw.o to DHDOFILES in bcmdhd/Makefile Add Code:
#define USE_IW Code:
#if defined(USE_IW) m0tter |
All times are GMT -5. The time now is 07:42 AM. |