From 958a056f9806435577e97a31b20e92ca02b6c56d Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Mon, 4 Nov 2024 10:02:59 -0800 Subject: [PATCH] UnitTestFrameworkPkg: Use TianoCore mirror of subhook submodule Change subhook url from https://github.com/Zeex/subhook to https://github.com/tianocore/edk2-subhook because old url is no longer available. Also align .gitmodules file to use consistent LF line endings. Signed-off-by: Michael D Kinney --- .gitmodules | 10 +++++----- ReadMe.rst | 2 +- UnitTestFrameworkPkg/ReadMe.md | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitmodules b/.gitmodules index 387794f05e17..8e0ab9be03cd 100644 --- a/.gitmodules +++ b/.gitmodules @@ -16,7 +16,7 @@ [submodule "BaseTools/Source/C/BrotliCompress/brotli"] path = BaseTools/Source/C/BrotliCompress/brotli url = https://github.com/google/brotli - ignore = untracked + ignore = untracked [submodule "RedfishPkg/Library/JsonLib/jansson"] path = RedfishPkg/Library/JsonLib/jansson url = https://github.com/akheron/jansson @@ -25,10 +25,10 @@ url = https://github.com/google/googletest.git [submodule "UnitTestFrameworkPkg/Library/SubhookLib/subhook"] path = UnitTestFrameworkPkg/Library/SubhookLib/subhook - url = https://github.com/Zeex/subhook.git -[submodule "MdePkg/Library/BaseFdtLib/libfdt"] - path = MdePkg/Library/BaseFdtLib/libfdt - url = https://github.com/devicetree-org/pylibfdt.git + url = https://github.com/tianocore/edk2-subhook.git +[submodule "MdePkg/Library/BaseFdtLib/libfdt"] + path = MdePkg/Library/BaseFdtLib/libfdt + url = https://github.com/devicetree-org/pylibfdt.git [submodule "MdePkg/Library/MipiSysTLib/mipisyst"] path = MdePkg/Library/MipiSysTLib/mipisyst url = https://github.com/MIPI-Alliance/public-mipi-sys-t.git diff --git a/ReadMe.rst b/ReadMe.rst index ed1d4822459b..f1f286ab5f1d 100644 --- a/ReadMe.rst +++ b/ReadMe.rst @@ -94,7 +94,7 @@ that are covered by additional licenses. - `MdeModulePkg/Universal/RegularExpressionDxe/oniguruma `__ - `UnitTestFrameworkPkg/Library/CmockaLib/cmocka `__ - `UnitTestFrameworkPkg/Library/GoogleTestLib/googletest `__ -- `UnitTestFrameworkPkg/Library/SubhookLib/subhook `__ +- `UnitTestFrameworkPkg/Library/SubhookLib/subhook `__ - `RedfishPkg/Library/JsonLib/jansson `__ - `MdePkg/Library/BaseFdtLib/libfdt `__ - `MdePkg/Library/MipiSysTLib/mipisyst `__ diff --git a/UnitTestFrameworkPkg/ReadMe.md b/UnitTestFrameworkPkg/ReadMe.md index 7da6a320a7f1..61025fd075c8 100644 --- a/UnitTestFrameworkPkg/ReadMe.md +++ b/UnitTestFrameworkPkg/ReadMe.md @@ -485,8 +485,8 @@ function to be compiled into the test application and then hooked to during a test. This library is mainly a wrapper around the -[subhook](https://github.com/Zeex/subhook) header and source files. It is -important to note that the use of the mock function macros and the creation +[subhook](https://github.com/tianocore/edk2-subhook) header and source files. It +is important to note that the use of the mock function macros and the creation of mock functions requires no knowledge about the SubhookLib. The SubhookLib library is entirely hidden and encapsulated within FunctionMockLib, and it is only mentioned here to provide a complete explanation on all the libraries