UniversalPayloadBuild.sh 505 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. #
  3. # Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
  4. #
  5. # SPDX-License-Identifier: BSD-2-Clause-Patent
  6. #
  7. if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then
  8. echo python_exe=${PYTHON_COMMAND}
  9. fi
  10. # Get file path of UniversalPayloadBuild.sh
  11. uplbld_filepath=${BASH_SOURCE:-$0}
  12. # Remove ".sh" extension
  13. uplbld_filepath_noext=${uplbld_filepath%.*}
  14. # execute UniversalPayloadBuild.py to build UefiPayloadPkg
  15. exec "${python_exe:-python}" "$uplbld_filepath_noext.py" "$@"