[edk2-devel] [PATCH] BaseTools: Add BaseTools/Scripts/ to the PATH.

Yuwei Chen yuwei.chen at intel.com
Fri Nov 13 08:15:34 UTC 2020


Reviewed-by: Yuwei Chen<yuwei.chen at intel.com>

> -----Original Message-----
> From: Mingyue Liang <mingyuex.liang at intel.com>
> Sent: Friday, November 13, 2020 2:08 PM
> To: devel at edk2.groups.io
> Cc: Feng, Bob C <bob.c.feng at intel.com>; Liming Gao
> <gaoliming at byosoft.com.cn>; Chen, Christine <yuwei.chen at 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 at intel.com>
> Cc: Bob Feng <bob.c.feng at intel.com>
> Cc: Liming Gao <gaoliming at byosoft.com.cn>
> Cc: Yuwei Chen <yuwei.chen at 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



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#67519): https://edk2.groups.io/g/devel/message/67519
Mute This Topic: https://groups.io/mt/78224561/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list