diff options
| author | jmcneill <jmcneill@NetBSD.org> | 2015-03-07 14:16:51 +0000 |
|---|---|---|
| committer | jmcneill <jmcneill@NetBSD.org> | 2015-03-07 14:16:51 +0000 |
| commit | 9e86cc08319771cd8ca1d6ace4f0a8dfeb6d4e14 (patch) | |
| tree | e5098b5229231db6d455c25e8e94642e5fecc097 /sys/modules | |
| parent | d2cbe81cb8b7160997f102b76b9f7f5f72d25a5a (diff) | |
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.
Diffstat (limited to 'sys/modules')
| -rw-r--r-- | sys/modules/Makefile | 3 | ||||
| -rw-r--r-- | sys/modules/i2cexec/Makefile | 10 |
2 files changed, 12 insertions, 1 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 9bad6502672..d5d10216a75 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.142 2014/11/10 21:15:19 christos Exp $ +# $NetBSD: Makefile,v 1.143 2015/03/07 14:16:51 jmcneill Exp $ .include <bsd.own.mk> @@ -40,6 +40,7 @@ SUBDIR+= gpioow SUBDIR+= gpiosim SUBDIR+= hfs SUBDIR+= hythygtemp +SUBDIR+= i2cexec SUBDIR+= if_axe SUBDIR+= if_axen SUBDIR+= if_npflog diff --git a/sys/modules/i2cexec/Makefile b/sys/modules/i2cexec/Makefile new file mode 100644 index 00000000000..8dc9a9ab34a --- /dev/null +++ b/sys/modules/i2cexec/Makefile @@ -0,0 +1,10 @@ +# $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> |
