UefiPayloadPkg: Provide a wrapper for UniversalPayloadBuild.py

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4071

Provide a wrapper to wrap UniversalPayloadBuild.py

Reviewed-by: Guo Dong <guo.dong@intel.com>
Reviewed-by: James Lu <james.lu@intel.com>
Signed-off-by: VictorX Hsu <victorx.hsu@intel.com>
This commit is contained in:
VictorX Hsu 2022-09-26 18:48:24 +08:00 committed by James Lu
parent f4d539007c
commit 3c0d567c37
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,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" "$@"