pmu.mk 557 B

1234567891011121314151617181920212223242526
  1. #
  2. # Copyright 2021 NXP
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. #-----------------------------------------------------------------------------
  7. ifeq (${PMU_ADDED},)
  8. PMU_ADDED := 1
  9. PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/pmu
  10. PMU_SOURCES += $(PLAT_DRIVERS_PATH)/pmu/pmu.c
  11. ifeq (${BL_COMM_PMU_NEEDED},yes)
  12. BL_COMMON_SOURCES += ${PMU_SOURCES}
  13. else
  14. ifeq (${BL2_PMU_NEEDED},yes)
  15. BL2_SOURCES += ${PMU_SOURCES}
  16. endif
  17. ifeq (${BL31_PMU_NEEDED},yes)
  18. BL31_SOURCES += ${PMU_SOURCES}
  19. endif
  20. endif
  21. endif
  22. #------------------------------------------------