From 2adc6293f4fc21e264e079126e1395ec9812147d Mon Sep 17 00:00:00 2001 From: Weikai Kong Date: Sat, 15 Mar 2025 13:09:54 -0400 Subject: [PATCH] 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 Link: https://github.com/openwrt/openwrt/pull/18185 Signed-off-by: Robert Marko --- include/target.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/target.mk b/include/target.mk index a4428efab71..f789f2377f9 100644 --- a/include/target.mk +++ b/include/target.mk @@ -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