]> git.sur5r.net Git - freertos/commitdiff
Add batch file to create the NiosII project directory structure.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Thu, 6 Aug 2009 20:08:34 +0000 (20:08 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Thu, 6 Aug 2009 20:08:34 +0000 (20:08 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@830 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

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

diff --git a/Demo/NiosII_CycloneIII_DBC3C40_GCC/CreateProjectDirectoryStructure.bat b/Demo/NiosII_CycloneIII_DBC3C40_GCC/CreateProjectDirectoryStructure.bat
new file mode 100644 (file)
index 0000000..b0bdb9f
--- /dev/null
@@ -0,0 +1,54 @@
+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 Have the files already been copied?\r
+IF EXIST RTOSDemo\FreeRTOS Goto END\r
+\r
+       REM Create the required directory structure.\r
+       MD RTOSDemo\FreeRTOS\r
+       MD RTOSDemo\FreeRTOS\include    \r
+       MD RTOSDemo\FreeRTOS\portable\GCC\NiosII\r
+       MD RTOSDemo\FreeRTOS\portable\MemMang   \r
+       MD "RTOSDemo\Common_Demo_Tasks"\r
+       MD "RTOSDemo\Common_Demo_Tasks\include"\r
+       \r
+       REM Copy the core kernel files.\r
+       copy ..\..\Source\tasks.c RTOSDemo\FreeRTOS\r
+       copy ..\..\Source\queue.c RTOSDemo\FreeRTOS\r
+       copy ..\..\Source\list.c RTOSDemo\FreeRTOS\r
+       \r
+       REM Copy the common header files\r
+\r
+       copy ..\..\Source\include\*.* RTOSDemo\FreeRTOS\include\r
+       \r
+       REM Copy the portable layer files\r
+       copy ..\..\Source\portable\GCC\NiosII\*.* RTOSDemo\FreeRTOS\portable\GCC\NiosII\r
+       \r
+       REM Copy the basic memory allocation files\r
+       copy ..\..\Source\portable\MemMang\*.* RTOSDemo\FreeRTOS\portable\MemMang\r
+\r
+       REM Copy the files that define the Common_Demo_Tasks.\r
+       copy ..\Common\minimal\BlockQ.c "RTOSDemo\Common_Demo_Tasks"\r
+       copy ..\Common\minimal\blocktim.c "RTOSDemo\Common_Demo_Tasks"\r
+       copy ..\Common\minimal\comtest.c "RTOSDemo\Common_Demo_Tasks"   \r
+       copy ..\Common\minimal\countsem.c "RTOSDemo\Common_Demo_Tasks"\r
+       copy ..\Common\minimal\death.c "RTOSDemo\Common_Demo_Tasks"     \r
+       copy ..\Common\minimal\dynamic.c "RTOSDemo\Common_Demo_Tasks"   \r
+       copy ..\Common\minimal\flash.c "RTOSDemo\Common_Demo_Tasks"\r
+       copy ..\Common\minimal\GenQTest.c "RTOSDemo\Common_Demo_Tasks"\r
+       copy ..\Common\minimal\integer.c "RTOSDemo\Common_Demo_Tasks"\r
+       copy ..\Common\minimal\PollQ.c "RTOSDemo\Common_Demo_Tasks"\r
+       copy ..\Common\minimal\QPeek.c "RTOSDemo\Common_Demo_Tasks"\r
+       copy ..\Common\minimal\recmutex.c "RTOSDemo\Common_Demo_Tasks"\r
+       copy ..\Common\minimal\semtest.c "RTOSDemo\Common_Demo_Tasks"\r
+       \r
+       REM Copy the common demo file headers.\r
+       copy ..\Common\include\*.* "RTOSDemo\Common_Demo_Tasks\include"\r
+       \r
+: END\r