24.01.03 최초 작성
linux-custom/drivers/staging/(파일이름)/Kconfig
파일에서 등록할 드라이버 등록make linux-menuconfig
를 통해 설정 가능Kconfig
파일을 읽어 드라이버 이름 찾음*
: build-in
, M
: 모듈)config HELLO_WORLD //모듈 이름 등록
tristate "Say Hello world" //이하 모듈에 대한 설명
help
basic module
linux-custom/drivers/staging/(파일이름)/Makefile
파일에서 드라이버에 사용할 *.o
파일 등록obj-$(CONFIG_HELLO_WORLD) += hello_module.o //
device tree
와 플랫폼 드라이버를 확인해 둘 다 등록되어 있으면 부팅 과정에서 초기화device tree
의 compatible
항목과 device driver
의 이름을 비교