The autogen.sh is updated to check for WSL/Windows, and if detected, does not attempt to link git hook files. When running in WSL for a Windows drive, (e.g. /mnt/c/) new warning messages will appear regarding not attempting to link the pre-commit files which otherwise don't actually get linked. Rather, a zero length file is created, causing an Visual Studio.
gojimmypi:/mnt/c/workspace/wolfTPM-gojimmypi-pr
$ ./autogen.sh
Linux ln does not work on shared Windows file system in WSL.
The pre-commit.sh file will not be copied to .git/hooks/pre-commit
The pre-push.sh file will not be copied to .git/hooks/pre-commit
Making missing build-aux directory.
Touching missing build-aux/config.rpath file.
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
[... snip / etc ...]
Similar to https://github.com/wolfSSL/wolfssl/pull/6798 this PR addresses https://github.com/wolfSSL/wolfTPM/issues/346 for wolfTPM.
The
autogen.sh
is updated to check for WSL/Windows, and if detected, does not attempt to link git hook files. When running in WSL for a Windows drive, (e.g./mnt/c/
) new warning messages will appear regarding not attempting to link thepre-commit
files which otherwise don't actually get linked. Rather, a zero length file is created, causing an Visual Studio.This PR addresses https://github.com/wolfSSL/wolfTPM/issues/346