[edk2-devel] [PATCH] UefiPayloadPkg: Provide a wrapper for UniversalPayloadBuild.py

victorx.hsu at intel.com victorx.hsu at intel.com
Tue Sep 20 09:32:27 UTC 2022


From: VictorX Hsu <victorx.hsu at intel.com>

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

Provide a wrapper to wrap UniversalPayloadBuild.py

Cc: Guo Dong <guo.dong at intel.com>
Cc: James Lu <james.lu at intel.com>
Signed-off-by: VictorX Hsu <victorx.hsu at intel.com>
---
 UefiPayloadPkg/UniversalPayloadBuild | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 UefiPayloadPkg/UniversalPayloadBuild

diff --git a/UefiPayloadPkg/UniversalPayloadBuild b/UefiPayloadPkg/UniversalPayloadBuild
new file mode 100644
index 0000000000..fc3c2aadc9
--- /dev/null
+++ b/UefiPayloadPkg/UniversalPayloadBuild
@@ -0,0 +1,14 @@
+#!/bin/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
+
+upl_bldfile_path=${BASH_SOURCE:-$0}
+echo "upl_bldfile_path=$upl_bldfile_path"
+exec "${python_exe:-python}" "$upl_bldfile_path.py" "$@"
-- 
2.28.0.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#93986): https://edk2.groups.io/g/devel/message/93986
Mute This Topic: https://groups.io/mt/93800833/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list