-
Notifications
You must be signed in to change notification settings - Fork 17
/
_build.cmd
31 lines (23 loc) · 918 Bytes
/
_build.cmd
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
27
28
29
30
31
@echo off
echo Updating docker image
docker pull fbelavenuto/8bitcompilers
docker pull fbelavenuto/xilinxise
set /p NXT_VERSION=<Nextor\VERSION
echo Building Driver
docker run --rm -it -v %cd%/driver:/src fbelavenuto/8bitcompilers N80 DRIVER.ASM DRIVER.BIN --listing-file DRIVER.LST
IF ERRORLEVEL 1 GOTO error
echo Building ROM
docker run --rm -it -v %cd%:/src fbelavenuto/8bitcompilers mknexrom Nextor/Nextor-%NXT_VERSION%.base.dat driver/SDMAPPER.ROM /d:driver/DRIVER.BIN /m:Nextor/Mapper.ASCII16.bin
IF ERRORLEVEL 1 GOTO error
echo Building Updater
docker run --rm -it -v %cd%/updater:/src fbelavenuto/8bitcompilers N80 SDMUPD.ASM SDMUPD.COM --listing-file SDMUPD.LST
IF ERRORLEVEL 1 GOTO error
echo Building CPLD bitstream
docker run --rm -it -v %cd%/CPLD:/workdir fbelavenuto/xilinxise make
IF ERRORLEVEL 1 GOTO error
goto ok
:error
echo Ocorreu algum erro!
:ok
echo.
pause