- 积分
- 35
贡献149
飞刀45 FD
注册时间2019-11-22
在线时间4 小时
扫一扫,手机访问本帖
|
在 linux-3.10/drivers/char/awchip 中,文件布局只有
```bash
.
├── awchip
├── chipsc
└── Makefile
```
其中, awchip, chipsc 为 ELF 32-bit relocatable 文件。
在对内核进行一些修改,并重新编译时,会遇到如下错误:
```log
drivers/built-in.o: In function `awchip_src_store':
/home/golden/proj/KK-T3-SW/lichee/linux-3.10/drivers/char/awchip/awchip.c:65: undefined reference to `mutex_lock'
/home/golden/proj/KK-T3-SW/lichee/linux-3.10/drivers/char/awchip/awchip.c:72: undefined reference to `mutex_unlock'
drivers/built-in.o: In function `awchip_res_show':
/home/golden/proj/KK-T3-SW/lichee/linux-3.10/drivers/char/awchip/awchip.c:44: undefined reference to `mutex_lock'
/home/golden/proj/KK-T3-SW/lichee/linux-3.10/drivers/char/awchip/awchip.c:46: undefined reference to `mutex_unlock'
drivers/built-in.o: In function `init_awchip':
/home/golden/proj/KK-T3-SW/lichee/linux-3.10/drivers/char/awchip/awchip.c:111: undefined reference to `__mutex_init'
/home/golden/proj/KK-T3-SW/lichee/linux-3.10/drivers/char/awchip/awchip.c:112: undefined reference to `__mutex_init'
Makefile:778: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1
```
请问该问题如何解决? |
|