[openwrt/openwrt] target.mk: Fix features detection for PWM
LEDE Commits
lede-commits at lists.infradead.org
Fri Mar 28 04:38:41 PDT 2025
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/2adc6293f4fc21e264e079126e1395ec9812147d
commit 2adc6293f4fc21e264e079126e1395ec9812147d
Author: Weikai Kong <priv at pppig236.com>
AuthorDate: Sat Mar 15 13:09:54 2025 -0400
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 at pppig236.com>
Link: https://github.com/openwrt/openwrt/pull/18185
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
include/target.mk | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/target.mk b/include/target.mk
index a4428efab7..f789f2377f 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
More information about the lede-commits
mailing list