?login_element?

Subversion Repositories NedoOS

Rev

Rev 922 | Blame | Compare with Previous | Last modification | View Log | Download

  1. @ECHO OFF
  2. echo Build fatfs
  3. set Z80_IDE_PATH=..\..\iar
  4. IF NOT EXIST %Z80_IDE_PATH%\bin\iccz80.exe (
  5.         ECHO IAR not found. Skipping build FatFS
  6.         EXIT /b
  7. )
  8. set ICCZ80=%Z80_IDE_PATH%\bin\iccz80
  9. set AZ80=%Z80_IDE_PATH%\bin\az80
  10. set XLINK=%Z80_IDE_PATH%\bin\xlink
  11. set IARINC=%Z80_IDE_PATH%\inc\
  12. set IARLIB=%Z80_IDE_PATH%\lib\
  13. IF NOT EXIST %ICCZ80%.exe (
  14.         ECHO IAR not found. Skipping build "%PRJNAME%"
  15.         EXIT /b
  16. )
  17. if not exist list mkdir list
  18. set C_OPTIONS=-S -v0 -ml -uua -q -e -K -gA -z9 -t4 -T -Llist\ -Olist\ -Alist\ -I%IARINC%
  19.  
  20. %ICCZ80% %C_OPTIONS% ff.c
  21. %ICCZ80% %C_OPTIONS% ccsbcs.c
  22. %AZ80% -S -Olist\ -uu mylib.asm
  23.  
  24. %XLINK% ff ccsbcs mylib -f link.lnk
  25.  
  26. echo ;FatFS calls > ..\kernel\ffsfunc.asm
  27. echo ffsfunc >> ..\kernel\ffsfunc.asm
  28. FOR /F "eol=# tokens=1,2,3 delims=_ " %%i in (list/cout.l) do (
  29.         IF "%%i"=="f" (
  30.                 @echo .%%i_%%j EQU 0x%%k >> ../kernel/ffsfunc.asm
  31.         )
  32. )
  33.