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 |
|
---|
8 | if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then
|
---|
9 | echo python_exe=${PYTHON_COMMAND}
|
---|
10 | fi
|
---|
11 |
|
---|
12 | # Get file path of UniversalPayloadBuild.sh
|
---|
13 | uplbld_filepath=${BASH_SOURCE:-$0}
|
---|
14 | # Remove ".sh" extension
|
---|
15 | uplbld_filepath_noext=${uplbld_filepath%.*}
|
---|
16 | # execute UniversalPayloadBuild.py to build UefiPayloadPkg
|
---|
17 | exec "${python_exe:-python}" "$uplbld_filepath_noext.py" "$@"
|
---|