From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web08.734.1605247689264861938 for ; Thu, 12 Nov 2020 22:08:09 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: mingyuex.liang@intel.com) IronPort-SDR: epza5alXycCVEMS3HUsJYOdzhoTyZBJLcUkOxRPBXXf65yepc1gxxEUaJMnVs5+byxPA1IGYJY S1tWzIcq75jw== X-IronPort-AV: E=McAfee;i="6000,8403,9803"; a="166923837" X-IronPort-AV: E=Sophos;i="5.77,474,1596524400"; d="scan'208";a="166923837" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Nov 2020 22:07:58 -0800 IronPort-SDR: qZq5tdDoHmZknTTEqn3+lAMG6SS9zbdJ1hNdqlI+NLytt0ujEd2NmStVqx1O9fO6gbWvYXqXb2 QzRmVZ4KJi6Q== X-IronPort-AV: E=Sophos;i="5.77,474,1596524400"; d="scan'208";a="542547580" Received: from bob-desktop.ccr.corp.intel.com ([10.239.49.71]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Nov 2020 22:07:56 -0800 From: "Mingyue Liang" To: devel@edk2.groups.io Cc: Bob Feng , Liming Gao , Yuwei Chen Subject: [PATCH] BaseTools: Add BaseTools/Scripts/ to the PATH. Date: Fri, 13 Nov 2020 14:07:51 +0800 Message-Id: <20201113060751.1306-1-mingyuex.liang@intel.com> X-Mailer: git-send-email 2.29.2.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2859 In order to have any scripts in the basetools/scripts location, you need to add the location to the path. Signed-off-by: Mingyue Liang Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen --- BaseTools/BuildEnv | 1 + BaseTools/toolsetup.bat | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/BaseTools/BuildEnv b/BaseTools/BuildEnv index 5943bb9ef9..15d9f599ea 100755 --- a/BaseTools/BuildEnv +++ b/BaseTools/BuildEnv @@ -183,6 +183,7 @@ AddDirToStartOfPath() { PATH=$DIRNAME:$DIRNAME:$DIRNAME:$PATH PATH=${PATH//$DIRNAME:/} PATH=$DIRNAME:$PATH + PATH=$EDK_TOOLS_PATH/Scripts:$PATH export PATH } diff --git a/BaseTools/toolsetup.bat b/BaseTools/toolsetup.bat index 61ebf4ae09..44c695f83e 100755 --- a/BaseTools/toolsetup.bat +++ b/BaseTools/toolsetup.bat @@ -143,7 +143,7 @@ if /I "%1"=="/?" goto Usage echo. ) ) - set PATH=%EDK_TOOLS_BIN%;%PATH% + set PATH=%EDK_TOOLS_BIN%;%PATH%;%EDK_TOOLS_PATH%\Scripts set WORKSPACE_TOOLS_PATH=%EDK_TOOLS_PATH% goto PATH_ok -- 2.29.1.windows.1