diff options
| author | Weikai Kong | 2025-03-15 17:09:54 +0000 |
|---|---|---|
| committer | Robert Marko | 2025-03-28 11:38:33 +0000 |
| commit | 2adc6293f4fc21e264e079126e1395ec9812147d (patch) | |
| tree | d67e8300e17b4da1bd59e781835a7a4945620a3d | |
| parent | 284f37ed807dfac5e46cae0baf1e00a2e445e41c (diff) | |
| download | openwrt-2adc6293f4fc21e264e079126e1395ec9812147d.tar.gz | |
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@pppig236.com>
Link: https://github.com/openwrt/openwrt/pull/18185
Signed-off-by: Robert Marko <robimarko@gmail.com>
| -rw-r--r-- | include/target.mk | 3 |
1 files changed, 3 insertions, 0 deletions
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 |