summaryrefslogtreecommitdiffstats
path: root/ms
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-04-21 21:06:12 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-04-21 21:06:12 +0000
commit79170bc97a0a927ef24b192b51bf316f8660f8e3 (patch)
treec905dbd4358843d73ecfaedbf2ceba0a67accc2a /ms
parent95c9e774f9a2071536682e4b16445a877c1b8f96 (diff)
Initial do_fips.bat build script for WIN32 fipscanister.
Diffstat (limited to 'ms')
-rw-r--r--ms/do_fips.bat87
1 files changed, 87 insertions, 0 deletions
diff --git a/ms/do_fips.bat b/ms/do_fips.bat
new file mode 100644
index 0000000000..b1611c4710
--- /dev/null
+++ b/ms/do_fips.bat
@@ -0,0 +1,87 @@
+@echo off
+
+SET ASM=%1
+
+if NOT X%PROCESSOR_ARCHITECTURE% == X goto defined
+
+echo Processor Architecture Undefined: defaulting to X86
+
+goto X86
+
+:defined
+
+if %PROCESSOR_ARCHITECTURE% == x86 goto X86
+
+if %PROCESSOR_ARCHITECTURE% == IA64 goto IA64
+
+if %PROCESSOR_ARCHITECTURE% == AMD64 goto AMD64
+
+echo Processor Architecture Unrecognized: defaulting to X86
+
+:X86
+echo Auto Configuring for X86
+
+SET TARGET=VC-WIN32
+
+goto compile
+
+:IA64
+
+echo Auto Configuring for IA64
+SET TARGET=VC-WIN64I
+perl ms\uplink.pl win64i > ms\uptable.asm
+if ERRORLEVEL 1 goto error
+ias -o ms\uptable.obj ms\uptable.asm
+if ERRORLEVEL 1 goto error
+
+goto compile
+
+:AMD64
+
+echo Auto Configuring for AMD64
+SET TARGET=VC-WIN64A
+perl ms\uplink.pl win64a > ms\uptable.asm
+if ERRORLEVEL 1 goto error
+ml64 -c -Foms\uptable.obj ms\uptable.asm
+if ERRORLEVEL 1 goto error
+
+:compile
+
+perl Configure %TARGET% fipscanisteronly
+pause
+
+echo on
+
+perl util\mkfiles.pl >MINFO
+@if ERRORLEVEL 1 goto error
+perl util\mk1mf.pl dll %ASM% %TARGET% >ms\ntdll.mak
+@if ERRORLEVEL 1 goto error
+
+perl util\mkdef.pl 32 libeay > ms\libeay32.def
+@if ERRORLEVEL 1 goto error
+perl util\mkdef.pl 32 ssleay > ms\ssleay32.def
+@if ERRORLEVEL 1 goto error
+
+nmake -f ms\ntdll.mak clean
+nmake -f ms\ntdll.mak
+@if ERRORLEVEL 1 goto error
+
+@echo.
+@echo.
+@echo.
+@echo ***************************
+@echo ****FIPS BUILD SUCCESS*****
+@echo ***************************
+
+@goto end
+
+:error
+
+@echo.
+@echo.
+@echo.
+@echo ***************************
+@echo ****FIPS BUILD FAILURE*****
+@echo ***************************
+
+:end
ystem to transition into that state. Please see the file Documentation/power/states.txt for a description of each of these states. What: /sys/power/disk Date: August 2006 Contact: Rafael J. Wysocki <rjw@sisk.pl> Description: The /sys/power/disk file controls the operating mode of the suspend-to-disk mechanism. Reading from this file returns the name of the method by which the system will be put to sleep on the next suspend. There are four methods supported: 'firmware' - means that the memory image will be saved to disk by some firmware, in which case we also assume that the firmware will handle the system suspend. 'platform' - the memory image will be saved by the kernel and the system will be put to sleep by the platform driver (e.g. ACPI or other PM registers). 'shutdown' - the memory image will be saved by the kernel and the system will be powered off. 'reboot' - the memory image will be saved by the kernel and the system will be rebooted. The suspend-to-disk method may be chosen by writing to this file one of the accepted strings: 'firmware' 'platform' 'shutdown' 'reboot' It will only change to 'firmware' or 'platform' if the system supports that. What: /sys/power/image_size Date: August 2006 Contact: Rafael J. Wysocki <rjw@sisk.pl> Description: The /sys/power/image_size file controls the size of the image created by the suspend-to-disk mechanism. It can be written a string representing a non-negative integer that will be used as an upper limit of the image size, in bytes. The kernel's suspend-to-disk code will do its best to ensure the image size will not exceed this number. However, if it turns out to be impossible, the kernel will try to suspend anyway using the smallest image possible. In particular, if "0" is written to this file, the suspend image will be as small as possible. Reading from this file will display the current image size limit, which is set to 500 MB by default. What: /sys/power/pm_trace Date: August 2006 Contact: Rafael J. Wysocki <rjw@sisk.pl> Description: The /sys/power/pm_trace file controls the code which saves the last PM event point in the RTC across reboots, so that you can debug a machine that just hangs during suspend (or more commonly, during resume). Namely, the RTC is only used to save the last PM event point if this file contains '1'. Initially it contains '0' which may be changed to '1' by writing a string representing a nonzero integer into it. To use this debugging feature you should attempt to suspend the machine, then reboot it and run dmesg -s 1000000 | grep 'hash matches' CAUTION: Using it will cause your machine's real-time (CMOS) clock to be set to a random invalid time after a resume.