From f215e02bf85f68d3a6106c2a1f4f7f063f819064 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 11 Apr 2024 10:17:27 +0200 Subject: Adding upstream version 7.0.14-dfsg. Signed-off-by: Daniel Baumann --- .../BaseTools/BinPipWrappers/PosixLike/AmlToC | 14 +++++ .../BaseTools/BinPipWrappers/PosixLike/BPDG | 12 +++++ .../BinPipWrappers/PosixLike/BrotliCompress | 60 ++++++++++++++++++++++ .../BaseTools/BinPipWrappers/PosixLike/DevicePath | 29 +++++++++++ .../BaseTools/BinPipWrappers/PosixLike/Ecc | 13 +++++ .../BaseTools/BinPipWrappers/PosixLike/EfiRom | 29 +++++++++++ .../BaseTools/BinPipWrappers/PosixLike/GenCrc32 | 29 +++++++++++ .../BaseTools/BinPipWrappers/PosixLike/GenDepex | 12 +++++ .../BaseTools/BinPipWrappers/PosixLike/GenFds | 12 +++++ .../BaseTools/BinPipWrappers/PosixLike/GenFfs | 29 +++++++++++ .../BaseTools/BinPipWrappers/PosixLike/GenFv | 29 +++++++++++ .../BaseTools/BinPipWrappers/PosixLike/GenFw | 29 +++++++++++ .../BinPipWrappers/PosixLike/GenPatchPcdTable | 12 +++++ .../BaseTools/BinPipWrappers/PosixLike/GenSec | 29 +++++++++++ .../BinPipWrappers/PosixLike/GenerateCapsule | 12 +++++ .../BinPipWrappers/PosixLike/LzmaCompress | 29 +++++++++++ .../BinPipWrappers/PosixLike/LzmaF86Compress | 19 +++++++ .../BinPipWrappers/PosixLike/PatchPcdValue | 12 +++++ .../BaseTools/BinPipWrappers/PosixLike/Pkcs7Sign | 12 +++++ .../PosixLike/Rsa2048Sha256GenerateKeys | 12 +++++ .../BinPipWrappers/PosixLike/Rsa2048Sha256Sign | 12 +++++ .../BaseTools/BinPipWrappers/PosixLike/Split | 29 +++++++++++ .../BaseTools/BinPipWrappers/PosixLike/TargetTool | 12 +++++ .../BinPipWrappers/PosixLike/TianoCompress | 29 +++++++++++ .../BaseTools/BinPipWrappers/PosixLike/Trim | 13 +++++ .../BaseTools/BinPipWrappers/PosixLike/UPT | 12 +++++ .../BaseTools/BinPipWrappers/PosixLike/VfrCompile | 29 +++++++++++ .../BaseTools/BinPipWrappers/PosixLike/VolInfo | 29 +++++++++++ .../BaseTools/BinPipWrappers/PosixLike/build | 12 +++++ .../BinPipWrappers/PosixLike/posix_path_env.yaml | 11 ++++ .../BinPipWrappers/WindowsLike/AmlToC.bat | 3 ++ .../BaseTools/BinPipWrappers/WindowsLike/BPDG.bat | 3 ++ .../BaseTools/BinPipWrappers/WindowsLike/Ecc.bat | 3 ++ .../BinPipWrappers/WindowsLike/GenDepex.bat | 3 ++ .../BinPipWrappers/WindowsLike/GenFds.bat | 3 ++ .../WindowsLike/GenPatchPcdTable.bat | 3 ++ .../BinPipWrappers/WindowsLike/GenerateCapsule.bat | 1 + .../BinPipWrappers/WindowsLike/PatchPcdValue.bat | 3 ++ .../BinPipWrappers/WindowsLike/Pkcs7Sign.bat | 3 ++ .../WindowsLike/Rsa2048Sha256GenerateKeys.bat | 1 + .../WindowsLike/Rsa2048Sha256Sign.bat | 3 ++ .../BaseTools/BinPipWrappers/WindowsLike/Split.bat | 3 ++ .../BinPipWrappers/WindowsLike/TargetTool.bat | 3 ++ .../BaseTools/BinPipWrappers/WindowsLike/Trim.bat | 3 ++ .../BaseTools/BinPipWrappers/WindowsLike/UPT.bat | 3 ++ .../BaseTools/BinPipWrappers/WindowsLike/build.bat | 3 ++ .../WindowsLike/win_build_tools_path_env.yaml | 11 ++++ 47 files changed, 677 insertions(+) create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/AmlToC create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/BPDG create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/BrotliCompress create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/DevicePath create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Ecc create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/EfiRom create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenCrc32 create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenDepex create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenFds create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenFfs create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenFv create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenFw create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenPatchPcdTable create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenSec create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenerateCapsule create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/LzmaCompress create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/LzmaF86Compress create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/PatchPcdValue create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Pkcs7Sign create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256GenerateKeys create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256Sign create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Split create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/TargetTool create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/TianoCompress create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Trim create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/UPT create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/VfrCompile create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/VolInfo create mode 100755 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/build create mode 100644 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/posix_path_env.yaml create mode 100644 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/AmlToC.bat create mode 100644 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/BPDG.bat create mode 100644 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Ecc.bat create mode 100644 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/GenDepex.bat create mode 100644 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/GenFds.bat create mode 100644 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/GenPatchPcdTable.bat create mode 100644 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/GenerateCapsule.bat create mode 100644 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/PatchPcdValue.bat create mode 100644 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Pkcs7Sign.bat create mode 100644 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256GenerateKeys.bat create mode 100644 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256Sign.bat create mode 100644 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Split.bat create mode 100644 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/TargetTool.bat create mode 100644 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Trim.bat create mode 100644 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/UPT.bat create mode 100644 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/build.bat create mode 100644 src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/win_build_tools_path_env.yaml (limited to 'src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers') diff --git a/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/AmlToC b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/AmlToC new file mode 100755 index 00000000..1dd28e96 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/AmlToC @@ -0,0 +1,14 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/BPDG b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/BPDG new file mode 100755 index 00000000..a08cbd8d --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/BPDG @@ -0,0 +1,12 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/BrotliCompress b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/BrotliCompress new file mode 100755 index 00000000..426f2a2e --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/BrotliCompress @@ -0,0 +1,60 @@ +#!/usr/bin/env bash +# +# This script will exec Brotli tool with -e/-d options. +# +# Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.
+# 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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/DevicePath b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/DevicePath new file mode 100755 index 00000000..0945d86d --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/DevicePath @@ -0,0 +1,29 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Ecc b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Ecc new file mode 100755 index 00000000..59872891 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Ecc @@ -0,0 +1,13 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/EfiRom b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/EfiRom new file mode 100755 index 00000000..0945d86d --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/EfiRom @@ -0,0 +1,29 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenCrc32 b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenCrc32 new file mode 100755 index 00000000..0945d86d --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenCrc32 @@ -0,0 +1,29 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenDepex b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenDepex new file mode 100755 index 00000000..df75e43f --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenDepex @@ -0,0 +1,12 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenFds b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenFds new file mode 100755 index 00000000..b27e84ea --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenFds @@ -0,0 +1,12 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenFfs b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenFfs new file mode 100755 index 00000000..0945d86d --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenFfs @@ -0,0 +1,29 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenFv b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenFv new file mode 100755 index 00000000..0945d86d --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenFv @@ -0,0 +1,29 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenFw b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenFw new file mode 100755 index 00000000..0945d86d --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenFw @@ -0,0 +1,29 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenPatchPcdTable b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenPatchPcdTable new file mode 100755 index 00000000..9d143c7f --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenPatchPcdTable @@ -0,0 +1,12 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenSec b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenSec new file mode 100755 index 00000000..0945d86d --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenSec @@ -0,0 +1,29 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenerateCapsule b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenerateCapsule new file mode 100755 index 00000000..366a2688 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/GenerateCapsule @@ -0,0 +1,12 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/LzmaCompress b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/LzmaCompress new file mode 100755 index 00000000..0945d86d --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/LzmaCompress @@ -0,0 +1,29 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/LzmaF86Compress b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/LzmaF86Compress new file mode 100755 index 00000000..b55352ae --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/LzmaF86Compress @@ -0,0 +1,19 @@ +#!/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
+# Copyright (c) 2012, Intel Corporation. All rights reserved.
+# 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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/PatchPcdValue b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/PatchPcdValue new file mode 100755 index 00000000..9d143c7f --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/PatchPcdValue @@ -0,0 +1,12 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Pkcs7Sign b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Pkcs7Sign new file mode 100755 index 00000000..9d143c7f --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Pkcs7Sign @@ -0,0 +1,12 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256GenerateKeys b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256GenerateKeys new file mode 100755 index 00000000..aca2f3a6 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256GenerateKeys @@ -0,0 +1,12 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256Sign b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256Sign new file mode 100755 index 00000000..9d143c7f --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256Sign @@ -0,0 +1,12 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Split b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Split new file mode 100755 index 00000000..0945d86d --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Split @@ -0,0 +1,29 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/TargetTool b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/TargetTool new file mode 100755 index 00000000..9d143c7f --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/TargetTool @@ -0,0 +1,12 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/TianoCompress b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/TianoCompress new file mode 100755 index 00000000..0945d86d --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/TianoCompress @@ -0,0 +1,29 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Trim b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Trim new file mode 100755 index 00000000..0bd14ee0 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/Trim @@ -0,0 +1,13 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/UPT b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/UPT new file mode 100755 index 00000000..9d143c7f --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/UPT @@ -0,0 +1,12 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/VfrCompile b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/VfrCompile new file mode 100755 index 00000000..0945d86d --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/VfrCompile @@ -0,0 +1,29 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/VolInfo b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/VolInfo new file mode 100755 index 00000000..0945d86d --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/VolInfo @@ -0,0 +1,29 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/build b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/build new file mode 100755 index 00000000..9d143c7f --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/build @@ -0,0 +1,12 @@ +#!/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/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/posix_path_env.yaml b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/posix_path_env.yaml new file mode 100644 index 00000000..83067030 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/posix_path_env.yaml @@ -0,0 +1,11 @@ +## @file +# Set this folder on the path for all linux builds +# +# Copyright (c) Microsoft Corporation. +# SPDX-License-Identifier: BSD-2-Clause-Patent +## +{ + "scope": "pipbuild-unix", + "override_id": "binwrappers", + "flags": ["set_path"] +} diff --git a/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/AmlToC.bat b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/AmlToC.bat new file mode 100644 index 00000000..d347d648 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/AmlToC.bat @@ -0,0 +1,3 @@ +@setlocal +@set ToolName=%~n0% +@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %* diff --git a/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/BPDG.bat b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/BPDG.bat new file mode 100644 index 00000000..d347d648 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/BPDG.bat @@ -0,0 +1,3 @@ +@setlocal +@set ToolName=%~n0% +@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %* diff --git a/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Ecc.bat b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Ecc.bat new file mode 100644 index 00000000..16a0a799 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Ecc.bat @@ -0,0 +1,3 @@ +@setlocal +@set ToolName=%~n0% +@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.EccMain %* diff --git a/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/GenDepex.bat b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/GenDepex.bat new file mode 100644 index 00000000..481b5ac4 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/GenDepex.bat @@ -0,0 +1,3 @@ +@setlocal +@set ToolName=%~n0% +@%PYTHON_COMMAND% -m edk2basetools.AutoGen.%ToolName% %* diff --git a/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/GenFds.bat b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/GenFds.bat new file mode 100644 index 00000000..d347d648 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/GenFds.bat @@ -0,0 +1,3 @@ +@setlocal +@set ToolName=%~n0% +@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %* diff --git a/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/GenPatchPcdTable.bat b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/GenPatchPcdTable.bat new file mode 100644 index 00000000..d347d648 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/GenPatchPcdTable.bat @@ -0,0 +1,3 @@ +@setlocal +@set ToolName=%~n0% +@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %* diff --git a/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/GenerateCapsule.bat b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/GenerateCapsule.bat new file mode 100644 index 00000000..34c43ac7 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/GenerateCapsule.bat @@ -0,0 +1 @@ +@%PYTHON_COMMAND% -m edk2basetools.Capsule.GenerateCapsule %* diff --git a/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/PatchPcdValue.bat b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/PatchPcdValue.bat new file mode 100644 index 00000000..d347d648 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/PatchPcdValue.bat @@ -0,0 +1,3 @@ +@setlocal +@set ToolName=%~n0% +@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %* diff --git a/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Pkcs7Sign.bat b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Pkcs7Sign.bat new file mode 100644 index 00000000..d347d648 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Pkcs7Sign.bat @@ -0,0 +1,3 @@ +@setlocal +@set ToolName=%~n0% +@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %* diff --git a/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256GenerateKeys.bat b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256GenerateKeys.bat new file mode 100644 index 00000000..cdc2e3ea --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256GenerateKeys.bat @@ -0,0 +1 @@ +@%PYTHON_COMMAND% -m edk2basetools.Rsa2048Sha256Sign.Rsa2048Sha256GenerateKeys %* diff --git a/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256Sign.bat b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256Sign.bat new file mode 100644 index 00000000..d347d648 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256Sign.bat @@ -0,0 +1,3 @@ +@setlocal +@set ToolName=%~n0% +@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %* diff --git a/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Split.bat b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Split.bat new file mode 100644 index 00000000..d347d648 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Split.bat @@ -0,0 +1,3 @@ +@setlocal +@set ToolName=%~n0% +@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %* diff --git a/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/TargetTool.bat b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/TargetTool.bat new file mode 100644 index 00000000..d347d648 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/TargetTool.bat @@ -0,0 +1,3 @@ +@setlocal +@set ToolName=%~n0% +@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %* diff --git a/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Trim.bat b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Trim.bat new file mode 100644 index 00000000..d347d648 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/Trim.bat @@ -0,0 +1,3 @@ +@setlocal +@set ToolName=%~n0% +@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %* diff --git a/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/UPT.bat b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/UPT.bat new file mode 100644 index 00000000..d347d648 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/UPT.bat @@ -0,0 +1,3 @@ +@setlocal +@set ToolName=%~n0% +@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %* diff --git a/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/build.bat b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/build.bat new file mode 100644 index 00000000..d347d648 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/build.bat @@ -0,0 +1,3 @@ +@setlocal +@set ToolName=%~n0% +@%PYTHON_COMMAND% -m edk2basetools.%ToolName%.%ToolName% %* diff --git a/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/win_build_tools_path_env.yaml b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/win_build_tools_path_env.yaml new file mode 100644 index 00000000..fbeede54 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/WindowsLike/win_build_tools_path_env.yaml @@ -0,0 +1,11 @@ +## @file +# Add this folder to the path on Windows +# +# Copyright (c) Microsoft Corporation. +# SPDX-License-Identifier: BSD-2-Clause-Patent +## +{ + "scope": "pipbuild-win", + "override_id": "binwrappers", + "flags": ["set_path"] +} -- cgit v1.2.3