]> xenbits.xensource.com Git - people/aperard/ovmf.git/commitdiff
BaseTools: Remove Pip BaseTools
authorOliver Smith-Denny <osde@linux.microsoft.com>
Wed, 4 Sep 2024 17:02:09 +0000 (10:02 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 10 Sep 2024 00:41:53 +0000 (00:41 +0000)
BaseTools was moved out to a separate repo and consumed as a pip
module by edk2 CI. This process has not led to the desired goals
of doing so, so this patch removes the pip based BaseTools from
edk2 CI.

The original goal of moving BaseTools to a pip module was
primarily to speed up the development process, as the old edk2
mailing list was slow. However, with edk2 moving to PRs, it now
actually slows the BaseTools development process to have to do
a PR in another repo, publish the module, and then make a PR
in edk2 to consume the new BaseTools. It also holds up using
the features in a new BaseTools in other PRs.

There were other goals of moving, such as allowing projects to
use the BaseTools outside of edk2. This can still be accomplished
outside of this PR, this PR simply stops edk2 CI from using the
pip module.

Continuous-integration-options: PatchCheck.ignore-multi-package

Signed-off-by: Oliver Smith-Denny <osde@linux.microsoft.com>
53 files changed:
.pytool/CISettings.py
BaseTools/BinPipWrappers/PosixLike/AmlToC [deleted file]
BaseTools/BinPipWrappers/PosixLike/BPDG [deleted file]
BaseTools/BinPipWrappers/PosixLike/BrotliCompress [deleted file]
BaseTools/BinPipWrappers/PosixLike/DevicePath [deleted file]
BaseTools/BinPipWrappers/PosixLike/Ecc [deleted file]
BaseTools/BinPipWrappers/PosixLike/EfiRom [deleted file]
BaseTools/BinPipWrappers/PosixLike/GenCrc32 [deleted file]
BaseTools/BinPipWrappers/PosixLike/GenDepex [deleted file]
BaseTools/BinPipWrappers/PosixLike/GenFds [deleted file]
BaseTools/BinPipWrappers/PosixLike/GenFfs [deleted file]
BaseTools/BinPipWrappers/PosixLike/GenFv [deleted file]
BaseTools/BinPipWrappers/PosixLike/GenFw [deleted file]
BaseTools/BinPipWrappers/PosixLike/GenPatchPcdTable [deleted file]
BaseTools/BinPipWrappers/PosixLike/GenSec [deleted file]
BaseTools/BinPipWrappers/PosixLike/GenerateCapsule [deleted file]
BaseTools/BinPipWrappers/PosixLike/LzmaCompress [deleted file]
BaseTools/BinPipWrappers/PosixLike/LzmaF86Compress [deleted file]
BaseTools/BinPipWrappers/PosixLike/PatchPcdValue [deleted file]
BaseTools/BinPipWrappers/PosixLike/Pkcs7Sign [deleted file]
BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256GenerateKeys [deleted file]
BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256Sign [deleted file]
BaseTools/BinPipWrappers/PosixLike/Split [deleted file]
BaseTools/BinPipWrappers/PosixLike/TargetTool [deleted file]
BaseTools/BinPipWrappers/PosixLike/TianoCompress [deleted file]
BaseTools/BinPipWrappers/PosixLike/Trim [deleted file]
BaseTools/BinPipWrappers/PosixLike/UPT [deleted file]
BaseTools/BinPipWrappers/PosixLike/VfrCompile [deleted file]
BaseTools/BinPipWrappers/PosixLike/VolInfo [deleted file]
BaseTools/BinPipWrappers/PosixLike/build [deleted file]
BaseTools/BinPipWrappers/PosixLike/posix_path_env.yaml [deleted file]
BaseTools/BinPipWrappers/WindowsLike/AmlToC.bat [deleted file]
BaseTools/BinPipWrappers/WindowsLike/BPDG.bat [deleted file]
BaseTools/BinPipWrappers/WindowsLike/Ecc.bat [deleted file]
BaseTools/BinPipWrappers/WindowsLike/GenDepex.bat [deleted file]
BaseTools/BinPipWrappers/WindowsLike/GenFds.bat [deleted file]
BaseTools/BinPipWrappers/WindowsLike/GenPatchPcdTable.bat [deleted file]
BaseTools/BinPipWrappers/WindowsLike/GenerateCapsule.bat [deleted file]
BaseTools/BinPipWrappers/WindowsLike/PatchPcdValue.bat [deleted file]
BaseTools/BinPipWrappers/WindowsLike/Pkcs7Sign.bat [deleted file]
BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256GenerateKeys.bat [deleted file]
BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256Sign.bat [deleted file]
BaseTools/BinPipWrappers/WindowsLike/Split.bat [deleted file]
BaseTools/BinPipWrappers/WindowsLike/TargetTool.bat [deleted file]
BaseTools/BinPipWrappers/WindowsLike/Trim.bat [deleted file]
BaseTools/BinPipWrappers/WindowsLike/UPT.bat [deleted file]
BaseTools/BinPipWrappers/WindowsLike/build.bat [deleted file]
BaseTools/BinPipWrappers/WindowsLike/win_build_tools_path_env.yaml [deleted file]
BaseTools/BuildEnv
BaseTools/Scripts/PatchCheck.py
BaseTools/Source/Python/README.md [deleted file]
BaseTools/toolsetup.bat
pip-requirements.txt

index 314758da32e36b3ffcc501430f52b08fab069016..e14b77d4e29ed14a4c07aa4267750a7e898d6f0c 100644 (file)
@@ -37,7 +37,6 @@ class Settings(CiBuildSettingsManager, UpdateSettingsManager, SetupSettingsManag
         self.ActualTargets = []\r
         self.ActualArchitectures = []\r
         self.ActualToolChainTag = ""\r
-        self.UseBuiltInBaseTools = None\r
         self.ActualScopes = None\r
 \r
     # ####################################################################################### #\r
@@ -45,10 +44,6 @@ class Settings(CiBuildSettingsManager, UpdateSettingsManager, SetupSettingsManag
     # ####################################################################################### #\r
 \r
     def AddCommandLineOptions(self, parserObj):\r
-        group = parserObj.add_mutually_exclusive_group()\r
-        group.add_argument("-force_piptools", "--fpt", dest="force_piptools", action="store_true", default=False, help="Force the system to use pip tools")\r
-        group.add_argument("-no_piptools", "--npt", dest="no_piptools", action="store_true", default=False, help="Force the system to not use pip tools")\r
-\r
         try:\r
             codeql_helpers.add_command_line_option(parserObj)\r
         except NameError:\r
@@ -56,10 +51,6 @@ class Settings(CiBuildSettingsManager, UpdateSettingsManager, SetupSettingsManag
 \r
     def RetrieveCommandLineOptions(self, args):\r
         super().RetrieveCommandLineOptions(args)\r
-        if args.force_piptools:\r
-            self.UseBuiltInBaseTools = True\r
-        if args.no_piptools:\r
-            self.UseBuiltInBaseTools = False\r
 \r
         try:\r
             self.codeql = codeql_helpers.is_codeql_enabled_on_command_line(args)\r
@@ -176,24 +167,6 @@ class Settings(CiBuildSettingsManager, UpdateSettingsManager, SetupSettingsManag
 \r
             self.ActualToolChainTag = shell_environment.GetBuildVars().GetValue("TOOL_CHAIN_TAG", "")\r
 \r
-            is_linux = GetHostInfo().os.upper() == "LINUX"\r
-\r
-            if self.UseBuiltInBaseTools is None:\r
-                is_linux = GetHostInfo().os.upper() == "LINUX"\r
-                # try and import the pip module for basetools\r
-                try:\r
-                    import edk2basetools\r
-                    self.UseBuiltInBaseTools = True\r
-                except ImportError:\r
-                    self.UseBuiltInBaseTools = False\r
-                    pass\r
-\r
-            if self.UseBuiltInBaseTools == True:\r
-                scopes += ('pipbuild-unix',) if is_linux else ('pipbuild-win',)\r
-                logging.warning("Using Pip Tools based BaseTools")\r
-            else:\r
-                logging.warning("Falling back to using in-tree BaseTools")\r
-\r
             try:\r
                 scopes += codeql_helpers.get_scopes(self.codeql)\r
 \r
diff --git a/BaseTools/BinPipWrappers/PosixLike/AmlToC b/BaseTools/BinPipWrappers/PosixLike/AmlToC
deleted file mode 100755 (executable)
index 1dd28e9..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/env bash
-#python `dirname $0`/RunToolFromSource.py `basename $0` $*
-
-# If a ${PYTHON_COMMAND} command is available, use it in preference to python
-if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then
-    python_exe=${PYTHON_COMMAND}
-fi
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-dir=$(dirname "$full_cmd")
-exe=$(basename "$full_cmd")
-
-export PYTHONPATH="$dir/../../Source/Python${PYTHONPATH:+:"$PYTHONPATH"}"
-exec "${python_exe:-python}" "$dir/../../Source/Python/$exe/$exe.py" "$@"
diff --git a/BaseTools/BinPipWrappers/PosixLike/BPDG b/BaseTools/BinPipWrappers/PosixLike/BPDG
deleted file mode 100755 (executable)
index a08cbd8..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env bash
-#python `dirname $0`/RunToolFromSource.py `basename $0` $*
-
-# If a ${PYTHON_COMMAND} command is available, use it in preference to python
-if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then
-    python_exe=${PYTHON_COMMAND}
-fi
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-cmd=${full_cmd##*/}
-
-exec "${python_exe:-python}" -m edk2basetools.$cmd.EccMain "$@"
diff --git a/BaseTools/BinPipWrappers/PosixLike/BrotliCompress b/BaseTools/BinPipWrappers/PosixLike/BrotliCompress
deleted file mode 100755 (executable)
index 426f2a2..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/usr/bin/env bash
-#
-# This script will exec Brotli tool with -e/-d options.
-#
-# Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>
-# SPDX-License-Identifier: BSD-2-Clause-Patent
-#
-QLT="-q 9 -w 22"
-ARGS=
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-dir=$(dirname "$full_cmd")
-cmd=${full_cmd##*/}
-
-while test $# -gt 0
-do
-  case $1 in
-    -e)
-      ;;
-    -d)
-      ARGS+="$1 "
-      ;;
-    -o|-g)
-      ARGS+="$1 $2 "
-      shift
-      ;;
-    -q)
-      QLT="$1 $2 "
-      shift
-      ;;
-    *)
-      ARGS+="$1 "
-      ;;
-  esac
-  shift
-done
-
-
-if [ -n "$WORKSPACE" ] && [ -e "$WORKSPACE/Conf/BaseToolsCBinaries" ]
-then
-  exec "$WORKSPACE/Conf/BaseToolsCBinaries/$cmd"
-elif [ -n "$WORKSPACE" ] && [ -e "$EDK_TOOLS_PATH/Source/C" ]
-then
-  if [ ! -e "$EDK_TOOLS_PATH/Source/C/bin/$cmd" ]
-  then
-    echo "BaseTools C Tool binary was not found ($cmd)"
-    echo "You may need to run:"
-    echo "  make -C $EDK_TOOLS_PATH/Source/C"
-  else
-    exec "$EDK_TOOLS_PATH/Source/C/bin/$cmd" $QLT $ARGS
-  fi
-elif [ -e "$dir/../../Source/C/bin/$cmd" ]
-then
-  exec "$dir/../../Source/C/bin/$cmd" $QLT $ARGS
-else
-  echo "Unable to find the real '$cmd' to run"
-  echo "This message was printed by"
-  echo "  $0"
-  exit 127
-fi
diff --git a/BaseTools/BinPipWrappers/PosixLike/DevicePath b/BaseTools/BinPipWrappers/PosixLike/DevicePath
deleted file mode 100755 (executable)
index 0945d86..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env bash
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-dir=$(dirname "$full_cmd")
-cmd=${full_cmd##*/}
-
-if [ -n "$WORKSPACE" ] && [ -e "$WORKSPACE/Conf/BaseToolsCBinaries" ]
-then
-  exec "$WORKSPACE/Conf/BaseToolsCBinaries/$cmd"
-elif [ -n "$WORKSPACE" ] && [ -e "$EDK_TOOLS_PATH/Source/C" ]
-then
-  if [ ! -e "$EDK_TOOLS_PATH/Source/C/bin/$cmd" ]
-  then
-    echo "BaseTools C Tool binary was not found ($cmd)"
-    echo "You may need to run:"
-    echo "  make -C $EDK_TOOLS_PATH/Source/C"
-  else
-    exec "$EDK_TOOLS_PATH/Source/C/bin/$cmd" "$@"
-  fi
-elif [ -e "$dir/../../Source/C/bin/$cmd" ]
-then
-  exec "$dir/../../Source/C/bin/$cmd" "$@"
-else
-  echo "Unable to find the real '$cmd' to run"
-  echo "This message was printed by"
-  echo "  $0"
-  exit 127
-fi
-
diff --git a/BaseTools/BinPipWrappers/PosixLike/Ecc b/BaseTools/BinPipWrappers/PosixLike/Ecc
deleted file mode 100755 (executable)
index 5987289..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env bash
-#python `dirname $0`/RunToolFromSource.py `basename $0` $*
-
-# If a ${PYTHON_COMMAND} command is available, use it in preference to python
-if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then
-    python_exe=${PYTHON_COMMAND}
-fi
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-cmd=${full_cmd##*/}
-
-export PYTHONPATH="$dir/../../Source/Python${PYTHONPATH:+:"$PYTHONPATH"}"
-exec "${python_exe:-python}" -m $cmd.EccMain "$@"
diff --git a/BaseTools/BinPipWrappers/PosixLike/EfiRom b/BaseTools/BinPipWrappers/PosixLike/EfiRom
deleted file mode 100755 (executable)
index 0945d86..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env bash
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-dir=$(dirname "$full_cmd")
-cmd=${full_cmd##*/}
-
-if [ -n "$WORKSPACE" ] && [ -e "$WORKSPACE/Conf/BaseToolsCBinaries" ]
-then
-  exec "$WORKSPACE/Conf/BaseToolsCBinaries/$cmd"
-elif [ -n "$WORKSPACE" ] && [ -e "$EDK_TOOLS_PATH/Source/C" ]
-then
-  if [ ! -e "$EDK_TOOLS_PATH/Source/C/bin/$cmd" ]
-  then
-    echo "BaseTools C Tool binary was not found ($cmd)"
-    echo "You may need to run:"
-    echo "  make -C $EDK_TOOLS_PATH/Source/C"
-  else
-    exec "$EDK_TOOLS_PATH/Source/C/bin/$cmd" "$@"
-  fi
-elif [ -e "$dir/../../Source/C/bin/$cmd" ]
-then
-  exec "$dir/../../Source/C/bin/$cmd" "$@"
-else
-  echo "Unable to find the real '$cmd' to run"
-  echo "This message was printed by"
-  echo "  $0"
-  exit 127
-fi
-
diff --git a/BaseTools/BinPipWrappers/PosixLike/GenCrc32 b/BaseTools/BinPipWrappers/PosixLike/GenCrc32
deleted file mode 100755 (executable)
index 0945d86..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env bash
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-dir=$(dirname "$full_cmd")
-cmd=${full_cmd##*/}
-
-if [ -n "$WORKSPACE" ] && [ -e "$WORKSPACE/Conf/BaseToolsCBinaries" ]
-then
-  exec "$WORKSPACE/Conf/BaseToolsCBinaries/$cmd"
-elif [ -n "$WORKSPACE" ] && [ -e "$EDK_TOOLS_PATH/Source/C" ]
-then
-  if [ ! -e "$EDK_TOOLS_PATH/Source/C/bin/$cmd" ]
-  then
-    echo "BaseTools C Tool binary was not found ($cmd)"
-    echo "You may need to run:"
-    echo "  make -C $EDK_TOOLS_PATH/Source/C"
-  else
-    exec "$EDK_TOOLS_PATH/Source/C/bin/$cmd" "$@"
-  fi
-elif [ -e "$dir/../../Source/C/bin/$cmd" ]
-then
-  exec "$dir/../../Source/C/bin/$cmd" "$@"
-else
-  echo "Unable to find the real '$cmd' to run"
-  echo "This message was printed by"
-  echo "  $0"
-  exit 127
-fi
-
diff --git a/BaseTools/BinPipWrappers/PosixLike/GenDepex b/BaseTools/BinPipWrappers/PosixLike/GenDepex
deleted file mode 100755 (executable)
index df75e43..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env bash
-#python `dirname $0`/RunToolFromSource.py `basename $0` $*
-
-# If a ${PYTHON_COMMAND} command is available, use it in preference to python
-if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then
-    python_exe=${PYTHON_COMMAND}
-fi
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-cmd=${full_cmd##*/}
-
-exec "${python_exe:-python}" -m edk2basetools.AutoGen.$cmd "$@"
diff --git a/BaseTools/BinPipWrappers/PosixLike/GenFds b/BaseTools/BinPipWrappers/PosixLike/GenFds
deleted file mode 100755 (executable)
index b27e84e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env bash
-#python `dirname $0`/RunToolFromSource.py `basename $0` $*
-
-# If a ${PYTHON_COMMAND} command is available, use it in preference to python
-if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then
-    python_exe=${PYTHON_COMMAND}
-fi
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-cmd=${full_cmd##*/}
-
-exec "${python_exe:-python}" -m edk2basetools.$cmd "$@"
diff --git a/BaseTools/BinPipWrappers/PosixLike/GenFfs b/BaseTools/BinPipWrappers/PosixLike/GenFfs
deleted file mode 100755 (executable)
index 0945d86..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env bash
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-dir=$(dirname "$full_cmd")
-cmd=${full_cmd##*/}
-
-if [ -n "$WORKSPACE" ] && [ -e "$WORKSPACE/Conf/BaseToolsCBinaries" ]
-then
-  exec "$WORKSPACE/Conf/BaseToolsCBinaries/$cmd"
-elif [ -n "$WORKSPACE" ] && [ -e "$EDK_TOOLS_PATH/Source/C" ]
-then
-  if [ ! -e "$EDK_TOOLS_PATH/Source/C/bin/$cmd" ]
-  then
-    echo "BaseTools C Tool binary was not found ($cmd)"
-    echo "You may need to run:"
-    echo "  make -C $EDK_TOOLS_PATH/Source/C"
-  else
-    exec "$EDK_TOOLS_PATH/Source/C/bin/$cmd" "$@"
-  fi
-elif [ -e "$dir/../../Source/C/bin/$cmd" ]
-then
-  exec "$dir/../../Source/C/bin/$cmd" "$@"
-else
-  echo "Unable to find the real '$cmd' to run"
-  echo "This message was printed by"
-  echo "  $0"
-  exit 127
-fi
-
diff --git a/BaseTools/BinPipWrappers/PosixLike/GenFv b/BaseTools/BinPipWrappers/PosixLike/GenFv
deleted file mode 100755 (executable)
index 0945d86..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env bash
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-dir=$(dirname "$full_cmd")
-cmd=${full_cmd##*/}
-
-if [ -n "$WORKSPACE" ] && [ -e "$WORKSPACE/Conf/BaseToolsCBinaries" ]
-then
-  exec "$WORKSPACE/Conf/BaseToolsCBinaries/$cmd"
-elif [ -n "$WORKSPACE" ] && [ -e "$EDK_TOOLS_PATH/Source/C" ]
-then
-  if [ ! -e "$EDK_TOOLS_PATH/Source/C/bin/$cmd" ]
-  then
-    echo "BaseTools C Tool binary was not found ($cmd)"
-    echo "You may need to run:"
-    echo "  make -C $EDK_TOOLS_PATH/Source/C"
-  else
-    exec "$EDK_TOOLS_PATH/Source/C/bin/$cmd" "$@"
-  fi
-elif [ -e "$dir/../../Source/C/bin/$cmd" ]
-then
-  exec "$dir/../../Source/C/bin/$cmd" "$@"
-else
-  echo "Unable to find the real '$cmd' to run"
-  echo "This message was printed by"
-  echo "  $0"
-  exit 127
-fi
-
diff --git a/BaseTools/BinPipWrappers/PosixLike/GenFw b/BaseTools/BinPipWrappers/PosixLike/GenFw
deleted file mode 100755 (executable)
index 0945d86..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env bash
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-dir=$(dirname "$full_cmd")
-cmd=${full_cmd##*/}
-
-if [ -n "$WORKSPACE" ] && [ -e "$WORKSPACE/Conf/BaseToolsCBinaries" ]
-then
-  exec "$WORKSPACE/Conf/BaseToolsCBinaries/$cmd"
-elif [ -n "$WORKSPACE" ] && [ -e "$EDK_TOOLS_PATH/Source/C" ]
-then
-  if [ ! -e "$EDK_TOOLS_PATH/Source/C/bin/$cmd" ]
-  then
-    echo "BaseTools C Tool binary was not found ($cmd)"
-    echo "You may need to run:"
-    echo "  make -C $EDK_TOOLS_PATH/Source/C"
-  else
-    exec "$EDK_TOOLS_PATH/Source/C/bin/$cmd" "$@"
-  fi
-elif [ -e "$dir/../../Source/C/bin/$cmd" ]
-then
-  exec "$dir/../../Source/C/bin/$cmd" "$@"
-else
-  echo "Unable to find the real '$cmd' to run"
-  echo "This message was printed by"
-  echo "  $0"
-  exit 127
-fi
-
diff --git a/BaseTools/BinPipWrappers/PosixLike/GenPatchPcdTable b/BaseTools/BinPipWrappers/PosixLike/GenPatchPcdTable
deleted file mode 100755 (executable)
index 9d143c7..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env bash
-#python `dirname $0`/RunToolFromSource.py `basename $0` $*
-
-# If a ${PYTHON_COMMAND} command is available, use it in preference to python
-if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then
-    python_exe=${PYTHON_COMMAND}
-fi
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-cmd=${full_cmd##*/}
-
-exec "${python_exe:-python}" -m edk2basetools.$cmd.$cmd "$@"
diff --git a/BaseTools/BinPipWrappers/PosixLike/GenSec b/BaseTools/BinPipWrappers/PosixLike/GenSec
deleted file mode 100755 (executable)
index 0945d86..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env bash
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-dir=$(dirname "$full_cmd")
-cmd=${full_cmd##*/}
-
-if [ -n "$WORKSPACE" ] && [ -e "$WORKSPACE/Conf/BaseToolsCBinaries" ]
-then
-  exec "$WORKSPACE/Conf/BaseToolsCBinaries/$cmd"
-elif [ -n "$WORKSPACE" ] && [ -e "$EDK_TOOLS_PATH/Source/C" ]
-then
-  if [ ! -e "$EDK_TOOLS_PATH/Source/C/bin/$cmd" ]
-  then
-    echo "BaseTools C Tool binary was not found ($cmd)"
-    echo "You may need to run:"
-    echo "  make -C $EDK_TOOLS_PATH/Source/C"
-  else
-    exec "$EDK_TOOLS_PATH/Source/C/bin/$cmd" "$@"
-  fi
-elif [ -e "$dir/../../Source/C/bin/$cmd" ]
-then
-  exec "$dir/../../Source/C/bin/$cmd" "$@"
-else
-  echo "Unable to find the real '$cmd' to run"
-  echo "This message was printed by"
-  echo "  $0"
-  exit 127
-fi
-
diff --git a/BaseTools/BinPipWrappers/PosixLike/GenerateCapsule b/BaseTools/BinPipWrappers/PosixLike/GenerateCapsule
deleted file mode 100755 (executable)
index 366a268..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env bash
-#python `dirname $0`/RunToolFromSource.py `basename $0` $*
-
-# If a ${PYTHON_COMMAND} command is available, use it in preference to python
-if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then
-    python_exe=${PYTHON_COMMAND}
-fi
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-cmd=${full_cmd##*/}
-
-exec "${python_exe:-python}" -m edk2basetools.Capsule.$cmd "$@"
diff --git a/BaseTools/BinPipWrappers/PosixLike/LzmaCompress b/BaseTools/BinPipWrappers/PosixLike/LzmaCompress
deleted file mode 100755 (executable)
index 0945d86..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env bash
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-dir=$(dirname "$full_cmd")
-cmd=${full_cmd##*/}
-
-if [ -n "$WORKSPACE" ] && [ -e "$WORKSPACE/Conf/BaseToolsCBinaries" ]
-then
-  exec "$WORKSPACE/Conf/BaseToolsCBinaries/$cmd"
-elif [ -n "$WORKSPACE" ] && [ -e "$EDK_TOOLS_PATH/Source/C" ]
-then
-  if [ ! -e "$EDK_TOOLS_PATH/Source/C/bin/$cmd" ]
-  then
-    echo "BaseTools C Tool binary was not found ($cmd)"
-    echo "You may need to run:"
-    echo "  make -C $EDK_TOOLS_PATH/Source/C"
-  else
-    exec "$EDK_TOOLS_PATH/Source/C/bin/$cmd" "$@"
-  fi
-elif [ -e "$dir/../../Source/C/bin/$cmd" ]
-then
-  exec "$dir/../../Source/C/bin/$cmd" "$@"
-else
-  echo "Unable to find the real '$cmd' to run"
-  echo "This message was printed by"
-  echo "  $0"
-  exit 127
-fi
-
diff --git a/BaseTools/BinPipWrappers/PosixLike/LzmaF86Compress b/BaseTools/BinPipWrappers/PosixLike/LzmaF86Compress
deleted file mode 100755 (executable)
index b55352a..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/usr/bin/env bash
-#
-# This script will exec LzmaCompress tool with --f86 option that enables converter for x86 code.
-#
-# (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
-# Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>
-# SPDX-License-Identifier: BSD-2-Clause-Patent
-#
-
-for arg; do
-  case $arg in
-    -e|-d)
-      set -- "$@" --f86
-      break
-    ;;
-  esac
-done
-
-exec LzmaCompress "$@"
diff --git a/BaseTools/BinPipWrappers/PosixLike/PatchPcdValue b/BaseTools/BinPipWrappers/PosixLike/PatchPcdValue
deleted file mode 100755 (executable)
index 9d143c7..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env bash
-#python `dirname $0`/RunToolFromSource.py `basename $0` $*
-
-# If a ${PYTHON_COMMAND} command is available, use it in preference to python
-if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then
-    python_exe=${PYTHON_COMMAND}
-fi
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-cmd=${full_cmd##*/}
-
-exec "${python_exe:-python}" -m edk2basetools.$cmd.$cmd "$@"
diff --git a/BaseTools/BinPipWrappers/PosixLike/Pkcs7Sign b/BaseTools/BinPipWrappers/PosixLike/Pkcs7Sign
deleted file mode 100755 (executable)
index 9d143c7..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env bash
-#python `dirname $0`/RunToolFromSource.py `basename $0` $*
-
-# If a ${PYTHON_COMMAND} command is available, use it in preference to python
-if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then
-    python_exe=${PYTHON_COMMAND}
-fi
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-cmd=${full_cmd##*/}
-
-exec "${python_exe:-python}" -m edk2basetools.$cmd.$cmd "$@"
diff --git a/BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256GenerateKeys b/BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256GenerateKeys
deleted file mode 100755 (executable)
index aca2f3a..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env bash
-#python `dirname $0`/RunToolFromSource.py `basename $0` $*
-
-# If a ${PYTHON_COMMAND} command is available, use it in preference to python
-if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then
-    python_exe=${PYTHON_COMMAND}
-fi
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-cmd=${full_cmd##*/}
-
-exec "${python_exe:-python}" -m edk2basetools.Rsa2048Sha256Sign.$cmd "$@"
diff --git a/BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256Sign b/BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256Sign
deleted file mode 100755 (executable)
index ead26cb..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env bash
-#python `dirname $0`/RunToolFromSource.py `basename $0` $*
-
-# If a ${PYTHON_COMMAND} command is available, use it in preference to python
-if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then
-    python_exe=${PYTHON_COMMAND}
-fi
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-cmd=${full_cmd##*/}
-
-exec "${python_exe:-python}" -m edk2basetools.$cmd.$cmd "$@"\r
\ No newline at end of file
diff --git a/BaseTools/BinPipWrappers/PosixLike/Split b/BaseTools/BinPipWrappers/PosixLike/Split
deleted file mode 100755 (executable)
index 0945d86..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env bash
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-dir=$(dirname "$full_cmd")
-cmd=${full_cmd##*/}
-
-if [ -n "$WORKSPACE" ] && [ -e "$WORKSPACE/Conf/BaseToolsCBinaries" ]
-then
-  exec "$WORKSPACE/Conf/BaseToolsCBinaries/$cmd"
-elif [ -n "$WORKSPACE" ] && [ -e "$EDK_TOOLS_PATH/Source/C" ]
-then
-  if [ ! -e "$EDK_TOOLS_PATH/Source/C/bin/$cmd" ]
-  then
-    echo "BaseTools C Tool binary was not found ($cmd)"
-    echo "You may need to run:"
-    echo "  make -C $EDK_TOOLS_PATH/Source/C"
-  else
-    exec "$EDK_TOOLS_PATH/Source/C/bin/$cmd" "$@"
-  fi
-elif [ -e "$dir/../../Source/C/bin/$cmd" ]
-then
-  exec "$dir/../../Source/C/bin/$cmd" "$@"
-else
-  echo "Unable to find the real '$cmd' to run"
-  echo "This message was printed by"
-  echo "  $0"
-  exit 127
-fi
-
diff --git a/BaseTools/BinPipWrappers/PosixLike/TargetTool b/BaseTools/BinPipWrappers/PosixLike/TargetTool
deleted file mode 100755 (executable)
index 9d143c7..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env bash
-#python `dirname $0`/RunToolFromSource.py `basename $0` $*
-
-# If a ${PYTHON_COMMAND} command is available, use it in preference to python
-if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then
-    python_exe=${PYTHON_COMMAND}
-fi
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-cmd=${full_cmd##*/}
-
-exec "${python_exe:-python}" -m edk2basetools.$cmd.$cmd "$@"
diff --git a/BaseTools/BinPipWrappers/PosixLike/TianoCompress b/BaseTools/BinPipWrappers/PosixLike/TianoCompress
deleted file mode 100755 (executable)
index 0945d86..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env bash
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-dir=$(dirname "$full_cmd")
-cmd=${full_cmd##*/}
-
-if [ -n "$WORKSPACE" ] && [ -e "$WORKSPACE/Conf/BaseToolsCBinaries" ]
-then
-  exec "$WORKSPACE/Conf/BaseToolsCBinaries/$cmd"
-elif [ -n "$WORKSPACE" ] && [ -e "$EDK_TOOLS_PATH/Source/C" ]
-then
-  if [ ! -e "$EDK_TOOLS_PATH/Source/C/bin/$cmd" ]
-  then
-    echo "BaseTools C Tool binary was not found ($cmd)"
-    echo "You may need to run:"
-    echo "  make -C $EDK_TOOLS_PATH/Source/C"
-  else
-    exec "$EDK_TOOLS_PATH/Source/C/bin/$cmd" "$@"
-  fi
-elif [ -e "$dir/../../Source/C/bin/$cmd" ]
-then
-  exec "$dir/../../Source/C/bin/$cmd" "$@"
-else
-  echo "Unable to find the real '$cmd' to run"
-  echo "This message was printed by"
-  echo "  $0"
-  exit 127
-fi
-
diff --git a/BaseTools/BinPipWrappers/PosixLike/Trim b/BaseTools/BinPipWrappers/PosixLike/Trim
deleted file mode 100755 (executable)
index 0bd14ee..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env bash
-#python `dirname $0`/RunToolFromSource.py `basename $0` $*
-
-# If a ${PYTHON_COMMAND} command is available, use it in preference to python
-if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then
-    python_exe=${PYTHON_COMMAND}
-fi
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-cmd=$(basename "$full_cmd")
-
-exec "${python_exe:-python}" -m edk2basetools.$cmd.$cmd "$@"
-
diff --git a/BaseTools/BinPipWrappers/PosixLike/UPT b/BaseTools/BinPipWrappers/PosixLike/UPT
deleted file mode 100755 (executable)
index ead26cb..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env bash
-#python `dirname $0`/RunToolFromSource.py `basename $0` $*
-
-# If a ${PYTHON_COMMAND} command is available, use it in preference to python
-if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then
-    python_exe=${PYTHON_COMMAND}
-fi
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-cmd=${full_cmd##*/}
-
-exec "${python_exe:-python}" -m edk2basetools.$cmd.$cmd "$@"\r
\ No newline at end of file
diff --git a/BaseTools/BinPipWrappers/PosixLike/VfrCompile b/BaseTools/BinPipWrappers/PosixLike/VfrCompile
deleted file mode 100755 (executable)
index 0945d86..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env bash
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-dir=$(dirname "$full_cmd")
-cmd=${full_cmd##*/}
-
-if [ -n "$WORKSPACE" ] && [ -e "$WORKSPACE/Conf/BaseToolsCBinaries" ]
-then
-  exec "$WORKSPACE/Conf/BaseToolsCBinaries/$cmd"
-elif [ -n "$WORKSPACE" ] && [ -e "$EDK_TOOLS_PATH/Source/C" ]
-then
-  if [ ! -e "$EDK_TOOLS_PATH/Source/C/bin/$cmd" ]
-  then
-    echo "BaseTools C Tool binary was not found ($cmd)"
-    echo "You may need to run:"
-    echo "  make -C $EDK_TOOLS_PATH/Source/C"
-  else
-    exec "$EDK_TOOLS_PATH/Source/C/bin/$cmd" "$@"
-  fi
-elif [ -e "$dir/../../Source/C/bin/$cmd" ]
-then
-  exec "$dir/../../Source/C/bin/$cmd" "$@"
-else
-  echo "Unable to find the real '$cmd' to run"
-  echo "This message was printed by"
-  echo "  $0"
-  exit 127
-fi
-
diff --git a/BaseTools/BinPipWrappers/PosixLike/VolInfo b/BaseTools/BinPipWrappers/PosixLike/VolInfo
deleted file mode 100755 (executable)
index 0945d86..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env bash
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-dir=$(dirname "$full_cmd")
-cmd=${full_cmd##*/}
-
-if [ -n "$WORKSPACE" ] && [ -e "$WORKSPACE/Conf/BaseToolsCBinaries" ]
-then
-  exec "$WORKSPACE/Conf/BaseToolsCBinaries/$cmd"
-elif [ -n "$WORKSPACE" ] && [ -e "$EDK_TOOLS_PATH/Source/C" ]
-then
-  if [ ! -e "$EDK_TOOLS_PATH/Source/C/bin/$cmd" ]
-  then
-    echo "BaseTools C Tool binary was not found ($cmd)"
-    echo "You may need to run:"
-    echo "  make -C $EDK_TOOLS_PATH/Source/C"
-  else
-    exec "$EDK_TOOLS_PATH/Source/C/bin/$cmd" "$@"
-  fi
-elif [ -e "$dir/../../Source/C/bin/$cmd" ]
-then
-  exec "$dir/../../Source/C/bin/$cmd" "$@"
-else
-  echo "Unable to find the real '$cmd' to run"
-  echo "This message was printed by"
-  echo "  $0"
-  exit 127
-fi
-
diff --git a/BaseTools/BinPipWrappers/PosixLike/build b/BaseTools/BinPipWrappers/PosixLike/build
deleted file mode 100755 (executable)
index 9d143c7..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env bash
-#python `dirname $0`/RunToolFromSource.py `basename $0` $*
-
-# If a ${PYTHON_COMMAND} command is available, use it in preference to python
-if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then
-    python_exe=${PYTHON_COMMAND}
-fi
-
-full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
-cmd=${full_cmd##*/}
-
-exec "${python_exe:-python}" -m edk2basetools.$cmd.$cmd "$@"
diff --git a/BaseTools/BinPipWrappers/PosixLike/posix_path_env.yaml b/BaseTools/BinPipWrappers/PosixLike/posix_path_env.yaml
deleted file mode 100644 (file)
index eb1db9e..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-## @file\r
-# Set this folder on the path for all linux builds\r
-#\r
-# Copyright (c) Microsoft Corporation.\r
-# SPDX-License-Identifier: BSD-2-Clause-Patent\r
-##\r
-{\r
-  "scope": "pipbuild-unix",\r
-  "override_id": "binwrappers",\r
-  "flags": ["set_path"]\r
-}\r
diff --git a/BaseTools/BinPipWrappers/WindowsLike/AmlToC.bat b/BaseTools/BinPipWrappers/WindowsLike/AmlToC.bat
deleted file mode 100644 (file)
index d347d64..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-@setlocal\r
-@set ToolName=%~n0%\r
-@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %*\r
diff --git a/BaseTools/BinPipWrappers/WindowsLike/BPDG.bat b/BaseTools/BinPipWrappers/WindowsLike/BPDG.bat
deleted file mode 100644 (file)
index d347d64..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-@setlocal\r
-@set ToolName=%~n0%\r
-@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %*\r
diff --git a/BaseTools/BinPipWrappers/WindowsLike/Ecc.bat b/BaseTools/BinPipWrappers/WindowsLike/Ecc.bat
deleted file mode 100644 (file)
index 16a0a79..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-@setlocal\r
-@set ToolName=%~n0%\r
-@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.EccMain %*\r
diff --git a/BaseTools/BinPipWrappers/WindowsLike/GenDepex.bat b/BaseTools/BinPipWrappers/WindowsLike/GenDepex.bat
deleted file mode 100644 (file)
index 481b5ac..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-@setlocal\r
-@set ToolName=%~n0%\r
-@%PYTHON_COMMAND% -m edk2basetools.AutoGen.%ToolName% %*\r
diff --git a/BaseTools/BinPipWrappers/WindowsLike/GenFds.bat b/BaseTools/BinPipWrappers/WindowsLike/GenFds.bat
deleted file mode 100644 (file)
index d347d64..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-@setlocal\r
-@set ToolName=%~n0%\r
-@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %*\r
diff --git a/BaseTools/BinPipWrappers/WindowsLike/GenPatchPcdTable.bat b/BaseTools/BinPipWrappers/WindowsLike/GenPatchPcdTable.bat
deleted file mode 100644 (file)
index d347d64..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-@setlocal\r
-@set ToolName=%~n0%\r
-@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %*\r
diff --git a/BaseTools/BinPipWrappers/WindowsLike/GenerateCapsule.bat b/BaseTools/BinPipWrappers/WindowsLike/GenerateCapsule.bat
deleted file mode 100644 (file)
index 34c43ac..0000000
+++ /dev/null
@@ -1 +0,0 @@
-@%PYTHON_COMMAND% -m edk2basetools.Capsule.GenerateCapsule %*\r
diff --git a/BaseTools/BinPipWrappers/WindowsLike/PatchPcdValue.bat b/BaseTools/BinPipWrappers/WindowsLike/PatchPcdValue.bat
deleted file mode 100644 (file)
index d347d64..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-@setlocal\r
-@set ToolName=%~n0%\r
-@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %*\r
diff --git a/BaseTools/BinPipWrappers/WindowsLike/Pkcs7Sign.bat b/BaseTools/BinPipWrappers/WindowsLike/Pkcs7Sign.bat
deleted file mode 100644 (file)
index d347d64..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-@setlocal\r
-@set ToolName=%~n0%\r
-@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %*\r
diff --git a/BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256GenerateKeys.bat b/BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256GenerateKeys.bat
deleted file mode 100644 (file)
index cdc2e3e..0000000
+++ /dev/null
@@ -1 +0,0 @@
-@%PYTHON_COMMAND% -m edk2basetools.Rsa2048Sha256Sign.Rsa2048Sha256GenerateKeys %*\r
diff --git a/BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256Sign.bat b/BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256Sign.bat
deleted file mode 100644 (file)
index d347d64..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-@setlocal\r
-@set ToolName=%~n0%\r
-@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %*\r
diff --git a/BaseTools/BinPipWrappers/WindowsLike/Split.bat b/BaseTools/BinPipWrappers/WindowsLike/Split.bat
deleted file mode 100644 (file)
index d347d64..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-@setlocal\r
-@set ToolName=%~n0%\r
-@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %*\r
diff --git a/BaseTools/BinPipWrappers/WindowsLike/TargetTool.bat b/BaseTools/BinPipWrappers/WindowsLike/TargetTool.bat
deleted file mode 100644 (file)
index d347d64..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-@setlocal\r
-@set ToolName=%~n0%\r
-@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %*\r
diff --git a/BaseTools/BinPipWrappers/WindowsLike/Trim.bat b/BaseTools/BinPipWrappers/WindowsLike/Trim.bat
deleted file mode 100644 (file)
index d347d64..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-@setlocal\r
-@set ToolName=%~n0%\r
-@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %*\r
diff --git a/BaseTools/BinPipWrappers/WindowsLike/UPT.bat b/BaseTools/BinPipWrappers/WindowsLike/UPT.bat
deleted file mode 100644 (file)
index d347d64..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-@setlocal\r
-@set ToolName=%~n0%\r
-@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %*\r
diff --git a/BaseTools/BinPipWrappers/WindowsLike/build.bat b/BaseTools/BinPipWrappers/WindowsLike/build.bat
deleted file mode 100644 (file)
index d347d64..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-@setlocal\r
-@set ToolName=%~n0%\r
-@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %*\r
diff --git a/BaseTools/BinPipWrappers/WindowsLike/win_build_tools_path_env.yaml b/BaseTools/BinPipWrappers/WindowsLike/win_build_tools_path_env.yaml
deleted file mode 100644 (file)
index 9fdbe1b..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-## @file\r
-# Add this folder to the path on Windows\r
-#\r
-# Copyright (c) Microsoft Corporation.\r
-# SPDX-License-Identifier: BSD-2-Clause-Patent\r
-##\r
-{\r
-  "scope": "pipbuild-win",\r
-  "override_id": "binwrappers",\r
-  "flags": ["set_path"]\r
-}\r
index bd6235d74fa714e8362352735177aff75c0aa094..1d9526bdfc118706c11d3d614ab7387f6b49f617 100755 (executable)
@@ -198,16 +198,7 @@ AddEdkToolsToPath() {
 
   EDK_TOOLS_PATH_BIN=`GetEdkToolsPathBinDirectory`
 
-  # check if the edk2basetools pip package is available
-  if $PYTHON_COMMAND -c "import edk2basetools" > /dev/null 2>&1; then
-    # if it is, use the pip version of the wrappers
-    echo "Using Pip Basetools"
-    AddDirToStartOfPath $EDK_TOOLS_PATH/BinPipWrappers/PosixLike
-  else
-    echo "Using EDK2 in-source Basetools"
-    AddDirToStartOfPath $EDK_TOOLS_PATH/BinWrappers/PosixLike
-  fi
-
+  AddDirToStartOfPath $EDK_TOOLS_PATH/BinWrappers/PosixLike
 
   AddDirToStartOfPath $EDK_TOOLS_PATH_BIN
 
index d797ac80c15fc67bad98f2df4eb05b4988e81d66..83d679518845ecb32f70b94b112c96e980871c46 100755 (executable)
@@ -395,7 +395,6 @@ class GitDiffCheck:
                     self.force_notabs = False\r
                 if self.filename.endswith('.sh') or \\r
                     self.filename.startswith('BaseTools/BinWrappers/PosixLike/') or \\r
-                    self.filename.startswith('BaseTools/BinPipWrappers/PosixLike/') or \\r
                     self.filename == 'BaseTools/BuildEnv':\r
                     #\r
                     # Do not enforce CR/LF line endings for linux shell scripts.\r
diff --git a/BaseTools/Source/Python/README.md b/BaseTools/Source/Python/README.md
deleted file mode 100644 (file)
index 8c4d9e7..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-# Edk2 Basetools\r
-\r
-This folder has traditionally held the source of Python based tools used by EDK2.\r
-The official repo this source has moved to https://github.com/tianocore/edk2-basetools.\r
-This folder will remain in the tree until the next stable release (expected 202102).\r
-There is a new folder under Basetools `BinPipWrappers` that uses the pip module rather than this tree for Basetools.\r
-By adding the scope `pipbuild-win` or `pipbuild-unix` (depending on your host system), the SDE will use the\r
-`BinPipWrappers` instead of the regular `BinWrappers`.\r
-\r
-## Why Move It?\r
-\r
-The discussion is on the mailing list. The RFC is here: https://edk2.groups.io/g/rfc/topic/74009714#270\r
-The benefits allow for the Basetools project to be used separately from EDK2 itself as well as offering it in a\r
-globally accessible manner.\r
-This makes it much easier to build a module using Basetools.\r
-Separating the Basetools into their own repo allows for easier CI and contribution process.\r
-Additional pros, cons, and process can be found on the mailing list.\r
-\r
-## How Do I Install It?\r
-\r
-By default, EDK2 is tied to and tested with a specific version of the Basetools through `pip-requirements.txt`.\r
-You can simply run:\r
-\r
-```bash\r
-pip install -r pip-requirements.txt\r
-```\r
-\r
-This will install the required module, thought we strongly suggest setting up a virtual environment.\r
-Additionally, you can also install a local clone of the Basetools as well as a specific git commit.\r
index 5b1070f1e45bd15a2f5ce61698e6c7385c3c329d..bdbc052c21681748619d163d46facf36306816f5 100755 (executable)
@@ -350,28 +350,12 @@ if %ERRORLEVEL% NEQ 0 (
 \r
 endlocal\r
 \r
-%PYTHON_COMMAND% -c "import edk2basetools" >NUL 2>NUL\r
-if %ERRORLEVEL% EQU 0 (\r
-  goto use_pip_basetools\r
-) else (\r
-  REM reset ERRORLEVEL\r
-  type nul>nul\r
-  goto use_builtin_basetools\r
-)\r
-\r
-:use_builtin_basetools\r
   @echo Using EDK2 in-source Basetools\r
   if defined BASETOOLS_PYTHON_SOURCE goto print_python_info\r
   set "PATH=%BASE_TOOLS_PATH%\BinWrappers\WindowsLike;%PATH%"\r
   set PYTHONPATH=%BASE_TOOLS_PATH%\Source\Python;%PYTHONPATH%\r
   goto print_python_info\r
 \r
-:use_pip_basetools\r
-  @echo Using Pip Basetools\r
-  set "PATH=%BASE_TOOLS_PATH%\BinPipWrappers\WindowsLike;%PATH%"\r
-  set PYTHONPATH=%BASE_TOOLS_PATH%\Source\Python;%PYTHONPATH%\r
-  goto print_python_info\r
-\r
 :print_python_info\r
   echo           PATH      = %PATH%\r
   echo.\r
index f9fb9e130bad97940a20b4ea15548ab5293a1637..c8de90fc2bd1d9a0022ba7f4ac0252b1cdb6f468 100644 (file)
@@ -14,7 +14,6 @@
 \r
 edk2-pytool-library~=0.21.9\r
 edk2-pytool-extensions~=0.27.10\r
-edk2-basetools==0.1.53\r
 antlr4-python3-runtime>=4.7.1\r
 lcov-cobertura==2.0.2\r
 regex==2024.7.24\r