KvmToolBuild.py 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. # @file
  2. # Script to Build ArmVirtPkg UEFI firmware
  3. #
  4. # Copyright (c) Microsoft Corporation.
  5. # SPDX-License-Identifier: BSD-2-Clause-Patent
  6. ##
  7. import os
  8. import sys
  9. sys.path.append(os.path.dirname(os.path.abspath(__file__)))
  10. from PlatformBuildLib import SettingsManager
  11. from PlatformBuildLib import PlatformBuilder
  12. # ####################################################################################### #
  13. # Common Configuration #
  14. # ####################################################################################### #
  15. class CommonPlatform():
  16. ''' Common settings for this platform. Define static data here and use
  17. for the different parts of stuart
  18. '''
  19. PackagesSupported = ("ArmVirtPkg",)
  20. ArchSupported = ("AARCH64", "ARM")
  21. TargetsSupported = ("DEBUG", "RELEASE")
  22. Scopes = ('armvirt', 'edk2-build')
  23. WorkspaceRoot = os.path.realpath(os.path.join(
  24. os.path.dirname(os.path.abspath(__file__)), "..", ".."))
  25. DscName = os.path.join("ArmVirtPkg", "ArmVirtKvmTool.dsc")
  26. FvQemuArg = "" # ignored
  27. import PlatformBuildLib
  28. PlatformBuildLib.CommonPlatform = CommonPlatform