OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Source/] [portable/] [WizC/] [PIC18/] [Install.bat] - Blame information for rev 590

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 572 jeremybenn
@echo off
2
cls
3
 
4
SET PACKAGENAME=the FreeRTOS port for fedC and wizC
5
 
6
echo.
7
echo Hello, I'm the installationscript for %PACKAGENAME%.
8
echo.
9
 
10
:CHECKFEDC
11
  set FED=C:\Program Files\FED\PIC_C
12
  echo.
13
  echo I'm checking your system for fedC
14
  if not exist "%FED%" goto NOFEDC
15
  echo YES, I found a fedC-installation!
16
  goto FOUNDFED
17
:NOFEDC
18
  echo I could not find a fedC-installation.
19
 
20
 
21
:CHECKWIZC
22
  set FED=C:\Program Files\FED\PIXIE
23
  echo.
24
  echo I'm checking your system for wizC
25
  if not exist "%FED%" goto NOWIZC
26
  echo YES, I found a wizC-installation!
27
  goto FOUNDFED
28
:noWIZC
29
  echo I could not find a wizC-installation.
30
 
31
 
32
:ERROR
33
  echo.
34
  echo.
35
  echo I could not find a FED C-compiler installation on your system.
36
  echo.
37
  echo Perhaps I got confused because you installed fedC or wizC in a non-default directory.
38
  echo If this is the case, please change the path at the top of this install-script.
39
  echo After that rerun the script and I will be happy to try again.
40
  echo.
41
  goto ENDIT
42
 
43
 
44
:FOUNDFED
45
  echo.
46
  echo.
47
 
48
  set FEDLIBS=%FED%\Libs
49
  set FEDLIBSUSER=%FEDLIBS%\LibsUser
50
 
51
  if exist "%FEDLIBS%" goto INSTALL
52
  echo The FED installationdirectory "%FED%"
53
  echo contains no Libs subdirectory. This is weird!
54
  echo.
55
  echo Installation is aborted, sorry...
56
  goto ENDIT
57
 
58
 
59
:INSTALL
60
  echo I am about to install %PACKAGENAME%
61
  echo into directory %FEDLIBSUSER%
62
  echo.
63
  echo   Press 'enter'  to let me do my thing
64
  echo   Press 'ctrl-c' to stop me
65
  pause >nul
66
  echo.
67
  echo Installing...
68
 
69
 
70
:RESET_READONLY
71
  echo.
72
  echo   Removing ReadOnly attributes
73
  attrib -R "%FEDLIBSUSER%\libFreeRTOS\Modules\Croutine.c"     >nul
74
  attrib -R "%FEDLIBSUSER%\libFreeRTOS\Modules\Port.c"         >nul
75
  attrib -R "%FEDLIBSUSER%\libFreeRTOS\Modules\List.c"         >nul
76
  attrib -R "%FEDLIBSUSER%\libFreeRTOS\Modules\Queue.c"        >nul
77
  attrib -R "%FEDLIBSUSER%\libFreeRTOS\Modules\Tasks.c"        >nul
78
  attrib -R "%FEDLIBSUSER%\libFreeRTOS\Drivers\Tick\Tick.c"    >nul
79
  attrib -R "%FEDLIBSUSER%\libFreeRTOS\Drivers\Tick\isrTick.c" >nul
80
  attrib -R "%FEDLIBSUSER%\libFreeRTOS\Include\Portmacro.h"    >nul
81
  attrib -R "%FEDLIBSUSER%\libFreeRTOS\Include\Croutine.h"     >nul
82
  attrib -R "%FEDLIBSUSER%\libFreeRTOS\Include\List.h"         >nul
83
  attrib -R "%FEDLIBSUSER%\libFreeRTOS\Include\Portable.h"     >nul
84
  attrib -R "%FEDLIBSUSER%\libFreeRTOS\Include\Projdefs.h"     >nul
85
  attrib -R "%FEDLIBSUSER%\libFreeRTOS\Include\Queue.h"        >nul
86
  attrib -R "%FEDLIBSUSER%\libFreeRTOS\Include\Semphr.h"       >nul
87
  attrib -R "%FEDLIBSUSER%\libFreeRTOS\Include\Task.h"         >nul
88
  attrib -R "%FEDLIBSUSER%\FreeRTOS.h"                         >nul
89
  echo   Done
90
 
91
:CREATE_DIRECTORIES
92
  echo.
93
  echo   Creating directories (if necessary)...
94
  if not exist "%FEDLIBSUSER%"                          mkdir "%FEDLIBSUSER%"
95
  if not exist "%FEDLIBSUSER%\libFreeRTOS"              mkdir "%FEDLIBSUSER%\libFreeRTOS"
96
  if not exist "%FEDLIBSUSER%\libFreeRTOS\Drivers"      mkdir "%FEDLIBSUSER%\libFreeRTOS\Drivers"
97
  if not exist "%FEDLIBSUSER%\libFreeRTOS\Drivers\Tick" mkdir "%FEDLIBSUSER%\libFreeRTOS\Drivers\Tick"
98
  if not exist "%FEDLIBSUSER%\libFreeRTOS\Include"      mkdir "%FEDLIBSUSER%\libFreeRTOS\Include"
99
  if not exist "%FEDLIBSUSER%\libFreeRTOS\Modules"      mkdir "%FEDLIBSUSER%\libFreeRTOS\Modules"
100
  echo   Done
101
 
102
 
103
  echo.
104
  echo   Copying Files...
105
:COPY_MODULES
106
  echo     Modules...
107
  copy /V /Y "Port.c"                      "%FEDLIBSUSER%\libFreeRTOS\Modules\Port.c"         >nul
108
  copy /V /Y "..\..\..\Croutine.c"         "%FEDLIBSUSER%\libFreeRTOS\Modules\Croutine.c"     >nul
109
  copy /V /Y "..\..\..\List.c"             "%FEDLIBSUSER%\libFreeRTOS\Modules\List.c"         >nul
110
  copy /V /Y "..\..\..\Queue.c"            "%FEDLIBSUSER%\libFreeRTOS\Modules\Queue.c"        >nul
111
  copy /V /Y "..\..\..\Tasks.c"            "%FEDLIBSUSER%\libFreeRTOS\Modules\Tasks.c"        >nul
112
 
113
:COPY_DRIVERS
114
  echo     Drivers...
115
  copy /V /Y "Drivers\Tick\Tick.c"         "%FEDLIBSUSER%\libFreeRTOS\Drivers\Tick\Tick.c"    >nul
116
  copy /V /Y "Drivers\Tick\isrTick.c"      "%FEDLIBSUSER%\libFreeRTOS\Drivers\Tick\isrTick.c" >nul
117
 
118
:COPY_HEADERS
119
  echo     Headers...
120
  copy /V /Y "portmacro.h"                 "%FEDLIBSUSER%\libFreeRTOS\Include\Portmacro.h"    >nul
121
  copy /V /Y "..\..\..\include\Croutine.h" "%FEDLIBSUSER%\libFreeRTOS\Include\Croutine.h"     >nul
122
  copy /V /Y "..\..\..\include\List.h"     "%FEDLIBSUSER%\libFreeRTOS\Include\List.h"         >nul
123
  copy /V /Y "..\..\..\include\Portable.h" "%FEDLIBSUSER%\libFreeRTOS\Include\Portable.h"     >nul
124
  copy /V /Y "..\..\..\include\Projdefs.h" "%FEDLIBSUSER%\libFreeRTOS\Include\Projdefs.h"     >nul
125
  copy /V /Y "..\..\..\include\Queue.h"    "%FEDLIBSUSER%\libFreeRTOS\Include\Queue.h"        >nul
126
  copy /V /Y "..\..\..\include\Semphr.h"   "%FEDLIBSUSER%\libFreeRTOS\Include\Semphr.h"       >nul
127
  copy /V /Y "..\..\..\include\Task.h"     "%FEDLIBSUSER%\libFreeRTOS\Include\Task.h"         >nul
128
  copy /V /Y "addFreeRTOS.h" + "..\..\..\include\FreeRTOS.h" "%FEDLIBSUSER%\FreeRTOS.h"       >nul
129
 
130
 
131
  echo   Done
132
 
133
 
134
:SET_READONLY
135
  echo.
136
  echo   Setting files to ReadOnly
137
  attrib +R "%FEDLIBSUSER%\libFreeRTOS\Modules\Port.c"         >nul
138
  attrib +R "%FEDLIBSUSER%\libFreeRTOS\Modules\Croutine.c"     >nul
139
  attrib +R "%FEDLIBSUSER%\libFreeRTOS\Modules\List.c"         >nul
140
  attrib +R "%FEDLIBSUSER%\libFreeRTOS\Modules\Queue.c"        >nul
141
  attrib +R "%FEDLIBSUSER%\libFreeRTOS\Modules\Tasks.c"        >nul
142
  attrib +R "%FEDLIBSUSER%\libFreeRTOS\Drivers\Tick\Tick.c"    >nul
143
  attrib +R "%FEDLIBSUSER%\libFreeRTOS\Drivers\Tick\isrTick.c" >nul
144
  attrib +R "%FEDLIBSUSER%\libFreeRTOS\Include\Portmacro.h"    >nul
145
  attrib +R "%FEDLIBSUSER%\libFreeRTOS\Include\Croutine.h"     >nul
146
  attrib +R "%FEDLIBSUSER%\libFreeRTOS\Include\List.h"         >nul
147
  attrib +R "%FEDLIBSUSER%\libFreeRTOS\Include\Portable.h"     >nul
148
  attrib +R "%FEDLIBSUSER%\libFreeRTOS\Include\Projdefs.h"     >nul
149
  attrib +R "%FEDLIBSUSER%\libFreeRTOS\Include\Queue.h"        >nul
150
  attrib +R "%FEDLIBSUSER%\libFreeRTOS\Include\Semphr.h"       >nul
151
  attrib +R "%FEDLIBSUSER%\libFreeRTOS\Include\Task.h"         >nul
152
  attrib +R "%FEDLIBSUSER%\FreeRTOS.h"                         >nul
153
  echo   Done
154
 
155
 
156
:FINISHED
157
  echo.
158
  echo The installation of %PACKAGENAME% is completed.
159
  echo.
160
  echo Please review the installation instructions as additional libraries
161
  echo  and fedC/wizC configuration settings may be needed for FreeRTOS
162
  echo  to function correctly.
163
 
164
  goto ENDIT
165
 
166
 
167
:ENDIT
168
  echo.
169
  echo.
170
  echo Press 'enter' to close this window
171
  pause >nul

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.