rem makebin src dst [win7 | wlh | wnet | wxp] DDK_ROOT WdfCoInstaler_Ver\r
rem\r
rem src(%1) - OpenIB src path ...\gen1\trunk\r
-rem dst(%2) - full path tp where binaries are copied, 'bin\' created here.\r
+rem dst(%2) - full path to where binaries are copied, must exist.\r
rem OSE(%3) - (Operating System Environment) which windows version\r
rem {win7,wxp,wlh,wnet} representing {XP, server 2008 & server 2003}\r
rem DDK_ROOT - {blank == assumes %SystemDrive%\WinDDK\6001.1801}\r
\r
set DAPL2_D=dapl2d.dll dapl2d.pdb dapl2-ofa-scmd.dll dapl2-ofa-scmd.pdb dapl2-ofa-cmad.dll dapl2-ofa-cmad.pdb dat2d.dll dat2d.lib dat2d.pdb\r
\r
-set DAPL_F=dapl.dll dapl.pdb dat.dll dat.lib dat.pdb\r
-\r
-set DAPL_D=dapld.dll dapld.pdb datd.dll datd.lib datd.pdb\r
-\r
\r
rem\r
rem KERNEL MODE\r
echo xcopy *.exe tools\amd64\debug\\r
xcopy %bin_dir%\*.exe %2\tools\amd64\debug\ /yq 1>nul\r
\r
-for %%i in ( %DAPL_D% ) do (\r
- xcopy %bin_dir%\%%i %2\DAPL\amd64\ /yq 1>nul\r
- if ERRORLEVEL 1 (\r
- echo ERR on xcopy %bin_dir%\%%i %2\DAPL\amd64\ /yq\r
- exit /B 1\r
- )\r
-)\r
-\r
for %%i in ( %DAPL2_D% ) do (\r
xcopy %bin_dir%\%%i %2\DAPL2\amd64\ /yq 1>nul\r
if ERRORLEVEL 1 (\r
echo xcopy *.exe tools\ia64\debug\ \r
xcopy %bin_dir%\*.exe %2\tools\ia64\debug\ /yq 1>nul\r
\r
-for %%i in ( %DAPL_D% ) do (\r
- xcopy %bin_dir%\%%i %2\DAPL\ia64\ /yq 1>nul\r
- if ERRORLEVEL 1 (\r
- echo ERR on xcopy %bin_dir%\%%i %2\DAPL\ia64\ /yq\r
- exit /B 1\r
- )\r
-)\r
-\r
for %%i in ( %DAPL2_D% ) do (\r
xcopy %bin_dir%\%%i %2\DAPL2\ia64\ /yq 1>nul\r
if ERRORLEVEL 1 (\r
if "%DBG%" == "TRUE" echo DBG: checked *.exe to tools\x86\debug\ \r
xcopy %bin_dir%\*.exe %2\tools\x86\debug\ /yq 1>nul\r
\r
-for %%i in ( %DAPL_D% ) do (\r
- xcopy %bin_dir%\%%i %2\DAPL\x86\ /yq 1>nul\r
- if ERRORLEVEL 1 (\r
- echo ERR on xcopy %bin_dir%\%%i %2\DAPL\x86\ /yq\r
- exit /B 1\r
- )\r
-)\r
-\r
for %%i in ( %DAPL2_D% ) do (\r
xcopy %bin_dir%\%%i %2\DAPL2\x86\ /yq 1>nul\r
if ERRORLEVEL 1 (\r
copy /B %bin_dir%\mlx4ud.dll %2\HCA\amd64\mlx4u32d.dll /y \r
copy /B %bin_dir%\mlx4ud.dll %2\HCA\ia64\mlx4u32d.dll /y\r
\r
-copy /B %bin_dir%\dapld.dll %2\DAPL\amd64\dapl32d.dll /y \r
-copy /B %bin_dir%\datd.dll %2\DAPL\amd64\dat32d.dll /y \r
-copy /B %bin_dir%\dapld.dll %2\DAPL\ia64\dapl32d.dll /y \r
-copy /B %bin_dir%\datd.dll %2\DAPL\ia64\dat32d.dll /y \r
-\r
copy /B %bin_dir%\dapl2d.dll %2\DAPL2\amd64\dapl232d.dll /y \r
copy /B %bin_dir%\dat2d.dll %2\DAPL2\amd64\dat232d.dll /y \r
copy /B %bin_dir%\dapl2d.dll %2\DAPL2\ia64\dapl232d.dll /y \r
exit /B 1\r
)\r
\r
-for %%i in ( %DAPL_F% ) do (\r
- xcopy %bin_dir%\%%i %2\DAPL\amd64\ /yq 1>nul\r
- if ERRORLEVEL 1 (\r
- echo ERR on xcopy %bin_dir%\%%i %2\DAPL\amd64\ /yq\r
- exit /B 1\r
- )\r
-)\r
-\r
for %%i in ( %DAPL2_F% ) do (\r
xcopy %bin_dir%\%%i %2\DAPL2\amd64\ /yq 1>nul\r
if ERRORLEVEL 1 (\r
exit /B 1\r
)\r
\r
-for %%i in ( %DAPL_F% ) do (\r
- xcopy %bin_dir%\%%i %2\DAPL\ia64\ /yq 1>nul\r
- if ERRORLEVEL 1 (\r
- echo ERR on xcopy %bin_dir%\%%i %2\DAPL2\ia64\ /yq\r
- exit /B 1\r
- )\r
-)\r
-\r
for %%i in ( %DAPL2_F% ) do (\r
xcopy %bin_dir%\%%i %2\DAPL2\ia64\ /yq 1>nul\r
if ERRORLEVEL 1 (\r
exit /B 1\r
)\r
\r
-for %%i in ( %DAPL_F% ) do (\r
- xcopy %bin_dir%\%%i %2\DAPL\x86\ /yq 1>nul\r
- if ERRORLEVEL 1 (\r
- echo ERR on xcopy %bin_dir%\%%i %2\DAPL2\x86\ /yq\r
- exit /B 1\r
- )\r
-)\r
-\r
for %%i in ( %DAPL2_F% ) do (\r
xcopy %bin_dir%\%%i %2\DAPL2\x86\ /yq 1>nul\r
if ERRORLEVEL 1 (\r
copy /B %bin_dir%\mlx4u.dll %2\HCA\amd64\mlx4u32.dll /y\r
copy /B %bin_dir%\mlx4u.dll %2\HCA\ia64\mlx4u32.dll /y\r
\r
-copy /B %bin_dir%\dapl.dll %2\DAPL\amd64\dapl32.dll /y\r
-copy /B %bin_dir%\dat.dll %2\DAPL\amd64\dat32.dll /y\r
-copy /B %bin_dir%\dapl.dll %2\DAPL\ia64\dapl32.dll /y\r
-copy /B %bin_dir%\dat.dll %2\DAPL\ia64\dat32.dll /y\r
-\r
copy /B %bin_dir%\dapl2.dll %2\DAPL2\amd64\dapl232.dll /y\r
copy /B %bin_dir%\dat2.dll %2\DAPL2\amd64\dat232.dll /y\r
copy /B %bin_dir%\dapl2.dll %2\DAPL2\ia64\dapl232.dll /y\r
rem del /s bin\*.exp > nul\r
rem popd\r
\r
-rem Copy DAT v1.1 header files\r
-if "%DBG%" == "TRUE" echo DBG: DAT v1.1 header files\r
-if exist %1\ulp\dapl\dat\include\dat (\r
- pushd %1\ulp\dapl\dat\include\dat\r
-\r
- xcopy dat.h %2\DAPL /Y/Q\r
- xcopy dat_error.h %2\DAPL /Y/Q\r
- xcopy dat_platform_specific.h %2\DAPL /Y/Q\r
- xcopy dat_redirection.h %2\DAPL /Y/Q\r
- xcopy dat_registry.h %2\DAPL /Y/Q\r
- xcopy dat_vendor_specific.h %2\DAPL /Y/Q\r
- xcopy udat.h %2\DAPL /Y/Q\r
- xcopy udat_config.h %2\DAPL /Y/Q\r
- xcopy udat_redirection.h %2\DAPL /Y/Q\r
- xcopy udat_vendor_specific.h %2\DAPL /Y/Q\r
- popd\r
-)\r
-\r
rem Copy DAT v2.0 header files\r
-\r
if "%DBG%" == "TRUE" echo DBG: [%OSE%] DAT v2.0 header files\r
\r
if exist %1\ulp\dapl2\dat\include\dat (set DATINC=dat) else (set DATINC=dat2)\r
echo %1\bin\user\objchk_%OSE%_x86\i386 missing \r
\r
:end\r
-echo .\r
+echo.\r
echo Finished OS %3\r
-echo .\r
+echo.\r
\r
endlocal\r