diff --git a/.gitignore b/.gitignore index 866cb51d..50130013 100644 --- a/.gitignore +++ b/.gitignore @@ -81,3 +81,6 @@ config/*.ld # Generated confiuguration file .config +.vs +*.filters +*.user diff --git a/tools/keytools/sign.c b/tools/keytools/sign.c old mode 100644 new mode 100755 index 68c0f64c..38641616 --- a/tools/keytools/sign.c +++ b/tools/keytools/sign.c @@ -55,6 +55,10 @@ #include #include +#ifdef _WIN32 + #define PATH_MAX 256 +#endif + #define WOLFBOOT_MAGIC 0x464C4F57 /* WOLF */ #define HDR_VERSION 0x01 diff --git a/tools/keytools/wolfBootSignTool.sln b/tools/keytools/wolfBootSignTool.sln new file mode 100755 index 00000000..00fbb0c9 --- /dev/null +++ b/tools/keytools/wolfBootSignTool.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.28307.779 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "wolfBootSignTool", "wolfBootSignTool.vcxproj", "{0E5B9C81-CA2B-47CA-BA83-074078CF3393}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {0E5B9C81-CA2B-47CA-BA83-074078CF3393}.Debug|x64.ActiveCfg = Debug|x64 + {0E5B9C81-CA2B-47CA-BA83-074078CF3393}.Debug|x64.Build.0 = Debug|x64 + {0E5B9C81-CA2B-47CA-BA83-074078CF3393}.Debug|x86.ActiveCfg = Debug|Win32 + {0E5B9C81-CA2B-47CA-BA83-074078CF3393}.Debug|x86.Build.0 = Debug|Win32 + {0E5B9C81-CA2B-47CA-BA83-074078CF3393}.Release|x64.ActiveCfg = Release|x64 + {0E5B9C81-CA2B-47CA-BA83-074078CF3393}.Release|x64.Build.0 = Release|x64 + {0E5B9C81-CA2B-47CA-BA83-074078CF3393}.Release|x86.ActiveCfg = Release|Win32 + {0E5B9C81-CA2B-47CA-BA83-074078CF3393}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {002B85D3-20F7-44FB-BFA5-6B5AC72F499B} + EndGlobalSection +EndGlobal diff --git a/tools/keytools/wolfBootSignTool.vcxproj b/tools/keytools/wolfBootSignTool.vcxproj new file mode 100755 index 00000000..3561aa4c --- /dev/null +++ b/tools/keytools/wolfBootSignTool.vcxproj @@ -0,0 +1,174 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + {0E5B9C81-CA2B-47CA-BA83-074078CF3393} + Win32Proj + wolfBootSignTool + 10.0.17763.0 + + + + Application + true + v141 + Unicode + + + Application + false + v141 + true + Unicode + + + Application + true + v141 + Unicode + + + Application + false + v141 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + sign + + + true + + + false + sign + + + false + + + + + + Level3 + Disabled + WIN32;WOLFSSL_USER_SETTINGS;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + ..\..\lib\wolfssl;.;%(AdditionalIncludeDirectories) + + + Console + true + + + + + + + Level3 + Disabled + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;WOLFSSL_USER_SETTINGS;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + ..\..\lib\wolfssl;.;%(AdditionalIncludeDirectories) + + + Console + true + true + true + + + + + Level3 + + + MaxSpeed + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + + + Console + true + true + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file