三、修改Kconfig:
elf@ubuntu:~/work/linux-imx-imx_4.1.15_2.0.0_ga$ vi drivers/misc/Kconfig
添加以下内容:
config ICM20607
tristate "SPI device ICM20607"
depends on SPI && SYSFS
help
If you say yes here,you get support for the icm20607
添加后效果如下:
四、修改Makefile:
elf@ubuntu:~/work/linux-imx-imx_4.1.15_2.0.0_ga$ vi drivers/misc/Makefile
添加以下内容:
obj-$(CONFIG_ICM20607) += icm20607.o
添加后效果如下: