arch_features.mk 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #
  2. # Copyright (c) 2022, Arm Limited. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. # This file lists all the checks related to the Architectural Feature
  7. # Enablement flags, based on the Architectural version.
  8. # Enable the features which are mandatory from ARCH version 8.1 and upwards.
  9. ifeq "8.1" "$(word 1, $(sort 8.1 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
  10. ENABLE_FEAT_PAN = 1
  11. ENABLE_FEAT_VHE = 1
  12. endif
  13. # Enable the features which are mandatory from ARCH version 8.4 and upwards.
  14. ifeq "8.4" "$(word 1, $(sort 8.4 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
  15. ENABLE_FEAT_DIT = 1
  16. ENABLE_FEAT_SEL2 = 1
  17. endif
  18. # Enable the features which are mandatory from ARCH version 8.5 and upwards.
  19. ifeq "8.5" "$(word 1, $(sort 8.5 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
  20. ENABLE_FEAT_SB = 1
  21. endif
  22. # Enable the features which are mandatory from ARCH version 8.6 and upwards.
  23. ifeq "8.6" "$(word 1, $(sort 8.6 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
  24. ENABLE_FEAT_FGT = 1
  25. ENABLE_FEAT_ECV = 1
  26. endif
  27. # Enable the features which are mandatory from ARCH version 8.7 and upwards.
  28. ifeq "8.7" "$(word 1, $(sort 8.7 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
  29. ENABLE_FEAT_HCX = 1
  30. endif