* [PATCH] BaseTools: Add BaseTools/Scripts/ to the PATH.
@ 2020-11-13 6:07 Mingyue Liang
2020-11-13 8:15 ` Yuwei Chen
0 siblings, 1 reply; 2+ messages in thread
From: Mingyue Liang @ 2020-11-13 6:07 UTC (permalink / raw)
To: devel; +Cc: Bob Feng, Liming Gao, Yuwei Chen
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 <mingyuex.liang@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] BaseTools: Add BaseTools/Scripts/ to the PATH.
2020-11-13 6:07 [PATCH] BaseTools: Add BaseTools/Scripts/ to the PATH Mingyue Liang
@ 2020-11-13 8:15 ` Yuwei Chen
0 siblings, 0 replies; 2+ messages in thread
From: Yuwei Chen @ 2020-11-13 8:15 UTC (permalink / raw)
To: Liang, MingyueX, devel@edk2.groups.io; +Cc: Feng, Bob C, Liming Gao
Reviewed-by: Yuwei Chen<yuwei.chen@intel.com>
> -----Original Message-----
> From: Mingyue Liang <mingyuex.liang@intel.com>
> Sent: Friday, November 13, 2020 2:08 PM
> To: devel@edk2.groups.io
> Cc: Feng, Bob C <bob.c.feng@intel.com>; Liming Gao
> <gaoliming@byosoft.com.cn>; Chen, Christine <yuwei.chen@intel.com>
> Subject: [PATCH] BaseTools: Add BaseTools/Scripts/ to the PATH.
>
> 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 <mingyuex.liang@intel.com>
> Cc: Bob Feng <bob.c.feng@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Yuwei Chen <yuwei.chen@intel.com>
> ---
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-13 8:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-13 6:07 [PATCH] BaseTools: Add BaseTools/Scripts/ to the PATH Mingyue Liang
2020-11-13 8:15 ` Yuwei Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox