|
发表于 2017-8-10 10:21:51
只看该作者
72#
-->kernel/drivers/misc/Makefile add obj-$(CONFIG_LUOBO_GPIO) += luobo_gpio.o
不會編譯, 要在
-->kernel/drivers/misc/Kconfig add
config LUOBO_GPIO
tristate "Luobo gpio control"
default y
-->kernel
make menuconfig -> Device Drivers -> Mics devices -> <*>Luobo goip control
make -j8 firefly-rk3288.img才會編譯出, 但出現
CC drivers/misc/luobo_gpio.o
drivers/misc/luobo_gpio.c:21:1: warning: useless storage class specifier in empty
declaration [enabled by default]
error, forbidden warning: luobo_gpio.c:21
make[2]: *** [drivers/misc/luobo_gpio.o] Error 1
make[1]: *** [drivers/misc] Error 2
make[1]: *** Waiting for unfinished jobs....
將 static struct UserData { 的 static 去除, 則編譯成功.
最後, 高高興興的升級kernel.img, 可是dev\luogogpio怎麼沒看到????
請問版主, 哪個步驟錯了, 怎麼修改? (註:我是寫android的,linux是小白中的小白)
|
|