From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 57FCFD8083D for ; Sat, 18 Nov 2023 06:37:03 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=G+35fuoY0pC7Ok3DDCxh5S4cYQi2XvyGrypBtggOo2M=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1700289421; v=1; b=wjlhLCQigF3rUbH5V1lYCZqDggj+6EyimrARJP0mrNB9RmpGCeiFKPK8IY/bT63guAXTlGtu cYsTfxz7vYXMK9i+tOTDKjHV4SU98JRbPajqyLT8UnNX8vHUTl7IWgFQOuCwHuyZWD1zaR4bGwS TDPlWR7Fu0Fhs9cYH1i9Du6U= X-Received: by 127.0.0.2 with SMTP id Uw8MYY7687511xONnkUbQZnl; Fri, 17 Nov 2023 22:37:01 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web10.4487.1700289420573124309 for ; Fri, 17 Nov 2023 22:37:01 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10897"; a="371587469" X-IronPort-AV: E=Sophos;i="6.04,207,1695711600"; d="scan'208";a="371587469" X-Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2023 22:37:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,207,1695711600"; d="scan'208";a="14109001" X-Received: from nldesimo-desk.amr.corp.intel.com ([10.241.240.67]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2023 22:37:00 -0800 From: "Nate DeSimone" To: devel@edk2.groups.io Cc: Chasel Chiu Subject: [edk2-devel] [edk2-platforms][PATCH v1] PurleyOpenBoardPkg: Replace Python Interpreter Name Date: Fri, 17 Nov 2023 22:36:28 -0800 Message-Id: <20231118063629.1397-2-nathaniel.l.desimone@intel.com> In-Reply-To: <20231118063629.1397-1-nathaniel.l.desimone@intel.com> References: <20231118063629.1397-1-nathaniel.l.desimone@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,nathaniel.l.desimone@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: uFs3P29ZSGMrLlCGEjHUG6wUx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=wjlhLCQi; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none) Removes the assumption that the python interpreter will have the name python. Cc: Chasel Chiu Signed-off-by: Nate DeSimone --- .../PurleyOpenBoardPkg/BoardMtOlympus/build_board.py | 8 ++++---- .../PurleyOpenBoardPkg/BoardTiogaPass/build_board.py | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Platform/Intel/PurleyOpenBoardPkg/BoardMtOlympus/build_board.py b/Platform/Intel/PurleyOpenBoardPkg/BoardMtOlympus/build_board.py index 2ba615d3e4..ffe762e289 100644 --- a/Platform/Intel/PurleyOpenBoardPkg/BoardMtOlympus/build_board.py +++ b/Platform/Intel/PurleyOpenBoardPkg/BoardMtOlympus/build_board.py @@ -1,7 +1,7 @@ # @ build_board.py # This adds additional functions to the build_bios.py # -# Copyright (c) 2019, Intel Corporation. All rights reserved.
+# Copyright (c) 2019 - 2023, Intel Corporation. All rights reserved.
# SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -48,7 +48,7 @@ def pre_build_ex(config, functions): print("AML_FILTER= ", config.get("AML_FILTER")) # build the command with arguments - command = ["python", + command = [sys.executable, os.path.join(config["MIN_PACKAGE_TOOLS"], "AmlGenOffset", "AmlGenOffset.py"), @@ -110,7 +110,7 @@ def post_build_ex(config, functions): print("post_build_ex Error") sys.exit(1) - common_patch_command = [os.path.join(config["PYTHON_HOME"], "python"), + common_patch_command = [sys.executable, os.path.join(config["MIN_PACKAGE_TOOLS"], "PatchFv", "PatchBinFv.py"), config["TARGET"], @@ -131,7 +131,7 @@ def post_build_ex(config, functions): print("Patch Error!") sys.exit(1) - common_rebase_command = [os.path.join(config["PYTHON_HOME"], "python"), + common_rebase_command = [sys.executable, os.path.join(config["MIN_PACKAGE_TOOLS"], "PatchFv", "RebaseBinFv.py"), config["TARGET"], diff --git a/Platform/Intel/PurleyOpenBoardPkg/BoardTiogaPass/build_board.py b/Platform/Intel/PurleyOpenBoardPkg/BoardTiogaPass/build_board.py index 46fd389ef1..3b66df7115 100644 --- a/Platform/Intel/PurleyOpenBoardPkg/BoardTiogaPass/build_board.py +++ b/Platform/Intel/PurleyOpenBoardPkg/BoardTiogaPass/build_board.py @@ -1,7 +1,7 @@ # @ build_board.py # This adds additional functions to the build_bios.py # -# Copyright (c) 2018, Intel Corporation. All rights reserved.
+# Copyright (c) 2018 - 2023, Intel Corporation. All rights reserved.
# Copyright (c) 2021, American Megatrends International LLC.
# SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -49,7 +49,7 @@ def pre_build_ex(config, functions): print("AML_FILTER= ", config.get("AML_FILTER")) # build the command with arguments - command = ["python", + command = [sys.executable, os.path.join(config["MIN_PACKAGE_TOOLS"], "AmlGenOffset", "AmlGenOffset.py"), @@ -111,7 +111,7 @@ def post_build_ex(config, functions): print("post_build_ex Error") sys.exit(1) - common_patch_command = [os.path.join(config["PYTHON_HOME"], "python"), + common_patch_command = [sys.executable, os.path.join(config["MIN_PACKAGE_TOOLS"], "PatchFv", "PatchBinFv.py"), config["TARGET"], @@ -132,7 +132,7 @@ def post_build_ex(config, functions): print("Patch Error!") sys.exit(1) - common_rebase_command = [os.path.join(config["PYTHON_HOME"], "python"), + common_rebase_command = [sys.executable, os.path.join(config["MIN_PACKAGE_TOOLS"], "PatchFv", "RebaseBinFv.py"), config["TARGET"], @@ -161,7 +161,7 @@ def post_build_ex(config, functions): print("Patch Error!") sys.exit(1) - common_patchbfv_command = [os.path.join(config["PYTHON_HOME"], "python"), + common_patchbfv_command = [sys.executable, os.path.join(config["MIN_PACKAGE_TOOLS"], "PatchFv", "PatchBfv.py"), os.path.join(config["BUILD_DIR_PATH"], -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111423): https://edk2.groups.io/g/devel/message/111423 Mute This Topic: https://groups.io/mt/102667305/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-