guoshuo 发表于 2015-3-31 10:24:36

触摸屏驱动代码

请问http://item.taobao.com/item.htm?spm=a230r.1.14.170.lUbqTg&id=43547275383&ns=1&abbucket=12#detail&qq-pf-to=pcqq.c2c 这块显示屏的驱动是否用这两段代码就够了,谢谢大神。

https://bitbucket.org/T-Firefly/firefly-rk3288/annotate/f4457fae482c3569ad1a8fcb863406d56add279d/kernel/drivers/input/touchscreen/rockchip_gslX680_firefly.c?at=pad

https://bitbucket.org/T-Firefly/firefly-rk3288/src/f4457fae482c3569ad1a8fcb863406d56add279d/kernel/drivers/input/touchscreen/rockchip_gslX680_firefly.h?at=pad

zhansb 发表于 2015-3-31 11:00:21

看一下makefile:
obj-$(CONFIG_TOUCHSCREEN_GSLX680)        += rockchip_gslX680_firefly.o
obj-$(CONFIG_TOUCHSCREEN_GSLX680) += gsl_point_id.o
$(obj)/gsl_point_id.o: $(srctree)/$(obj)/gsl_point_id
        cp $(srctree)/$(obj)/gsl_point_id $(obj)/gsl_point_id.o

guoshuo 发表于 2015-3-31 11:26:25

大神你好,报错提示

scripts/Makefile.build:311: warning: overriding commands for target `drivers/touchscreen/gsl_point_id.o'
/home/gs/mlwk/ltib/rpm/BUILD/linux-3.0.35/drivers/touchscreen/Makefile:4: warning: ignoring old commands for target `drivers/touchscreen/gsl_point_id.o'
make: *** No rule to make target `drivers/touchscreen/gsl_point_id.c', needed by `drivers/touchscreen/gsl_point_id.o'.Stop.

zhansb 发表于 2015-3-31 11:38:43

这个SDK是?

guoshuo 发表于 2015-3-31 14:59:37

zhansb 发表于 2015-3-31 11:38
这个SDK是?

你好,是在我们自己arm板上的linux(ltib),cpu是Freescale的

guoshuo 发表于 2015-4-1 08:59:16

zhansb 发表于 2015-3-31 11:38
这个SDK是?

能用否?

guoshuo 发表于 2015-4-1 16:07:03

求 gsl_point_id.c 文件。。。

zhansb 发表于 2015-4-2 09:24:27

楼主仔细看一下我贴出来的makefile

guoshuo 发表于 2015-4-2 10:33:44

zhansb 发表于 2015-4-2 09:24
楼主仔细看一下我贴出来的makefile

你好, 就是按你的makefile写的,但make之后 有提示
scripts/Makefile.build:311: warning: overriding commands for target `drivers/touchscreen/gsl_point_id.o'
/home/gs/mlwk/ltib/rpm/BUILD/linux-3.0.35/drivers/touchscreen/Makefile:4: warning: ignoring old commands for target `drivers/touchscreen/gsl_point_id.o'
make: *** No rule to make target `drivers/touchscreen/gsl_point_id.c', needed by `drivers/touchscreen/gsl_point_id.o'.Stop.
文件夹中也没有生成gsl_point_id.o文件。我们这系统貌似一定要.c文件才能编译出ko吧。你们的系统做过什么调整么

zhansb 发表于 2015-4-2 10:43:58

没做特殊调整,主要是这个地方:
$(obj)/gsl_point_id.o: $(srctree)/$(obj)/gsl_point_id
      cp $(srctree)/$(obj)/gsl_point_id $(obj)/gsl_point_id.o
页: [1] 2 3
查看完整版本: 触摸屏驱动代码