]> git.sur5r.net Git - freertos/commitdiff
Update the MicroBlaze CreateProjectDirectoryStructure.bat file to also copy files...
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 24 Aug 2011 10:42:27 +0000 (10:42 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 24 Aug 2011 10:42:27 +0000 (10:42 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1547 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/CreateProjectDirectoryStructure.bat

index 6c5b434d26884cdcdd776f470229cc6a8f29e2a5..c84525d7275f48910ab32fa7d326dd01c051c4df 100644 (file)
@@ -7,6 +7,16 @@ REM FreeRTOS directory structure to under the Eclipse project directory.
 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 Files will also be copied into the BSP directory, which can be used to\r
+REM generate FreeRTOS BSP packages directly from within the Xilinx SDK.\r
+SET BSP_SOURCE=..\..\KernelAwareBSPRepository\bsp\freertos_v2_00_a\src\Source\r
+\r
+REM Standard paths\r
+SET FREERTOS_SOURCE=..\..\..\..\Source\r
+SET COMMON_SOURCE=..\..\..\Common\minimal\r
+SET COMMON_INCLUDE=..\..\..\Common\include\r
+SET LWIP_SOURCE=..\..\..\Common\ethernet\lwip-1.4.0\r
+\r
 REM Have the files already been copied?\r
 IF EXIST FreeRTOS_Source Goto END\r
 \r
@@ -30,63 +40,78 @@ IF EXIST FreeRTOS_Source Goto END
     MD lwIP\netif\include\r
     MD lwIP\netif\include\arch\r
     \r
-    REM Copy the core kernel files.\r
-    copy ..\..\..\..\Source\tasks.c FreeRTOS_Source\r
-    copy ..\..\..\..\Source\queue.c FreeRTOS_Source\r
-    copy ..\..\..\..\Source\list.c FreeRTOS_Source\r
-    copy ..\..\..\..\Source\timers.c FreeRTOS_Source\r
+    REM Copy the core kernel files into the SDK projects directory\r
+    copy %FREERTOS_SOURCE%\tasks.c FreeRTOS_Source\r
+    copy %FREERTOS_SOURCE%\queue.c FreeRTOS_Source\r
+    copy %FREERTOS_SOURCE%\list.c FreeRTOS_Source\r
+    copy %FREERTOS_SOURCE%\timers.c FreeRTOS_Source\r
+\r
+    REM Copy the core kernel files into the BSP directory\r
+    copy %FREERTOS_SOURCE%\tasks.c %BSP_SOURCE%\r
+    copy %FREERTOS_SOURCE%\queue.c %BSP_SOURCE%\r
+    copy %FREERTOS_SOURCE%\list.c %BSP_SOURCE%\r
+    copy %FREERTOS_SOURCE%\timers.c %BSP_SOURCE%\r
     \r
-    REM Copy the common header files\r
-    copy ..\..\..\..\Source\include\*.* FreeRTOS_Source\include\r
+    REM Copy the common header files into the SDK projects directory\r
+    copy %FREERTOS_SOURCE%\include\*.* FreeRTOS_Source\include\r
     \r
-    REM Copy the portable layer files\r
-    copy ..\..\..\..\Source\portable\GCC\MicroBlazeV8\*.* FreeRTOS_Source\portable\GCC\MicroBlazeV8\r
+    REM Copy the common header files into the BSP directory\r
+    copy %FREERTOS_SOURCE%\include\*.* %BSP_SOURCE%\include\r
+\r
+    REM Copy the portable layer files into the SDK projects directory\r
+    copy %FREERTOS_SOURCE%\portable\GCC\MicroBlazeV8\*.* FreeRTOS_Source\portable\GCC\MicroBlazeV8\r
     \r
-    REM Copy the basic memory allocation files\r
-    copy ..\..\..\..\Source\portable\MemMang\heap_2.c FreeRTOS_Source\portable\MemMang\r
+    REM Copy the portable layer files into the BSP projects directory\r
+    copy %FREERTOS_SOURCE%\portable\GCC\MicroBlazeV8\*.* %BSP_SOURCE%\portable\GCC\MicroBlazeV8\r
+\r
+    REM Copy the basic memory allocation files into the SDK projects directory\r
+    copy %FREERTOS_SOURCE%\portable\MemMang\heap_2.c FreeRTOS_Source\portable\MemMang\r
+\r
+    REM Copy the basic memory allocation files into the BSP directory\r
+    copy %FREERTOS_SOURCE%\portable\MemMang\heap_2.c %BSP_SOURCE%\portable\MemMang\r
 \r
     REM Copy the files that define the common demo tasks.\r
-    copy ..\..\..\Common\minimal\dynamic.c         Demo_Source\r
-    copy ..\..\..\Common\minimal\BlockQ.c          Demo_Source\r
-    copy ..\..\..\Common\minimal\death.c           Demo_Source\r
-    copy ..\..\..\Common\minimal\blocktim.c        Demo_Source\r
-    copy ..\..\..\Common\minimal\semtest.c         Demo_Source\r
-    copy ..\..\..\Common\minimal\PollQ.c           Demo_Source\r
-    copy ..\..\..\Common\minimal\GenQTest.c        Demo_Source\r
-    copy ..\..\..\Common\minimal\QPeek.c           Demo_Source\r
-    copy ..\..\..\Common\minimal\recmutex.c        Demo_Source\r
-    copy ..\..\..\Common\minimal\sp_flop.c         Demo_Source\r
-    copy ..\..\..\Common\minimal\flash.c           Demo_Source\r
-    copy ..\..\..\Common\minimal\comtest_strings.c Demo_Source\r
-    copy ..\..\..\Common\minimal\TimerDemo.c       Demo_Source\r
+    copy %COMMON_SOURCE%\dynamic.c         Demo_Source\r
+    copy %COMMON_SOURCE%\BlockQ.c          Demo_Source\r
+    copy %COMMON_SOURCE%\death.c           Demo_Source\r
+    copy %COMMON_SOURCE%\blocktim.c        Demo_Source\r
+    copy %COMMON_SOURCE%\semtest.c         Demo_Source\r
+    copy %COMMON_SOURCE%\PollQ.c           Demo_Source\r
+    copy %COMMON_SOURCE%\GenQTest.c        Demo_Source\r
+    copy %COMMON_SOURCE%\QPeek.c           Demo_Source\r
+    copy %COMMON_SOURCE%\recmutex.c        Demo_Source\r
+    copy %COMMON_SOURCE%\sp_flop.c         Demo_Source\r
+    copy %COMMON_SOURCE%\flash.c           Demo_Source\r
+    copy %COMMON_SOURCE%\comtest_strings.c Demo_Source\r
+    copy %COMMON_SOURCE%\TimerDemo.c       Demo_Source\r
     \r
     REM Copy the common demo file headers.\r
-    copy ..\..\..\Common\include\dynamic.h         Demo_Source\include\r
-    copy ..\..\..\Common\include\partest.h         Demo_Source\include\r
-    copy ..\..\..\Common\include\BlockQ.h          Demo_Source\include\r
-    copy ..\..\..\Common\include\death.h           Demo_Source\include\r
-    copy ..\..\..\Common\include\blocktim.h        Demo_Source\include\r
-    copy ..\..\..\Common\include\semtest.h         Demo_Source\include\r
-    copy ..\..\..\Common\include\PollQ.h           Demo_Source\include\r
-    copy ..\..\..\Common\include\GenQTest.h        Demo_Source\include\r
-    copy ..\..\..\Common\include\QPeek.h           Demo_Source\include\r
-    copy ..\..\..\Common\include\recmutex.h        Demo_Source\include\r
-    copy ..\..\..\Common\include\flop.h            Demo_Source\include\r
-    copy ..\..\..\Common\include\flash.h           Demo_Source\include\r
-    copy ..\..\..\Common\include\comtest_strings.h Demo_Source\include\r
-    copy ..\..\..\Common\include\serial.h          Demo_Source\include\r
-    copy ..\..\..\Common\include\comtest.h         Demo_Source\include\r
-    copy ..\..\..\Common\include\TimerDemo.h       Demo_Source\include\r
+    copy %COMMON_INCLUDE%\dynamic.h         Demo_Source\include\r
+    copy %COMMON_INCLUDE%\partest.h         Demo_Source\include\r
+    copy %COMMON_INCLUDE%\BlockQ.h          Demo_Source\include\r
+    copy %COMMON_INCLUDE%\death.h           Demo_Source\include\r
+    copy %COMMON_INCLUDE%\blocktim.h        Demo_Source\include\r
+    copy %COMMON_INCLUDE%\semtest.h         Demo_Source\include\r
+    copy %COMMON_INCLUDE%\PollQ.h           Demo_Source\include\r
+    copy %COMMON_INCLUDE%\GenQTest.h        Demo_Source\include\r
+    copy %COMMON_INCLUDE%\QPeek.h           Demo_Source\include\r
+    copy %COMMON_INCLUDE%\recmutex.h        Demo_Source\include\r
+    copy %COMMON_INCLUDE%\flop.h            Demo_Source\include\r
+    copy %COMMON_INCLUDE%\flash.h           Demo_Source\include\r
+    copy %COMMON_INCLUDE%\comtest_strings.h Demo_Source\include\r
+    copy %COMMON_INCLUDE%\serial.h          Demo_Source\include\r
+    copy %COMMON_INCLUDE%\comtest.h         Demo_Source\include\r
+    copy %COMMON_INCLUDE%\TimerDemo.h       Demo_Source\include\r
     \r
     REM Copy the required lwIP files\r
-    copy ..\..\..\Common\ethernet\lwip-1.4.0\src\api\*.c                       lwIP\api\r
-    copy ..\..\..\Common\ethernet\lwip-1.4.0\src\core\*.c                      lwIP\core\r
-    copy ..\..\..\Common\ethernet\lwip-1.4.0\src\core\ipv4\*.c                 lwIP\core\ipv4\r
-    copy ..\..\..\Common\ethernet\lwip-1.4.0\src\include\ipv4\lwip\*.h         lwIP\include\ipv4\lwip\r
-    copy ..\..\..\Common\ethernet\lwip-1.4.0\src\include\lwip\*.h              lwIP\include\lwip\r
-    copy ..\..\..\Common\ethernet\lwip-1.4.0\src\include\netif\*.h             lwIP\include\netif\r
-    copy ..\..\..\Common\ethernet\lwip-1.4.0\src\netif\etharp.c                lwIP\netif\r
-    copy ..\..\..\Common\ethernet\lwip-1.4.0\ports\MicroBlaze-Ethernet-Lite    lwip\netif\r
-    copy ..\..\..\Common\ethernet\lwip-1.4.0\ports\MicroBlaze-Ethernet-Lite\include\arch lwip\netif\include\arch\r
+    copy %LWIP_SOURCE%\src\api\*.c                       lwIP\api\r
+    copy %LWIP_SOURCE%\src\core\*.c                      lwIP\core\r
+    copy %LWIP_SOURCE%\src\core\ipv4\*.c                 lwIP\core\ipv4\r
+    copy %LWIP_SOURCE%\src\include\ipv4\lwip\*.h         lwIP\include\ipv4\lwip\r
+    copy %LWIP_SOURCE%\src\include\lwip\*.h              lwIP\include\lwip\r
+    copy %LWIP_SOURCE%\src\include\netif\*.h             lwIP\include\netif\r
+    copy %LWIP_SOURCE%\src\netif\etharp.c                lwIP\netif\r
+    copy %LWIP_SOURCE%\ports\MicroBlaze-Ethernet-Lite    lwip\netif\r
+    copy %LWIP_SOURCE%\ports\MicroBlaze-Ethernet-Lite\include\arch lwip\netif\include\arch\r
 \r
 : END\r