From: Weikai Kong Date: Sat, 15 Mar 2025 17:09:54 +0000 (-0400) Subject: target.mk: Fix features detection for PWM X-Git-Tag: v25.12.0-rc1~3254 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2adc6293f4fc21e264e079126e1395ec9812147d;p=thirdparty%2Fopenwrt.git 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 --- 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