在写Makefile时在KERNELDIR = /xxx/kernel目录后面一定不要有空格,会报错,我编译wlan时就是在
KERNELDIR = /xxx/kernel(
加了一个空格),导致出现如下错误。去掉空格就OK了。有点让人无语,不知为啥。
make[1]: 正在进入目录 `/xxx/kernel_imx'
CC [M] /xxx/android4.2-imx6/hardware/imx/wlan/wlan_src_customers/mlan/mlan_shim.o
arm-linux-gcc: /include: No such file or directory
make[2]: *** [/xxx/android4.2-imx6/hardware/imx/wlan/wlan_src_customers/mlan/mlan_shim.o] 错误 1
make[1]: *** [_module_/xxx/android4.2-imx6/hardware/imx/wlan/wlan_src_customers] 错误 2
make[1]:正在离开目录 `/xxx/kernel_imx'
make: *** [default] 错误 2
阅读(5249) | 评论(0) | 转发(0) |