QemuKernelBuild.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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", "ArmVirtQemuKernel.dsc")
  26. # this platform produces an executable image that is invoked using
  27. # the Linux/arm64 kernel boot protocol
  28. FvQemuArg = " -kernel "
  29. import PlatformBuildLib
  30. PlatformBuildLib.CommonPlatform = CommonPlatform