From nobody Fri Dec 27 04:49:50 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1499873578581534.8889636521249; Wed, 12 Jul 2017 08:32:58 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 14C1F21CF25CC; Wed, 12 Jul 2017 08:31:08 -0700 (PDT) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E86B821D0B65C for ; Wed, 12 Jul 2017 08:31:06 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP; 12 Jul 2017 08:32:54 -0700 Received: from mdkinney-mobl1.amr.corp.intel.com ([10.241.98.128]) by fmsmga004.fm.intel.com with ESMTP; 12 Jul 2017 08:32:53 -0700 X-Original-To: edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,350,1496127600"; d="scan'208";a="286030669" From: Michael D Kinney To: edk2-devel@lists.01.org Date: Wed, 12 Jul 2017 08:32:52 -0700 Message-Id: <20170712153252.18760-1-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.13.1.windows.2 Subject: [edk2] [Patch] BaseTools/Build: Support python scripts in PREBUILD/POSTBUILD X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Kinney , Liming Gao MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" From: Michael Kinney https://bugzilla.tianocore.org/show_bug.cgi?id=3D627 Add shell=3DTrue in Popen() calls to support direct execution of python scripts Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney Reviewed-by: Yonghong Zhu =20 --- BaseTools/Source/Python/build/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Pyth= on/build/build.py index cfd28a4b5b..1e14fb4dcc 100644 --- a/BaseTools/Source/Python/build/build.py +++ b/BaseTools/Source/Python/build/build.py @@ -1036,7 +1036,7 @@ class Build(): os.remove(self.PlatformBuildPath) if sys.platform =3D=3D "win32": args =3D ' && '.join((self.Prebuild, 'set > ' + PrebuildEn= vFile)) - Process =3D Popen(args, stdout=3DPIPE, stderr=3DPIPE) + Process =3D Popen(args, stdout=3DPIPE, stderr=3DPIPE, shel= l=3DTrue) else: args =3D ' && '.join((self.Prebuild, 'env > ' + PrebuildEn= vFile)) Process =3D Popen(args, stdout=3DPIPE, stderr=3DPIPE, shel= l=3DTrue) @@ -1079,7 +1079,7 @@ class Build(): if self.Postbuild: EdkLogger.info("\n- Postbuild Start -\n") if sys.platform =3D=3D "win32": - Process =3D Popen(self.Postbuild, stdout=3DPIPE, stderr=3D= PIPE) + Process =3D Popen(self.Postbuild, stdout=3DPIPE, stderr=3D= PIPE, shell=3DTrue) else: Process =3D Popen(self.Postbuild, stdout=3DPIPE, stderr=3D= PIPE, shell=3DTrue) # launch two threads to read the STDOUT and STDERR --=20 2.13.1.windows.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel