summaryrefslogtreecommitdiff
path: root/buildwinARM64.cmd
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2019-12-22 16:45:00 +0100
committerJörg Frings-Fürst <debian@jff.email>2019-12-22 16:45:00 +0100
commit2a7448a72a118fd596bf35c46a216ea3fe689ceb (patch)
tree1af0514cb06c99ad7b55defa398eb253666d1c89 /buildwinARM64.cmd
parentfd5b20783fcab6050b5bb1dd66b29a76cb6705c5 (diff)
parent596189b7b38b9869fa632f9f15fe76652c4d6a3d (diff)
Update upstream source from tag 'upstream/3.1.5'
Update to upstream version '3.1.5' with Debian dir 5186277f3858581c5c76526eb853cfa89fa81fef
Diffstat (limited to 'buildwinARM64.cmd')
-rw-r--r--buildwinARM64.cmd49
1 files changed, 49 insertions, 0 deletions
diff --git a/buildwinARM64.cmd b/buildwinARM64.cmd
new file mode 100644
index 0000000..aa9dc1e
--- /dev/null
+++ b/buildwinARM64.cmd
@@ -0,0 +1,49 @@
+@echo off
+REM # buildwin.cmd
+REM # build ipmiutil for windows
+REM #
+REM # First download a copy of getopt.c getopt.h.
+REM # copy getopt.* util
+REM # Then download and build a copy of openssl for Windows,
+REM # and copy the built openssl files needed to lib & inc.
+REM # copy libeay32.lib ssleay32.lib lib
+REM # copy libeay32.dll ssleay32.dll util
+REM # copy include\openssl\*.h lib\lanplus\inc\openssl
+REM #
+REM # You should either run this from the Visual Studio Command Line,
+REM # or first run the appropriate vcvars.bat script.
+set | findstr VCINSTALLDIR
+if %errorlevel% EQU 1 goto vcerror
+
+REM TODO, prebuild checking:
+REM check for getopt.c,h
+REM check for ssl libs
+REM check for ssl includes
+REM call mkssl
+
+set MARCH=ARM64
+set DSSL11=TRUE
+set UTMAKE=ipmiutil.mak
+echo %LIBPATH% |findstr /C:64 >NUL
+if %errorlevel% EQU 0 set UTMAKE=ipmiutil64.mak
+
+cd lib
+nmake /nologo -f ipmilib.mak all
+cd ..
+REM # echo make lib done
+
+cd util
+nmake /nologo -f %UTMAKE% all
+cd ..
+REM # echo make util done
+
+echo buildwin %UTMAKE% done
+goto done
+
+:vcerror
+echo First need to run vcvars.bat
+echo Check that VCINSTALLDIR and LIBPATH are correct
+
+:done
+set MARCH=
+set DSSL11= \ No newline at end of file