4159054fbb
Currently kmod-hwmon-* will not get into images unless kmod-hwmon-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-gpiofan - kmod-hwmon-lm63 - kmod-hwmon-lm75 - kmod-hwmon-lm85 - kmod-hwmon-lm90 Signed-off-by: Sungbo Eo <mans0n@gorani.run> [do not touch ar71xx, adjust line wrapping] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
30 lines
701 B
Makefile
30 lines
701 B
Makefile
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=hwmon-gsc
|
|
PKG_RELEASE:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define KernelPackage/hwmon-gsc
|
|
SUBMENU:=Hardware Monitoring Support
|
|
DEPENDS:=@TARGET_imx6||TARGET_cns3xxx +kmod-hwmon-core +kmod-i2c-core
|
|
TITLE:=Driver for the Gateworks System Controller
|
|
AUTOLOAD:=$(call AutoLoad,60,gsc)
|
|
FILES:=$(PKG_BUILD_DIR)/gsc.ko
|
|
endef
|
|
|
|
define KernelPackage/hwmon-gsc/description
|
|
Kernel module for the Gateworks System Controller chips.
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C "$(LINUX_DIR)" \
|
|
$(KERNEL_MAKE_FLAGS) \
|
|
M="$(PKG_BUILD_DIR)" \
|
|
EXTRA_CFLAGS="$(BUILDFLAGS)" \
|
|
modules
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,hwmon-gsc))
|