From 90da05b7d30743e0faea18eb68553c634cf00aef Mon Sep 17 00:00:00 2001 From: richardbarry Date: Thu, 6 Aug 2009 20:08:34 +0000 Subject: [PATCH] Add batch file to create the NiosII project directory structure. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@830 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- .../CreateProjectDirectoryStructure.bat | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Demo/NiosII_CycloneIII_DBC3C40_GCC/CreateProjectDirectoryStructure.bat diff --git a/Demo/NiosII_CycloneIII_DBC3C40_GCC/CreateProjectDirectoryStructure.bat b/Demo/NiosII_CycloneIII_DBC3C40_GCC/CreateProjectDirectoryStructure.bat new file mode 100644 index 000000000..b0bdb9f72 --- /dev/null +++ b/Demo/NiosII_CycloneIII_DBC3C40_GCC/CreateProjectDirectoryStructure.bat @@ -0,0 +1,54 @@ +REM This file should be executed from the command line prior to the first +REM build. It will be necessary to refresh the Eclipse project once the +REM .bat file has been executed (normally just press F5 to refresh). + +REM Copies all the required files from their location within the standard +REM FreeRTOS directory structure to under the Eclipse project directory. +REM This permits the Eclipse project to be used in 'managed' mode and without +REM having to setup any linked resources. + +REM Have the files already been copied? +IF EXIST RTOSDemo\FreeRTOS Goto END + + REM Create the required directory structure. + MD RTOSDemo\FreeRTOS + MD RTOSDemo\FreeRTOS\include + MD RTOSDemo\FreeRTOS\portable\GCC\NiosII + MD RTOSDemo\FreeRTOS\portable\MemMang + MD "RTOSDemo\Common_Demo_Tasks" + MD "RTOSDemo\Common_Demo_Tasks\include" + + REM Copy the core kernel files. + copy ..\..\Source\tasks.c RTOSDemo\FreeRTOS + copy ..\..\Source\queue.c RTOSDemo\FreeRTOS + copy ..\..\Source\list.c RTOSDemo\FreeRTOS + + REM Copy the common header files + + copy ..\..\Source\include\*.* RTOSDemo\FreeRTOS\include + + REM Copy the portable layer files + copy ..\..\Source\portable\GCC\NiosII\*.* RTOSDemo\FreeRTOS\portable\GCC\NiosII + + REM Copy the basic memory allocation files + copy ..\..\Source\portable\MemMang\*.* RTOSDemo\FreeRTOS\portable\MemMang + + REM Copy the files that define the Common_Demo_Tasks. + copy ..\Common\minimal\BlockQ.c "RTOSDemo\Common_Demo_Tasks" + copy ..\Common\minimal\blocktim.c "RTOSDemo\Common_Demo_Tasks" + copy ..\Common\minimal\comtest.c "RTOSDemo\Common_Demo_Tasks" + copy ..\Common\minimal\countsem.c "RTOSDemo\Common_Demo_Tasks" + copy ..\Common\minimal\death.c "RTOSDemo\Common_Demo_Tasks" + copy ..\Common\minimal\dynamic.c "RTOSDemo\Common_Demo_Tasks" + copy ..\Common\minimal\flash.c "RTOSDemo\Common_Demo_Tasks" + copy ..\Common\minimal\GenQTest.c "RTOSDemo\Common_Demo_Tasks" + copy ..\Common\minimal\integer.c "RTOSDemo\Common_Demo_Tasks" + copy ..\Common\minimal\PollQ.c "RTOSDemo\Common_Demo_Tasks" + copy ..\Common\minimal\QPeek.c "RTOSDemo\Common_Demo_Tasks" + copy ..\Common\minimal\recmutex.c "RTOSDemo\Common_Demo_Tasks" + copy ..\Common\minimal\semtest.c "RTOSDemo\Common_Demo_Tasks" + + REM Copy the common demo file headers. + copy ..\Common\include\*.* "RTOSDemo\Common_Demo_Tasks\include" + +: END -- 2.39.5