1,在/home/alinx/linux-xlnx-xilinx-v2017.4/drivers/dma/xilinx/中添加驱动程序xilinx_dma.c
2,在makefile中添加
obj-$(CONFIG_XILINX_DMA) += xilinx_dma.o
3,在kconfig中添加
在Kconfig中,发现 XILINX_DMA
config ALINX_ADC_DMA
tristate "ALINX ADC DMA Test client for AXI DMA"
depends on XILINX_DMA
help
ALINX ADC DMA client.
config HDMI_OUT----
tristate "HDMI Subsystem Driver"
depends on DRM_MSM
select DRM_MSM_HDMI
help
DRM driver for Xilinx Display hdmi.
经测试:
select与depends on是相反的逻辑关系。
A depends on B
那么只有在B选中才能选A
A select B
那么只要选中A就会选中B
Kconfig中的select和depends on
config A
depends on B
注释:只有在选中B,才能选A。
config A
select B
注释:只要选中A,就会选中B