kernel: make kmod-i2c-core selected by dependent modules
authorSungbo Eo <mans0n@gorani.run>
Thu, 5 Mar 2020 14:42:18 +0000 (23:42 +0900)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 13 Mar 2020 14:40:43 +0000 (15:40 +0100)
commit4caaa778f709a38c08a11d98dd7fb03fe257f8fe
tree9e7858ea623824c7c2d5c2782d655488c5b2c7da
parent4159054fbbf8a7176eaf3dd4467c5b0db70769d0
kernel: make kmod-i2c-core selected by dependent modules

Currently kmod-i2c-* will not get into images unless kmod-i2c-core is added to
DEVICE_PACKAGES as well. By changing the dependencies from "depends on" to
"select", we do not have the issue anymore.

Furthermore, we can remove most occurrences of the package from DEVICE_PACKAGES
and similar variables, as it is now pulled by dependent modules such as:
- kmod-hwmon-lm75
- kmod-i2c-gpio
- kmod-i2c-gpio-custom
- kmod-i2c-mux
- kmod-i2c-ralink

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
[do not touch ar71xx]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
package/kernel/linux/modules/i2c.mk
target/linux/ath79/image/generic.mk
target/linux/lantiq/modules.mk
target/linux/layerscape/image/armv8_64b.mk
target/linux/mvebu/image/cortexa72.mk
target/linux/mvebu/image/cortexa9.mk
target/linux/ramips/image/rt305x.mk
target/linux/ramips/modules.mk