mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 21:08:51 +00:00
Deleted old build files.
This commit is contained in:
parent
ba40651f60
commit
f505fb3b59
7 changed files with 0 additions and 106 deletions
|
|
@ -1,20 +0,0 @@
|
|||
@rem call msbuild3_5 d:\dotnet\il2asm\repos\source\IL2CPU.sln
|
||||
cd iso
|
||||
|
||||
@REM ----------- Compile with IL2CPU
|
||||
del output.asm
|
||||
..\..\..\source\il2cpu\bin\Debug\il2cpu -in:..\..\..\source\Cosmos\Cosmos.Shell.Console\bin\Debug\Cosmos.Shell.Console.exe -plug:..\..\..\source\Cosmos\Cosmos.Kernel.Plugs\bin\Debug\Cosmos.Kernel.Plugs.dll -out:output.obj -platform:nativex86 -asm:output.asm
|
||||
copy /Y output.obj files\output.obj
|
||||
pause
|
||||
|
||||
@REM ----------- Build ISO
|
||||
del cosmos.iso
|
||||
attrib files\syslinux\isolinux.bin -r
|
||||
..\..\..\Tools\mkisofs\mkisofs -R -b syslinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -o Cosmos.iso files
|
||||
pause
|
||||
|
||||
REM ----------- Start QEMU
|
||||
del serial-debug.txt
|
||||
cd ..\..\..\tools\qemu\
|
||||
qemu.exe -L . -cdrom ..\..\build\Cosmos\ISO\Cosmos.iso -boot d -hda ..\..\build\Cosmos\ISO\C-drive.img -serial file:..\..\build\Cosmos\ISO\serial-debug.txt -kernel-kqemu
|
||||
pause
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
@echo off
|
||||
powershell -command "%1"
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
# call msbuild3_5 d:\dotnet\il2asm\repos\source\IL2CPU.sln
|
||||
|
||||
.\sub-compile
|
||||
|
||||
remove-item PXE\Boot\output.obj -ea SilentlyContinue
|
||||
move-item output.obj PXE\Boot\output.obj
|
||||
|
||||
# must change dir so tftpd32 will set itself to proper dir
|
||||
cd pxe
|
||||
.\tftpd32
|
||||
cd ..
|
||||
|
||||
.\sub-pause
|
||||
|
|
@ -1,54 +0,0 @@
|
|||
# call msbuild3_5 d:\dotnet\il2asm\repos\source\IL2CPU.sln
|
||||
|
||||
.\sub-compile
|
||||
.\sub-pause
|
||||
|
||||
.\sub-MakeISO
|
||||
.\sub-pause
|
||||
|
||||
cd iso
|
||||
# ----------- Start QEMU
|
||||
remove-item serial-debug.txt -ea SilentlyContinue
|
||||
cd ..\..\..\tools\qemu\
|
||||
#.\qemu -L . -cdrom ..\..\build\Cosmos\ISO\Cosmos.iso -boot d -hda ..\..\build\Cosmos\ISO\C-drive.img -serial "file:..\..\build\Cosmos\ISO\serial-debug.txt" -S -s
|
||||
$qemu = resolve-path qemu.exe
|
||||
$qemuparms = '-L . -cdrom ..\..\build\Cosmos\ISO\Cosmos.iso -boot d -hda ..\..\build\Cosmos\ISO\C-drive.img -serial "file:..\..\build\Cosmos\ISO\serial-debug.txt" -no-kqemu -S -s'
|
||||
# Still failing - because its a command line exe? run under cmd.exe?
|
||||
$processInfo = new-object System.Diagnostics.ProcessStartInfo
|
||||
$processInfo.FileName = $qemu
|
||||
$processInfo.WorkingDirectory = [System.IO.Path]::GetDirectoryName($qemu);
|
||||
$processInfo.Arguments = $qemuparms;
|
||||
$processInfo.UseShellExecute = $False
|
||||
$processInfo.RedirectStandardOutput = $False
|
||||
$processInfo.RedirectStandardError = $False
|
||||
$process = [System.Diagnostics.Process]::Start($processInfo)
|
||||
#if(!($process.WaitForExit(60*1000) -and ($process.ExitCode -eq 0)))
|
||||
#{
|
||||
# Write-Host $process.StandardOutput.ReadToEnd()
|
||||
# Write-Host $process.StandardError.ReadToEnd()
|
||||
#}
|
||||
[System.Threading.Thread]::Sleep(1000)
|
||||
cd ..\gdb\bin\
|
||||
$blaat = resolve-path ..\..\..\Build\Cosmos\ISO\files\output.obj
|
||||
$gdb = resolve-path gdb.exe
|
||||
$gdbparms = [System.String]::Concat($blaat, ' --eval-command="target remote:1234" --eval-command="b _CODE_REQUESTED_BREAK_" --eval-command="c"');
|
||||
$process2 = [System.Diagnostics.Process]::Start($gdb, $gdbparms);
|
||||
$process2.WaitForExit()
|
||||
|
||||
..\sub-pause
|
||||
|
||||
#http://www.vistax64.com/powershell/114718-how-can-i-execute-wmi-method-asynchronously.html
|
||||
#http://blogs.technet.com/industry_insiders/pages/executing-a-command-line-utility-from-powershell-and-waiting-for-it-to-finish.aspx
|
||||
#invoke-item
|
||||
if(!$process2.HasExited) {
|
||||
$process2.Kill()
|
||||
}
|
||||
if(!$process.HasExited) {
|
||||
$process.Kill()
|
||||
}
|
||||
|
||||
#PXE
|
||||
#remove-item PXE\Boot\output.obj -ea SilentlyContinue
|
||||
#move-item output.obj PXE\Boot\output.obj
|
||||
|
||||
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
# ----------- Compile with IL2CPU
|
||||
remove-item output.asm -ea SilentlyContinue
|
||||
|
||||
..\..\source\il2cpu\bin\Debug\il2cpu "-in:..\..\source\Cosmos\Cosmos.Shell.Console\bin\Debug\Cosmos.Shell.Console.exe" "-plug:..\..\source\Cosmos\Cosmos.Kernel.Plugs\bin\Debug\Cosmos.Kernel.Plugs.dll" "-out:output.obj" "-platform:nativex86" "-asm:.\asm"
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
# ----------- Build ISO
|
||||
remove-item ISO\files\output.obj -ea SilentlyContinue
|
||||
move-item output.obj ISO\files\output.obj
|
||||
|
||||
remove-item ISO\cosmos.iso -ea SilentlyContinue
|
||||
attrib ISO\files\syslinux\isolinux.bin -r
|
||||
|
||||
cd iso
|
||||
..\..\..\Tools\mkisofs\mkisofs -R -b syslinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -o Cosmos.iso files
|
||||
cd ..
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
Write-Host -NoNewLine "Press any key to continue..."
|
||||
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
|
||||
Write-Host ""
|
||||
Loading…
Reference in a new issue