]> git.sur5r.net Git - freertos/blob
cd78c1e89b6aeea9118a04fc50764a4c391059b7
[freertos] /
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 Files will also be copied into the BSP directory, which can be used to\r
11 REM generate FreeRTOS BSP packages directly from within the Xilinx SDK.\r
12 SET BSP_SOURCE=..\..\KernelAwareBSPRepository\bsp\freertos_v2_00_a\src\Source\r
13 \r
14 REM Standard paths\r
15 SET FREERTOS_SOURCE=..\..\..\..\Source\r
16 SET COMMON_SOURCE=..\..\..\Common\minimal\r
17 SET COMMON_INCLUDE=..\..\..\Common\include\r
18 SET LWIP_SOURCE=..\..\..\Common\ethernet\lwip-1.4.0\r
19 \r
20 REM Have the files already been copied?\r
21 IF EXIST FreeRTOS_Source Goto END\r
22 \r
23     REM Create the required directory structure.\r
24     MD FreeRTOS_Source\r
25     MD FreeRTOS_Source\include    \r
26     MD FreeRTOS_Source\portable\GCC\r
27     MD FreeRTOS_Source\portable\GCC\MicroBlazeV8\r
28     MD FreeRTOS_Source\portable\MemMang    \r
29     MD Demo_Source\r
30     MD Demo_Source\include\r
31     MD lwIP\api\r
32     MD lwIP\core\r
33     MD lwIP\core\ipv4\r
34     MD lwIP\include\r
35     MD lwIP\include\ipv4\r
36     MD lwIP\include\ipv4\lwip\r
37     MD lwIP\include\lwip\r
38     MD lwIP\include\netif\r
39     MD lwIP\netif\r
40     MD lwIP\netif\include\r
41     MD lwIP\netif\include\arch\r
42     \r
43     REM Copy the core kernel files into the SDK projects directory\r
44     copy %FREERTOS_SOURCE%\tasks.c FreeRTOS_Source\r
45     copy %FREERTOS_SOURCE%\queue.c FreeRTOS_Source\r
46     copy %FREERTOS_SOURCE%\list.c FreeRTOS_Source\r
47     copy %FREERTOS_SOURCE%\timers.c FreeRTOS_Source\r
48 \r
49     REM Copy the core kernel files into the BSP directory\r
50     copy %FREERTOS_SOURCE%\tasks.c %BSP_SOURCE%\r
51     copy %FREERTOS_SOURCE%\queue.c %BSP_SOURCE%\r
52     copy %FREERTOS_SOURCE%\list.c %BSP_SOURCE%\r
53     copy %FREERTOS_SOURCE%\timers.c %BSP_SOURCE%\r
54     \r
55     REM Copy the common header files into the SDK projects directory\r
56     copy %FREERTOS_SOURCE%\include\*.* FreeRTOS_Source\include\r
57     \r
58     REM Copy the common header files into the BSP directory\r
59     copy %FREERTOS_SOURCE%\include\*.* %BSP_SOURCE%\include\r
60 \r
61     REM Copy the portable layer files into the SDK projects directory\r
62     copy %FREERTOS_SOURCE%\portable\GCC\MicroBlazeV8\*.* FreeRTOS_Source\portable\GCC\MicroBlazeV8\r
63     \r
64     REM Copy the portable layer files into the BSP projects directory\r
65     copy %FREERTOS_SOURCE%\portable\GCC\MicroBlazeV8\*.* %BSP_SOURCE%\portable\GCC\MicroBlazeV8\r
66 \r
67     REM Copy the basic memory allocation files into the SDK projects directory\r
68     copy %FREERTOS_SOURCE%\portable\MemMang\heap_3.c FreeRTOS_Source\portable\MemMang\r
69 \r
70     REM Copy the basic memory allocation files into the BSP directory\r
71     copy %FREERTOS_SOURCE%\portable\MemMang\heap_2.c %BSP_SOURCE%\portable\MemMang\r
72 \r
73     REM Copy the files that define the common demo tasks.\r
74     copy %COMMON_SOURCE%\dynamic.c         Demo_Source\r
75     copy %COMMON_SOURCE%\BlockQ.c          Demo_Source\r
76     copy %COMMON_SOURCE%\death.c           Demo_Source\r
77     copy %COMMON_SOURCE%\blocktim.c        Demo_Source\r
78     copy %COMMON_SOURCE%\semtest.c         Demo_Source\r
79     copy %COMMON_SOURCE%\PollQ.c           Demo_Source\r
80     copy %COMMON_SOURCE%\GenQTest.c        Demo_Source\r
81     copy %COMMON_SOURCE%\QPeek.c           Demo_Source\r
82     copy %COMMON_SOURCE%\recmutex.c        Demo_Source\r
83     copy %COMMON_SOURCE%\sp_flop.c         Demo_Source\r
84     copy %COMMON_SOURCE%\flash.c           Demo_Source\r
85     copy %COMMON_SOURCE%\comtest_strings.c Demo_Source\r
86     copy %COMMON_SOURCE%\TimerDemo.c       Demo_Source\r
87     \r
88     REM Copy the common demo file headers.\r
89     copy %COMMON_INCLUDE%\dynamic.h         Demo_Source\include\r
90     copy %COMMON_INCLUDE%\partest.h         Demo_Source\include\r
91     copy %COMMON_INCLUDE%\BlockQ.h          Demo_Source\include\r
92     copy %COMMON_INCLUDE%\death.h           Demo_Source\include\r
93     copy %COMMON_INCLUDE%\blocktim.h        Demo_Source\include\r
94     copy %COMMON_INCLUDE%\semtest.h         Demo_Source\include\r
95     copy %COMMON_INCLUDE%\PollQ.h           Demo_Source\include\r
96     copy %COMMON_INCLUDE%\GenQTest.h        Demo_Source\include\r
97     copy %COMMON_INCLUDE%\QPeek.h           Demo_Source\include\r
98     copy %COMMON_INCLUDE%\recmutex.h        Demo_Source\include\r
99     copy %COMMON_INCLUDE%\flop.h            Demo_Source\include\r
100     copy %COMMON_INCLUDE%\flash.h           Demo_Source\include\r
101     copy %COMMON_INCLUDE%\comtest_strings.h Demo_Source\include\r
102     copy %COMMON_INCLUDE%\serial.h          Demo_Source\include\r
103     copy %COMMON_INCLUDE%\comtest.h         Demo_Source\include\r
104     copy %COMMON_INCLUDE%\TimerDemo.h       Demo_Source\include\r
105     \r
106     REM Copy the required lwIP files\r
107     copy %LWIP_SOURCE%\src\api\*.c                       lwIP\api\r
108     copy %LWIP_SOURCE%\src\core\*.c                      lwIP\core\r
109     copy %LWIP_SOURCE%\src\core\ipv4\*.c                 lwIP\core\ipv4\r
110     copy %LWIP_SOURCE%\src\include\ipv4\lwip\*.h         lwIP\include\ipv4\lwip\r
111     copy %LWIP_SOURCE%\src\include\lwip\*.h              lwIP\include\lwip\r
112     copy %LWIP_SOURCE%\src\include\netif\*.h             lwIP\include\netif\r
113     copy %LWIP_SOURCE%\src\netif\etharp.c                lwIP\netif\r
114     copy %LWIP_SOURCE%\ports\MicroBlaze-Ethernet-Lite    lwip\netif\r
115     copy %LWIP_SOURCE%\ports\MicroBlaze-Ethernet-Lite\include\arch lwip\netif\include\arch\r
116 \r
117 : END\r