target.mk: Fix features detection for PWM
authorWeikai Kong <[email protected]>
Sat, 15 Mar 2025 17:09:54 +0000 (13:09 -0400)
committerRobert Marko <[email protected]>
Fri, 28 Mar 2025 11:38:33 +0000 (12:38 +0100)
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 <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/18185
Signed-off-by: Robert Marko <[email protected]>
include/target.mk

index a4428efab710ddd597190e3be5b779704de1d361..f789f2377f9dcde916c879c3ba6ffffcb0b38927 100644 (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