NetBSD/sys/modules/i2cexec/Makefile
jmcneill 22ca8619b1 i2c devices don't actually have a dependency on "iic" (the bus driver)
but on "i2cexec". Create an i2cexec module (i2c_exec.c) to mirror the
dependencies in files.i2c and switch device drivers to depend on "i2cexec"
module instead.

A kernel with a USB stack and no I2C controller / bus attachment would spit
out a bunch of "WARNING: module error: can't find builtin dependency `iic'"
messages at boot. This change solves that problem.
2015-03-07 14:16:51 +00:00

11 lines
169 B
Makefile

# $NetBSD: Makefile,v 1.1 2015/03/07 14:16:51 jmcneill Exp $
.include "../Makefile.inc"
.PATH: ${S}/dev/i2c
KMOD= i2cexec
SRCS= i2c_exec.c
.include <bsd.kmodule.mk>