]> git.sur5r.net Git - freertos/commitdiff
Add batch file that creates the directory structure required by the XMC4500 GCC port.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 11 Mar 2012 14:26:01 +0000 (14:26 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 11 Mar 2012 14:26:01 +0000 (14:26 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1687 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/CORTEX_M4F_Infineon_XMC4500_GCC_Atollic/CreateProjectDirectoryStructure.bat [new file with mode: 0644]

diff --git a/Demo/CORTEX_M4F_Infineon_XMC4500_GCC_Atollic/CreateProjectDirectoryStructure.bat b/Demo/CORTEX_M4F_Infineon_XMC4500_GCC_Atollic/CreateProjectDirectoryStructure.bat
new file mode 100644 (file)
index 0000000..ed8c106
--- /dev/null
@@ -0,0 +1,58 @@
+REM This file should be executed from the command line prior to the first\r
+REM build.  It will be necessary to refresh the Eclipse project once the\r
+REM .bat file has been executed (normally just press F5 to refresh).\r
+\r
+REM Copies all the required files from their location within the standard\r
+REM FreeRTOS directory structure to under the Eclipse project directory.\r
+REM This permits the Eclipse project to be used in 'managed' mode and without\r
+REM having to setup any linked resources.\r
+\r
+REM Standard paths\r
+SET FREERTOS_SOURCE=..\..\Source\r
+SET COMMON_SOURCE=..\Common\minimal\r
+SET COMMON_INCLUDE=..\Common\include\r
+\r
+REM Have the files already been copied?\r
+IF EXIST src\FreeRTOS_Source Goto END\r
+\r
+    REM Create the required directory structure.\r
+    MD src\FreeRTOS_Source\r
+    MD src\FreeRTOS_Source\include    \r
+    MD src\FreeRTOS_Source\portable\GCC\r
+    MD src\FreeRTOS_Source\portable\GCC\ARM_CM4F\r
+    MD src\FreeRTOS_Source\portable\MemMang    \r
+    MD src\Common_Demo_Source\r
+    MD src\Common_Demo_Source\include\r
+    \r
+    REM Copy the core kernel files into the SDK projects directory\r
+    copy %FREERTOS_SOURCE%\tasks.c src\FreeRTOS_Source\r
+    copy %FREERTOS_SOURCE%\queue.c src\FreeRTOS_Source\r
+    copy %FREERTOS_SOURCE%\list.c src\FreeRTOS_Source\r
+    copy %FREERTOS_SOURCE%\timers.c src\FreeRTOS_Source\r
+\r
+    REM Copy the common header files into the SDK projects directory\r
+    copy %FREERTOS_SOURCE%\include\*.* src\FreeRTOS_Source\include\r
+    \r
+    REM Copy the portable layer files into the projects directory\r
+    copy %FREERTOS_SOURCE%\portable\GCC\ARM_CM4F\*.* src\FreeRTOS_Source\portable\GCC\ARM_CM4F\r
+    \r
+    REM Copy the basic memory allocation files into the SDK projects directory\r
+    copy %FREERTOS_SOURCE%\portable\MemMang\heap_2.c src\FreeRTOS_Source\portable\MemMang\r
+\r
+    REM Copy the files that define the common demo tasks.\r
+    copy %COMMON_SOURCE%\dynamic.c         src\Common_Demo_Source\r
+    copy %COMMON_SOURCE%\BlockQ.c          src\Common_Demo_Source\r
+    copy %COMMON_SOURCE%\death.c           src\Common_Demo_Source\r
+    copy %COMMON_SOURCE%\blocktim.c        src\Common_Demo_Source\r
+    copy %COMMON_SOURCE%\semtest.c         src\Common_Demo_Source\r
+    copy %COMMON_SOURCE%\PollQ.c           src\Common_Demo_Source\r
+    copy %COMMON_SOURCE%\GenQTest.c        src\Common_Demo_Source\r
+    copy %COMMON_SOURCE%\recmutex.c        src\Common_Demo_Source\r
+    copy %COMMON_SOURCE%\sp_flop.c         src\Common_Demo_Source\r
+    copy %COMMON_SOURCE%\countsem.c        src\Common_Demo_Source\r
+    copy %COMMON_SOURCE%\integer.c         src\Common_Demo_Source\r
+    \r
+    REM Copy the common demo file headers.\r
+    copy %COMMON_INCLUDE%\*.h              src\Common_Demo_Source\include\r
+    \r
+: END\r