kernel: kmod-backlight-pwm/kmod-hwmon-pwmfan: Depend on PWM_SUPPORT
These drivers depend on the kernel option CONFIG_PWM, only add them to OpenWrt for targets which have PWM support. Link: https://github.com/openwrt/openwrt/pull/19480 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
@@ -529,7 +529,7 @@ define KernelPackage/hwmon-pwmfan
|
|||||||
KCONFIG:=CONFIG_SENSORS_PWM_FAN
|
KCONFIG:=CONFIG_SENSORS_PWM_FAN
|
||||||
FILES:=$(LINUX_DIR)/drivers/hwmon/pwm-fan.ko
|
FILES:=$(LINUX_DIR)/drivers/hwmon/pwm-fan.ko
|
||||||
AUTOLOAD:=$(call AutoLoad,60,pwm-fan)
|
AUTOLOAD:=$(call AutoLoad,60,pwm-fan)
|
||||||
$(call AddDepends/hwmon, +PACKAGE_kmod-thermal:kmod-thermal)
|
$(call AddDepends/hwmon,@PWM_SUPPORT +PACKAGE_kmod-thermal:kmod-thermal)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define KernelPackage/hwmon-pwmfan/description
|
define KernelPackage/hwmon-pwmfan/description
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ $(eval $(call KernelPackage,backlight))
|
|||||||
define KernelPackage/backlight-pwm
|
define KernelPackage/backlight-pwm
|
||||||
SUBMENU:=$(VIDEO_MENU)
|
SUBMENU:=$(VIDEO_MENU)
|
||||||
TITLE:=PWM Backlight support
|
TITLE:=PWM Backlight support
|
||||||
DEPENDS:=+kmod-backlight
|
DEPENDS:=@PWM_SUPPORT +kmod-backlight
|
||||||
KCONFIG:=CONFIG_BACKLIGHT_PWM
|
KCONFIG:=CONFIG_BACKLIGHT_PWM
|
||||||
FILES:=$(LINUX_DIR)/drivers/video/backlight/pwm_bl.ko
|
FILES:=$(LINUX_DIR)/drivers/video/backlight/pwm_bl.ko
|
||||||
AUTOLOAD:=$(call AutoProbe,video pwm_bl)
|
AUTOLOAD:=$(call AutoProbe,video pwm_bl)
|
||||||
|
|||||||
Reference in New Issue
Block a user