我正在尝试从Here为 linux 3.7 内核构建 mali 驱动程序。
有一个单独的构建脚本,例如,
#!/bin/bash
export KDIR=/path/to/kernel/dir/
..
..
gcc -v//Just for testing purpose printing gcc version
make
gcc -v
...
实际主机具有 2.6 内核,但我指示make
使用 linux 3.7 内核。上面的make会调用mali驱动的makefile的Makefile。
对于上述脚本,gcc 版本在命令前后打印正常make
,但make
进入内核目录时,gcc 无法识别。
它说gcc:目录:没有这样的文件或目录。
arm-gcc 也一样。有没有猜??
编辑:(制作输出)
make ARCH=arm -C /home/work/linux3.7/ M=/home/work/mali/driver/src/devicedrv/mali modules
make[1] : Entering directory `/home/work/linux3.7/`
gcc : directory : No such file or directory
gcc : directory" : No such file or directory
<command-line>: warning: missing terminating " character
gcc : directory : No such file or directory
gcc : directory" : No such file or directory
<command-line>: warning: missing terminating " character
gcc : directory : No such file or directory
gcc : directory" : No such file or directory
<command-line>: warning: missing terminating " character
gcc : directory : No such file or directory
gcc : directory" : No such file or directory
<command-line>: warning: missing terminating " character
CC [M] /home/work/mali/driver/src/devicedrv/mali/common/mali_kernel_core.o
.arm-none-linux-gnueabi-gcc: directory:No such file or directory
.arm-none-linux-gnueabi-gcc: directory":No such file or directory
make[2] : Leaving directory `/home/work/linux3.7/`