From 3c0d567c3719675b9d8ecf07c31706d96467e31b Mon Sep 17 00:00:00 2001 From: VictorX Hsu Date: Mon, 26 Sep 2022 18:48:24 +0800 Subject: [PATCH] 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 Reviewed-by: James Lu Signed-off-by: VictorX Hsu --- UefiPayloadPkg/UniversalPayloadBuild.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 UefiPayloadPkg/UniversalPayloadBuild.sh diff --git a/UefiPayloadPkg/UniversalPayloadBuild.sh b/UefiPayloadPkg/UniversalPayloadBuild.sh new file mode 100644 index 0000000000..9a72eedd35 --- /dev/null +++ b/UefiPayloadPkg/UniversalPayloadBuild.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +# +# Copyright (c) 2022, Intel Corporation. All rights reserved.
+# +# 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" "$@"