XenBuild.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # @file
  2. # Script to Build OVMF 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 = ("OvmfPkg",)
  20. ArchSupported = ("X64",)
  21. TargetsSupported = ("DEBUG", "RELEASE", "NOOPT")
  22. Scopes = ('ovmf', 'edk2-build')
  23. WorkspaceRoot = os.path.realpath(os.path.join(
  24. os.path.dirname(os.path.abspath(__file__)), "..", ".."))
  25. @classmethod
  26. def GetDscName(cls, ArchCsv: str) -> str:
  27. ''' return the DSC given the architectures requested.
  28. ArchCsv: csv string containing all architectures to build
  29. '''
  30. return "OvmfXen.dsc"
  31. import PlatformBuildLib
  32. PlatformBuildLib.CommonPlatform = CommonPlatform