Skip to content

Commit 2adc629

Browse files
PIPIPIG233666robimarko
authored andcommitted
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 <[email protected]> Link: openwrt/openwrt#18185 Signed-off-by: Robert Marko <[email protected]>
1 parent 284f37e commit 2adc629

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/target.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,9 @@ ifeq ($(DUMP),1)
314314
ifneq ($(CONFIG_PCIEPORTBUS),)
315315
FEATURES += pcie
316316
endif
317+
ifneq ($(CONFIG_PWM),)
318+
FEATURES += pwm
319+
endif
317320
ifneq ($(CONFIG_USB)$(CONFIG_USB_SUPPORT),)
318321
ifneq ($(CONFIG_USB_ARCH_HAS_HCD)$(CONFIG_USB_EHCI_HCD),)
319322
FEATURES += usb

0 commit comments

Comments
 (0)