targets: add USES_PM auto-feature

Not all targets support power management, some older or more simple
targets don't have CONFIG_PM set. Allow kernel module packages to
depend on USES_PM to only be available on targets which got
CONFIG_PM=y in their kernel config.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle
2025-07-17 21:00:00 +01:00
parent da4342c6db
commit 85f27367ea
3 changed files with 7 additions and 0 deletions

View File

@@ -318,6 +318,9 @@ ifeq ($(DUMP),1)
ifneq ($(CONFIG_PINCTRL),)
FEATURES += pinctrl
endif
ifneq ($(CONFIG_PM),)
FEATURES += pm
endif
ifneq ($(CONFIG_PWM),)
FEATURES += pwm
endif