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

victorx.hsu@intel.com posted 1 patch 1 year, 7 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/edk2 tags/patchew/385229cc9e2ca87779e3635091b451b6ef0d1e55.1664183334.git.victorx.hsu@intel.com
UefiPayloadPkg/UniversalPayloadBuild.sh | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 UefiPayloadPkg/UniversalPayloadBuild.sh
[edk2-devel] [PATCH] UefiPayloadPkg: Provide a wrapper for UniversalPayloadBuild.py
Posted by victorx.hsu@intel.com 1 year, 7 months ago
From: VictorX Hsu <victorx.hsu@intel.com>

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

Provide a wrapper to wrap UniversalPayloadBuild.py

Cc: Guo Dong <guo.dong@intel.com>
Cc: James Lu <james.lu@intel.com>
Signed-off-by: VictorX Hsu <victorx.hsu@intel.com>
---
 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.<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" "$@"
-- 
2.28.0.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#94373): https://edk2.groups.io/g/devel/message/94373
Mute This Topic: https://groups.io/mt/93800833/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH] UefiPayloadPkg: Provide a wrapper for UniversalPayloadBuild.py
Posted by Lu, James 1 year, 7 months ago
Reviewed-by: James Lu <james.lu@intel.com>


Thanks,
James

-----Original Message-----
From: Hsu, VictorX <victorx.hsu@intel.com> 
Sent: Monday, September 26, 2022 5:09 PM
To: devel@edk2.groups.io
Cc: Hsu, VictorX <victorx.hsu@intel.com>; Dong, Guo <guo.dong@intel.com>; Lu, James <james.lu@intel.com>
Subject: [PATCH] UefiPayloadPkg: Provide a wrapper for UniversalPayloadBuild.py

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

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

Provide a wrapper to wrap UniversalPayloadBuild.py

Cc: Guo Dong <guo.dong@intel.com>
Cc: James Lu <james.lu@intel.com>
Signed-off-by: VictorX Hsu <victorx.hsu@intel.com>
---
 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.<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" "$@"
--
2.28.0.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#94342): https://edk2.groups.io/g/devel/message/94342
Mute This Topic: https://groups.io/mt/93800833/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-