-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path_setup.bat
115 lines (98 loc) · 2.61 KB
/
_setup.bat
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
@echo off
rem Setup device to compile
rem First command-line parameter (%1) of this batch contains device name (e.g. picopad10).
rem This batch is called from the _c1.bat file.
rem Use configuration name as parameter of the batch, to select target device:
rem pico .......... base Raspberry Pico module
rem pico2 ......... base Raspberry Pico 2 module in ARM mode
rem pico2riscv .... base Raspberry Pico 2 module in RISC-V mode
rem picotron ...... Picotron with VGA YRGB1111 output
rem picoinomini ... Picoino mini version with VGA RGB332 output
rem picoino10 ..... Picoino version 1.0 with VGA RGB332 output
rem demovga ....... DemoVGA board with VGA RGB565 output
rem picopad08 ..... PicoPad beta version 0.8
rem picopad10 ..... PicoPad version 1.0 with TFT RGB565 output
rem picopad20 ..... PicoPad version 2.0 (ARM) with TFT RGB565 output
rem picopad20riscv PicoPad version 2.0 (RISC-V) with TFT RGB565 output
rem picopadvga .... PicoPad with VGA RGB565 output
rem (empty) ....... default compilation
rem Move ":default" label before configuration, which you want to use as default.
if "%1"=="pico" goto pico
if "%1"=="pico2" goto pico2
if "%1"=="pico2riscv" goto pico2riscv
if "%1"=="picotron" goto picotron
if "%1"=="picoinomini" goto picoinomini
if "%1"=="picoino10" goto picoino10
if "%1"=="demovga" goto demovga
if "%1"=="picopad08" goto picopad08
if "%1"=="picopad10" goto picopad10
if "%1"=="picopad20" goto picopad20
if "%1"=="picopad20riscv" goto picopad20riscv
if "%1"=="picopadvga" goto picopadvga
if "%1"=="" goto default
echo.
echo Incorrect configuration "%1"!
echo Press Ctrl+C to break compilation.
pause
goto default
:pico
set DEVICE=pico
set DEVCLASS=pico
set DEVDIR=!Pico
exit /b
:pico2
set DEVICE=pico2
set DEVCLASS=pico
set DEVDIR=!Pico2
exit /b
:pico2riscv
set DEVICE=pico2riscv
set DEVCLASS=pico
set DEVDIR=!Pico2riscv
exit /b
:picotron
set DEVICE=picotron
set DEVCLASS=picotron
set DEVDIR=!Picotron
exit /b
:picoinomini
set DEVICE=picoinomini
set DEVCLASS=picoino
set DEVDIR=!PicoinoMini
exit /b
:picoino10
set DEVICE=picoino10
set DEVCLASS=picoino
set DEVDIR=!Picoino10
exit /b
:demovga
set DEVICE=demovga
set DEVCLASS=demovga
set DEVDIR=!DemoVGA
exit /b
:picopad08
set DEVICE=picopad08
set DEVCLASS=picopad
set DEVDIR=!PicoPad08
exit /b
:picopad10
set DEVICE=picopad10
set DEVCLASS=picopad
set DEVDIR=!PicoPad10
exit /b
:default
:picopad20
set DEVICE=picopad20
set DEVCLASS=picopad
set DEVDIR=!PicoPad20
exit /b
:picopad20riscv
set DEVICE=picopad20riscv
set DEVCLASS=picopad
set DEVDIR=!PicoPad20riscv
exit /b
:picopadvga
set DEVICE=picopadvga
set DEVCLASS=picopad
set DEVDIR=!PicoPadVGA
exit /b