- 积分
- 20
贡献64
飞刀9 FD
注册时间2014-9-9
在线时间7 小时
扫一扫,手机访问本帖
|
drivers/char/io_ctl.c: In function 'gpio_state_store':
drivers/char/io_ctl.c:79: error: 'UART_RTS_CTL' undeclared (first use in this function)
drivers/char/io_ctl.c:79: error: (Each undeclared identifier is reported only once
drivers/char/io_ctl.c:79: error: for each function it appears in.)
drivers/char/io_ctl.c: At top level:
drivers/char/io_ctl.c:88: warning: initialization from incompatible pointer type
make[2]: *** [drivers/char/io_ctl.o] Error 1
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2
今天编译飞凌光盘提供的内核时遇到的问题,各种配置都没有动,怎么都编译不过,我看了一下io_ctl.c文件是声明了 'UART_RTS_CTL' ,就是可能需要预定义选择相应的CPU,不知道还有哪里需要设置下。
#if defined(CONFIG_OK335XD)
#define UART_RTS_CTL GPIO_TO_PIN(3, 2)
#elif defined(CONFIG_OK335XS)
#define UART_RTS_CTL GPIO_TO_PIN(0, 31)
#elif defined(CONFIG_OK335XS2)
#define UART_RTS_CTL GPIO_TO_PIN(2, 0)
#endif
这个里面看到有'UART_RTS_CTL' 定义的,是否哪里需要配置选择一下CONFIG_OK335XD才对,谢谢各位了!:) |
|