How to install headers right way

Alexander Mishin mishin at mh.net.ru
Sun Jul 19 09:12:31 UTC 2020


Hello,

I wrote a small driver for 7-segment display "tm1637" on gpio bus.
I as I need a kernel source files anyway I use ".include bsd.kmod.mk" at 
the bottom of my Makefile. It is convenient and helps to keep the file 
compact and clear, as well as to install the files in the places defined 
by the system.
The driver contains a couple of ioctl calls which definitions I want to 
export as a headers file.

How can I install headers a right way (prefered using bsd.*.mk)?

It seems that I can install only driver this way but I found already 
that I can install an fdt-overlays and man page (by bsd.prog.mk and 
bsd.dtb.mk)


If a source of the driver is needed, there it is: 
https://gitlab.com/alexandermishin13/tm1637-kmod


More information about the freebsd-drivers mailing list