summaryrefslogtreecommitdiffstats
path: root/UefiPayloadPkg/UniversalPayloadBuild.sh
blob: 9a72eedd3582f097f29e113f5dd8e9a4446f6053 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
#
# Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#

if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then
    echo python_exe=${PYTHON_COMMAND}
fi

# Get file path of UniversalPayloadBuild.sh
uplbld_filepath=${BASH_SOURCE:-$0}
# Remove ".sh" extension
uplbld_filepath_noext=${uplbld_filepath%.*}
# execute UniversalPayloadBuild.py to build UefiPayloadPkg
exec "${python_exe:-python}" "$uplbld_filepath_noext.py" "$@"