]> begriffs open source - cmsis-freertos/blob - Demo/TriCore_TC1782_TriBoard_GCC/RTOSDemo/CreateProjectDirectoryStructure.bat
Initial commit
[cmsis-freertos] / Demo / TriCore_TC1782_TriBoard_GCC / RTOSDemo / CreateProjectDirectoryStructure.bat
1 REM This file should be executed from the command line prior to the first
2 REM build.  It will be necessary to refresh the Eclipse project once the
3 REM .bat file has been executed (normally just press F5 to refresh).
4
5 REM Copies all the required files from their location within the standard
6 REM FreeRTOS directory structure to under the Eclipse project directory.
7 REM This permits the Eclipse project to be used in 'managed' mode and without
8 REM having to setup any linked resources.
9
10 REM Standard paths
11 SET FREERTOS_SOURCE=..\..\..\Source
12 SET COMMON_SOURCE=..\..\Common\minimal
13 SET COMMON_INCLUDE=..\..\Common\include
14
15 REM Have the files already been copied?
16 IF EXIST FreeRTOS_Source Goto END
17
18     REM Create the required directory structure.
19     MD FreeRTOS_Source
20     MD FreeRTOS_Source\include    
21     MD FreeRTOS_Source\portable\GCC
22     MD FreeRTOS_Source\portable\GCC\TriCore_1782
23     MD FreeRTOS_Source\portable\MemMang    
24     MD Common_Demo_Source
25     MD Common_Demo_Source\include
26     
27     REM Copy the core kernel files into the SDK projects directory
28     copy %FREERTOS_SOURCE%\tasks.c FreeRTOS_Source
29     copy %FREERTOS_SOURCE%\queue.c FreeRTOS_Source
30     copy %FREERTOS_SOURCE%\list.c FreeRTOS_Source
31     copy %FREERTOS_SOURCE%\timers.c FreeRTOS_Source
32
33     REM Copy the common header files into the SDK projects directory
34     copy %FREERTOS_SOURCE%\include\*.* FreeRTOS_Source\include
35     
36     REM Copy the portable layer files into the projects directory
37     copy %FREERTOS_SOURCE%\portable\GCC\TriCore_1782\*.* FreeRTOS_Source\portable\GCC\TriCore_1782
38     
39     REM Copy the basic memory allocation files into the SDK projects directory
40     copy %FREERTOS_SOURCE%\portable\MemMang\heap_2.c FreeRTOS_Source\portable\MemMang
41
42     REM Copy the files that define the common demo tasks.
43     copy %COMMON_SOURCE%\dynamic.c         Common_Demo_Source
44     copy %COMMON_SOURCE%\BlockQ.c          Common_Demo_Source
45     copy %COMMON_SOURCE%\death.c           Common_Demo_Source
46     copy %COMMON_SOURCE%\blocktim.c        Common_Demo_Source
47     copy %COMMON_SOURCE%\semtest.c         Common_Demo_Source
48     copy %COMMON_SOURCE%\PollQ.c           Common_Demo_Source
49     copy %COMMON_SOURCE%\GenQTest.c        Common_Demo_Source
50     copy %COMMON_SOURCE%\QPeek.c           Common_Demo_Source
51     copy %COMMON_SOURCE%\recmutex.c        Common_Demo_Source
52     copy %COMMON_SOURCE%\flop.c            Common_Demo_Source
53     copy %COMMON_SOURCE%\flash.c           Common_Demo_Source
54     copy %COMMON_SOURCE%\comtest.c         Common_Demo_Source
55     copy %COMMON_SOURCE%\TimerDemo.c       Common_Demo_Source
56     copy %COMMON_SOURCE%\countsem.c        Common_Demo_Source
57     copy %COMMON_SOURCE%\integer.c         Common_Demo_Source
58     
59     REM Copy the common demo file headers.
60     copy %COMMON_INCLUDE%\*.h              Common_Demo_Source\include
61     
62 : END