Installing Main Function

  • Copy Makefile, focaltech_core.c, focaltech_core.h to the directory kernel/include/linux/input/touchscreen/ This is shown as following.

Figure 4.1.1

  • Modify Makefile under kernel/include/linux/input/touchscreen/. Add the following 2 line code to the end of the file.
obj-$(CONFIG_TOUCHSCREEN_FTS) += fts_ts.o`

fts_ts-y += focaltech_core.o

Installing Full Function

  • Copy Makefile, focaltech_core.c, focaltech_core.h, focaltech_ctl.c, focaltech_ex_fun.c, focaltech_flash.c, focaltech_gesture.c, ft_gesture_lib.h, FT_Upgrade_App.i, ft_gesture_lib_v1.0_20140820.a to kernel/include/linux/input/touchscreen/ This is shown as following:

Figure_4_2

  • Modify Makefile under kernel/include/linux/input/touchscreen/Add the following code to the end of the file.
obj-$(CONFIG_TOUCHSCREEN_FTS) += fts_ts.o`

fts_ts-y += focaltech_core.o focaltech_ctl.o focaltech_ex_fun.o focaltech_gesture.o focaltech_flash.o

extlibs :=$(PWD)/drivers/input/touchscreen/ft_gesture_lib_v1.0_20140820.a

ldflagobj-y += fts_ts.o

obj-y s-y +=--whole-archive $(extlibs) --no-whole-archive

results matching ""

    No results matching ""