QemuBuild.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  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 = ("ArmVirtPkg",)
  20. ArchSupported = ("AARCH64", "ARM")
  21. TargetsSupported = ("DEBUG", "RELEASE", "NOOPT")
  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", "ArmVirtQemu.dsc")
  26. # this platform produces a bootable NOR flash image
  27. FvQemuArg = " -pflash "
  28. import PlatformBuildLib
  29. PlatformBuildLib.CommonPlatform = CommonPlatform