|
101 | 101 | <!-- - - - - - - - - -->
|
102 | 102 | <!-- Basic Assembly -->
|
103 | 103 | <!-- - - - - - - - - -->
|
| 104 | + <target name="copy-hardware"> |
| 105 | + <!-- copy hardware folder --> |
| 106 | + <copy todir="${target.path}/hardware"> |
| 107 | + <fileset dir="../hardware"> |
| 108 | + <exclude name="arduino/sam/system/CMSIS/Device/ATMEL/*/svd/"/> |
| 109 | + <exclude name="arduino/sam/system/CMSIS/Device/ATMEL/*/html/"/> |
| 110 | + <exclude name="arduino/sam/system/CMSIS/CMSIS/Lib/ARM/*M0*"/> |
| 111 | + <exclude name="arduino/sam/system/CMSIS/CMSIS/Lib/ARM/*M4*"/> |
| 112 | + <exclude name="arduino/sam/system/CMSIS/CMSIS/Lib/GCC/*M0*"/> |
| 113 | + <exclude name="arduino/sam/system/CMSIS/CMSIS/Lib/GCC/*M4*"/> |
| 114 | + </fileset> |
| 115 | + </copy> |
| 116 | + </target> |
104 | 117 |
|
105 |
| - <target name="assemble"> |
| 118 | + <target name="assemble" depends="copy-hardware"> |
106 | 119 | <fail unless="target.path"
|
107 | 120 | message="Do not call assemble from the command line." />
|
108 | 121 |
|
|
116 | 129 | <fileset dir="../libraries" />
|
117 | 130 | </copy>
|
118 | 131 |
|
119 |
| - <!-- copy hardware folder --> |
120 |
| - <copy todir="${target.path}/hardware"> |
121 |
| - <fileset dir="../hardware"> |
122 |
| - <exclude name="arduino/sam/system/CMSIS/Device/ATMEL/*/svd/"/> |
123 |
| - <exclude name="arduino/sam/system/CMSIS/Device/ATMEL/*/html/"/> |
124 |
| - <exclude name="arduino/sam/system/CMSIS/CMSIS/Lib/ARM/*M0*"/> |
125 |
| - <exclude name="arduino/sam/system/CMSIS/CMSIS/Lib/ARM/*M4*"/> |
126 |
| - <exclude name="arduino/sam/system/CMSIS/CMSIS/Lib/GCC/*M0*"/> |
127 |
| - <exclude name="arduino/sam/system/CMSIS/CMSIS/Lib/GCC/*M4*"/> |
128 |
| - </fileset> |
129 |
| - </copy> |
130 |
| - |
131 | 132 | <!-- copy shared examples folder -->
|
132 | 133 | <copy todir="${target.path}/examples">
|
133 | 134 | <fileset dir="shared/examples" />
|
|
0 commit comments