⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 8202.bat

📁 SPH compilation of firmware
💻 BAT
字号:
echo off


if "%1" == "32" goto start
if "%1" == "16"	goto start
if "%1" == "" goto bad_parameter
goto bad_parameter


REM===================================================================
:bad_parameter
echo **********************
echo bad parameter
echo for 16m, usage: 8202 16
echo for 32m, usage: 8202 32
echo Don't compiler dsp's dir, usage: 8202 16(or 32) nd
echo **********************
goto end
REM===================================================================


:start
set path_saved=%path%
set path=.\package;%path%
font_parse.exe
set path=%path_saved%
set path_saved=
del mips\crt0.o
del mips\init0.o
del mips\intdrv.o


if "%1" == "16"	goto sdram16
if "%1" == "32" goto sdram32


REM ==================================================================
:sdram32
rem if exist clib\makefile call clib.bat

if exist osd\makefile call osd.bat %1
if not exist mipsel-elf\libosd_8202.a goto failed

if exist auddrv\makefile call auddrv.bat %1
if not exist mipsel-elf\libauddrv.a goto failed

if exist css\makefile call css.bat %1
if not exist mipsel-elf\libcss.a goto failed

if exist ide\makefile call ide.bat %1
if not exist mipsel-elf\libatapi_8202.a goto failed

if exist auth\makefile call auth.bat %1
if not exist mipsel-elf\libauth_8202.a goto failed

if exist nav\makefile call nav.bat %1
if not exist mipsel-elf\libnav_8202.a goto failed

rem if exist kernel\makefile call kernel.bat %1
rem if not exist mipsel-elf\libkern_8202.a goto failed
rem if exist kernel\makefile_mp4 call mp4.bat %1
rem if not exist mipsel-elf\libmp4_8202.a goto failed

if exist kernel\Makefile_game16 call game16.bat %1
if not exist mipsel-elf\libgame16_8202.a goto failed

if exist GraphDrv\makefile call GraphDrv.bat %1
if not exist mipsel-elf\libGraphDrv.a goto failed

rem if exist chinese\makefile call ch.bat %1
rem if exist test\makefile call test.bat %1

if exist jpeg\makefile call jpeg.bat %1
if not exist mipsel-elf\libjpeg_8202.a goto failed

if exist jpeg\pic_parser\makefile call jpeg_parser.bat %1
if not exist mipsel-elf\libjpeg_parser.a goto failed

if exist jpeg\pic_parser\mcu\makefile call jpeg_mcu.bat %1
if not exist mipsel-elf\libjpeg_mcu.a goto failed

if exist fs_mp4\parser\makefile call parser.bat
if not exist mipsel-elf\libparser.a goto failed

if exist fs\makefile call fs.bat %1
if not exist mipsel-elf\libfs_8202.a goto failed

if exist fs_krnl\makefile call fs_krnl.bat %1
if not exist mipsel-elf\libfs_krnl_8202.a goto failed

if exist filesearch\makefile call filesearch.bat %1
rem if not exist mipsel-elf\libfilesearch_8202.a goto failed

if exist ime\makefile call ime.bat %1
rem if not exist mipsel-elf\libime_8202.a goto failed


if exist fs_smf\makefile call fs_smf.bat %1
rem if not exist mipsel-elf\libfs_smf_8202.a goto failed

if exist fs_midi\makefile call fs_midi.bat %1
rem if not exist mipsel-elf\libfs_midi_8202.a goto failed

if exist fs_midi_cust\makefile call fs_midi_cust.bat %1     //ouyang add 2005.07.04
rem if not exist mipsel-elf\libfs_midi_cust.a goto failed

if exist fs_mp4\makefile call fs_mp4.bat %1
if not exist mipsel-elf\libfs_mp4_8202.a goto failed

if exist fs_pmp\makefile call fs_pmp.bat %1
rem if not exist mipsel-elf\libfs_pmp_8202.a goto failed

if exist peif\makefile call pe.bat %1
if not exist mipsel-elf\libpe_8202.a goto failed

if exist dsp3_src\makefile call dsp3.bat %1
if not exist mipsel-elf\libdsp3.a goto failed

if exist vcd\makefile call vcd.bat %1
if not exist mipsel-elf\libvcd_8202.a goto failed

if exist game\makefile call game.bat %1
if not exist mipsel-elf\libgame_8202.a goto failed

if exist task\makefile call task.bat %1
if not exist mipsel-elf\libtask_8202.a goto failed

if exist system\makefile call sys.bat %1
if not exist mipsel-elf\libsys_8202.a goto failed

if exist receiver\makefile call r.bat %1
REM if not exist mipsel-elf\libreceiver.a goto failed

REM============linrc FOR Frame BUF NATIVE_GAME===================
if exist FBUF_GAME\makefile call FB_GAME.bat %1
rem if not exist mipsel-elf\libdvdgame.a goto failed
REM====================================================

:not_dvb
call 1.bat %1 %2
if not exist mipsel-elf\libir_8202.a goto failed

goto end
REM ==================================================================


REM ==================================================================
:sdram16
rem if exist clib\makefile call clib.bat

if exist osd\makefile call osd.bat %1
if not exist mipsel-elf\libosd_16.a goto failed

if exist auddrv\makefile call auddrv.bat %1
if not exist mipsel-elf\libauddrv_16.a goto failed

if exist css\makefile call css.bat %1
if not exist mipsel-elf\libcss.a goto failed

if exist ide\makefile call ide.bat %1
if not exist mipsel-elf\libatapi_8202.a goto failed

if exist auth\makefile call auth.bat %1
if not exist mipsel-elf\libauth_16.a goto failed

if exist nav\makefile call nav.bat %1
if not exist mipsel-elf\libnav_16.a goto failed

rem if exist kernel\makefile call kernel.bat %1
rem if not exist mipsel-elf\libkern_8202.a goto failed
rem if exist kernel\makefile_mp4 call mp4.bat %1
rem if not exist mipsel-elf\libmp4_8202.a goto failed


rem if exist chinese\makefile call ch.bat %1
rem if exist test\makefile call test.bat %1

if exist jpeg\makefile call jpeg.bat %1
if not exist mipsel-elf\libjpeg_16.a goto failed

if exist jpeg\pic_parser\makefile call jpeg_parser.bat %1
if not exist mipsel-elf\libjpeg_parser.a goto failed

if exist jpeg\pic_parser\mcu\makefile call jpeg_mcu.bat %1
if not exist mipsel-elf\libjpeg_mcu.a goto failed

if exist fs_mp4\parser\makefile call parser.bat
if not exist mipsel-elf\libparser.a goto failed

if exist fs\makefile call fs.bat %1
if not exist mipsel-elf\libfs_16.a goto failed

if exist fs_krnl\makefile call fs_krnl.bat %1
if not exist mipsel-elf\libfs_krnl_16.a goto failed

if exist fs_midi\makefile call fs_midi.bat %1
rem if not exist mipsel-elf\libfs_midi_16.a goto failed

if exist fs_midi_cust\makefile call fs_midi_cust.bat %1    //ouyang add 2005.07.04
rem if not exist mipsel-elf\libfs_midi_cust.a goto failed

if exist fs_mp4\makefile call fs_mp4.bat %1
if not exist mipsel-elf\libfs_mp4_16.a goto failed

if exist fs_pmp\makefile call fs_pmp.bat %1
rem if not exist mipsel-elf\libfs_pmp_16.a goto failed

if exist peif\makefile call pe.bat %1
if not exist mipsel-elf\libpe_16.a goto failed

if "%2" == "nd"	goto no_dsp
if "%2" == "ND"	goto no_dsp
if exist dsp3\makefile call dsp3.bat %1
if not exist mipsel-elf\libdsp3.a goto failed

:no_dsp
if exist vcd\makefile call vcd.bat %1
if not exist mipsel-elf\libvcd_16.a goto failed

if exist game\makefile call game.bat %1
if not exist mipsel-elf\libgame_8202.a goto failed

if exist task\makefile call task.bat %1
if not exist mipsel-elf\libtask_8202.a goto failed

if exist system\makefile call sys.bat %1
if not exist mipsel-elf\libsys_16.a goto failed

if not exist demux\makefile goto not_dvb

REM============linrc FOR NATIVE_GAME===================
if exist NATIVE_GAME\makefile call NA_GAME.bat %1
rem if not exist mipsel-elf\libdvdgame.a goto failed
REM====================================================

call 1.bat %1 %2
if not exist mipsel-elf\libir_8202.a goto failed

goto end
REM ==================================================================


REM ===================================================================
:failed
echo compile failed
echo *************************
REM ===================================================================

:end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -