-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.ps1
26 lines (20 loc) · 794 Bytes
/
build.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
if (($args.count -ne 1) -or ($args[0] -eq "")) {
Write-Output "Expected build type arg"
exit 1
}
$build_type = $args[0]
quartus_sh -t generate.tcl $build_type
$exitcode = $LASTEXITCODE
if ($exitcode -ne 0) {
Write-Output "Build failed with $exitcode"
exit $exitcode
}
$output_file = "snes_main.rev"
if (($build_type -eq "ntsc") -or ($build_type -eq "none")) {
$output_file = "snes_main.rev"
} elseif (($build_type -eq "pal") -or ($build_type -eq "none_pal")) {
$output_file = "snes_pal.rev"
} elseif ($build_type -eq "ntsc_spc") {
$output_file = "snes_spc.rev"
}
C:\Users\adam\code\pocket-text\tools\reverse.exe C:\Users\adam\code\fpga\openFPGA\ports\snes\projects\output_files\snes_pocket.rbf "C:\Users\adam\code\fpga\openFPGA\ports\snes\pkg\Cores\agg23.SNES\$output_file";