编译驱动程序时出错

编译驱动程序时出错

当我想编译 Broadcom 无线驱动程序时,出现此错误:

root@hello-notebook:/home/hello/bcm/broadcom# make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory '/usr/src/linux-headers-3.16.0-23-generic'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
  CC [M]  /home/hello/bcm/broadcom/src/wl/sys/wl_linux.o
/home/hello/bcm/broadcom/src/wl/sys/wl_linux.c: In function ‘wl_dump_ver’:
/home/hello/bcm/broadcom/src/wl/sys/wl_linux.c:2041:3: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
   __DATE__, __TIME__, EPI_VERSION_STR);
   ^
/home/hello/bcm/broadcom/src/wl/sys/wl_linux.c:2041:13: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
   __DATE__, __TIME__, EPI_VERSION_STR);
             ^
cc1: some warnings being treated as errors
scripts/Makefile.build:257: recipe for target '/home/hello/bcm/broadcom/src/wl/sys/wl_linux.o' failed
make[2]: *** [/home/hello/bcm/broadcom/src/wl/sys/wl_linux.o] Error 1
Makefile:1345: recipe for target '_module_/home/hello/bcm/broadcom' failed
make[1]: *** [_module_/home/hello/bcm/broadcom] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.16.0-23-generic'
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2

请帮我

驱动程序文件名为 hybrid-v35-nodebug-pcoem-6_30_223_141.tar.gz

请原谅我的英语不好

答案1

您不需要通过这种方式从源代码编译此驱动程序。此驱动程序已在 Ubuntu 存储库中。可以通过运行以下命令安装

sudo apt-get install bcmwl-kernel-source

相关内容