public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] UefiPayloadPkg: Provide a wrapper for UniversalPayloadBuild.py
@ 2022-09-21  2:18 victorx.hsu
  2022-09-21  5:16 ` Guo Dong
  2022-09-21  7:17 ` Lu, James
  0 siblings, 2 replies; 6+ messages in thread
From: victorx.hsu @ 2022-09-21  2:18 UTC (permalink / raw)
  To: devel; +Cc: VictorX Hsu, Guo Dong, James Lu

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 | 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


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [PATCH] UefiPayloadPkg: Provide a wrapper for UniversalPayloadBuild.py
@ 2022-09-26  9:09 victorx.hsu
  2022-09-26  9:42 ` Lu, James
  0 siblings, 1 reply; 6+ messages in thread
From: victorx.hsu @ 2022-09-26  9:09 UTC (permalink / raw)
  To: devel; +Cc: VictorX Hsu, Guo Dong, James Lu

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


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [PATCH] UefiPayloadPkg: Provide a wrapper for UniversalPayloadBuild.py
@ 2022-09-20  9:32 victorx.hsu
  0 siblings, 0 replies; 6+ messages in thread
From: victorx.hsu @ 2022-09-20  9:32 UTC (permalink / raw)
  To: devel; +Cc: VictorX Hsu, Guo Dong, James Lu

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 | 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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-09-26  9:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-21  2:18 [PATCH] UefiPayloadPkg: Provide a wrapper for UniversalPayloadBuild.py victorx.hsu
2022-09-21  5:16 ` Guo Dong
2022-09-21  7:17 ` Lu, James
  -- strict thread matches above, loose matches on Subject: below --
2022-09-26  9:09 victorx.hsu
2022-09-26  9:42 ` Lu, James
2022-09-20  9:32 victorx.hsu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox