build_board.py 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # @ build_board.py
  2. # This is a sample code provides Optional dynamic imports
  3. # of build functions to the BuildBios.py script
  4. #
  5. # Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
  6. # SPDX-License-Identifier: BSD-2-Clause-Patent
  7. #
  8. """
  9. This module serves as a sample implementation of the build extension
  10. scripts
  11. """
  12. def pre_build_ex(config, functions):
  13. """Additional Pre BIOS build function
  14. :param config: The environment variables to be used in the build process
  15. :type config: Dictionary
  16. :param functions: A dictionary of function pointers
  17. :type functions: Dictionary
  18. :returns: nothing
  19. """
  20. print("pre_build_ex")
  21. return None
  22. def build_ex(config, functions):
  23. """Additional BIOS build function
  24. :param config: The environment variables to be used in the build process
  25. :type config: Dictionary
  26. :param functions: A dictionary of function pointers
  27. :type functions: Dictionary
  28. :returns: config dictionary
  29. :rtype: Dictionary
  30. """
  31. print("build_ex")
  32. return None
  33. def post_build_ex(config, functions):
  34. """Additional Post BIOS build function
  35. :param config: The environment variables to be used in the post
  36. build process
  37. :type config: Dictionary
  38. :param functions: A dictionary of function pointers
  39. :type functions: Dictionary
  40. :returns: config dictionary
  41. :rtype: Dictionary
  42. """
  43. print("post_build_ex")
  44. return None
  45. def clean_ex(config, functions):
  46. """Additional clean function
  47. :param config: The environment variables to be used in the build process
  48. :type config: Dictionary
  49. :param functions: A dictionary of function pointers
  50. :type functions: Dictionary
  51. :returns: config dictionary
  52. :rtype: Dictionary
  53. """
  54. print("clean_ex")
  55. return None