]> git.sur5r.net Git - freertos/blob - FreeRTOS-Plus/Demo/FreeRTOS_Plus_UDP_and_CLI_LPC1830_GCC/CreateProjectDirectoryStructure.bat
ac6c2700d36065c0af08841d1ba3083e57f4dc81
[freertos] / FreeRTOS-Plus / Demo / FreeRTOS_Plus_UDP_and_CLI_LPC1830_GCC / CreateProjectDirectoryStructure.bat
1 REM This file should be executed from the command line prior to the first\r
2 REM build.  It will be necessary to refresh the Eclipse project once the\r
3 REM .bat file has been executed (normally just press F5 to refresh).\r
4 \r
5 REM Copies all the required files from their location within the standard\r
6 REM FreeRTOS directory structure to under the Eclipse project directory.\r
7 REM This permits the Eclipse project to be used in 'managed' mode and without\r
8 REM having to setup any linked resources.\r
9 \r
10 REM Standard paths\r
11 SET FREERTOS_SOURCE=..\..\..\FreeRTOS\Source\r
12 SET FREERTOS_UDP_SOURCE=..\..\Source\FreeRTOS-Plus-UDP\r
13 SET FREERTOS_CLI_SOURCE=..\..\Source\FreeRTOS-Plus-CLI\r
14 \r
15 REM Have the files already been copied?\r
16 IF EXIST FreeRTOS_Source Goto END\r
17 \r
18     REM Create the required directory structure.\r
19     MD FreeRTOS_Source\r
20     MD FreeRTOS_Source\include\r
21     MD FreeRTOS_Source\portable\\r
22         MD FreeRTOS_Source\portable\GCC\r
23     MD FreeRTOS_Source\portable\GCC\ARM_CM3\r
24     MD FreeRTOS_Source\portable\MemMang\r
25         MD FreeRTOS_Plus_UDP\r
26         MD FreeRTOS_Plus_UDP\include\r
27         MD FreeRTOS_Plus_UDP\portable\r
28         MD FreeRTOS_Plus_UDP\portable\Compiler\r
29         MD FreeRTOS_Plus_UDP\portable\Compiler\GCC\r
30         MD FreeRTOS_Plus_UDP\portable\BufferManagement\r
31         MD FreeRTOS_Plus_UDP\portable\NetworkInterface\r
32         MD FreeRTOS_Plus_UDP\portable\NetworkInterface\LPC18xx\r
33         MD FreeRTOS_Plus_CLI\r
34         MD Examples\Ethernet\r
35 \r
36     REM Copy the core kernel files into the SDK projects directory\r
37     copy %FREERTOS_SOURCE%\tasks.c FreeRTOS_Source\r
38     copy %FREERTOS_SOURCE%\queue.c FreeRTOS_Source\r
39     copy %FREERTOS_SOURCE%\list.c FreeRTOS_Source\r
40     copy %FREERTOS_SOURCE%\timers.c FreeRTOS_Source\r
41 \r
42     REM Copy the common header files into the SDK projects directory\r
43     copy %FREERTOS_SOURCE%\include\*.* FreeRTOS_Source\include\r
44 \r
45     REM Copy the portable layer files into the projects directory\r
46     copy %FREERTOS_SOURCE%\portable\GCC\ARM_CM3\*.* FreeRTOS_Source\portable\GCC\ARM_CM3\r
47 \r
48     REM Copy the memory allocation file into the project's directory\r
49     copy %FREERTOS_SOURCE%\portable\MemMang\heap_4.c FreeRTOS_Source\portable\MemMang\r
50 \r
51         REM Copy the FreeRTOS+UDP core files\r
52         copy %FREERTOS_UDP_SOURCE%\*.c FreeRTOS_Plus_UDP\r
53         copy %FREERTOS_UDP_SOURCE%\*.h FreeRTOS_Plus_UDP\r
54         copy %FREERTOS_UDP_SOURCE%\readme.txt FreeRTOS_Plus_UDP\r
55         copy %FREERTOS_UDP_SOURCE%\include\*.* FreeRTOS_Plus_UDP\include\r
56 \r
57         REM Copy the FreeRTOS+UDP portable layer files\r
58         copy %FREERTOS_UDP_SOURCE%\portable\NetworkInterface\LPC18xx\*.* FreeRTOS_Plus_UDP\portable\NetworkInterface\LPC18xx\r
59         copy %FREERTOS_UDP_SOURCE%\portable\NetworkInterface\*.* FreeRTOS_Plus_UDP\portable\NetworkInterface\r
60         copy %FREERTOS_UDP_SOURCE%\portable\BufferManagement\BufferAllocation_2.c FreeRTOS_Plus_UDP\portable\BufferManagement\r
61         copy %FREERTOS_UDP_SOURCE%\portable\Compiler\GCC\*.* FreeRTOS_Plus_UDP\portable\Compiler\GCC\r
62 \r
63         REM Copy the FreeRTOS+CLI files\r
64         copy %FREERTOS_CLI_SOURCE%\*.* FreeRTOS_Plus_CLI\r
65 \r
66         REM Copy the echo client example implementation\r
67         copy ..\Common\FreeRTOS_Plus_UDP_Demos\EchoClients\TwoEchoClients.c Examples\Ethernet\r
68         copy ..\Common\FreeRTOS_Plus_UDP_Demos\EchoClients\TwoEchoClients.h Examples\include\r
69 \r
70         REM Copy the example IP trace macro implementation\r
71         copy ..\Common\FreeRTOS_Plus_UDP_Demos\TraceMacros\Example1\DemoIPTrace.c Examples\Ethernet\r
72         copy ..\Common\FreeRTOS_Plus_UDP_Demos\TraceMacros\Example1\DemoIPTrace.h Examples\include\r
73 \r
74         REM Copy the CLI commands implementation into the project directory.\r
75         copy ..\Common\FreeRTOS_Plus_UDP_Demos\CLICommands\CLI-commands.c .\r
76 \r
77 : END\r