target.mk: Fix features detection for PWM

kmod-leds-pwm depends on @PWM_SUPPORT, instead of adding pwm to the
features env for specific targets, use the existing detection method.

Signed-off-by: Weikai Kong <priv@pppig236.com>
Link: https://github.com/openwrt/openwrt/pull/18185
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Weikai Kong authored and Robert Marko committed 2025-03-28 12:38:33 +01:00
1 parent 284f37ed80
commit 2adc6293f4
1 file changed
+3
+3
View File
@@ -314,6 +314,9 @@ ifeq ($(DUMP),1)
ifneq ($(CONFIG_PCIEPORTBUS),)
FEATURES += pcie
endif
ifneq ($(CONFIG_PWM),)
FEATURES += pwm
endif
ifneq ($(CONFIG_USB)$(CONFIG_USB_SUPPORT),)
ifneq ($(CONFIG_USB_ARCH_HAS_HCD)$(CONFIG_USB_EHCI_HCD),)
FEATURES += usb