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>
This commit is contained in:
parent
284f37ed80
commit
2adc6293f4
1 changed files with 3 additions and 0 deletions
|
@ -314,6 +314,9 @@ ifeq ($(DUMP),1)
|
||||||
ifneq ($(CONFIG_PCIEPORTBUS),)
|
ifneq ($(CONFIG_PCIEPORTBUS),)
|
||||||
FEATURES += pcie
|
FEATURES += pcie
|
||||||
endif
|
endif
|
||||||
|
ifneq ($(CONFIG_PWM),)
|
||||||
|
FEATURES += pwm
|
||||||
|
endif
|
||||||
ifneq ($(CONFIG_USB)$(CONFIG_USB_SUPPORT),)
|
ifneq ($(CONFIG_USB)$(CONFIG_USB_SUPPORT),)
|
||||||
ifneq ($(CONFIG_USB_ARCH_HAS_HCD)$(CONFIG_USB_EHCI_HCD),)
|
ifneq ($(CONFIG_USB_ARCH_HAS_HCD)$(CONFIG_USB_EHCI_HCD),)
|
||||||
FEATURES += usb
|
FEATURES += usb
|
||||||
|
|
Loading…
Reference in a new issue