|
10 | 10 | echo Setting up directories to build arduino...
|
11 | 11 | BUILD_PREPROC=true
|
12 | 12 | cp -r ../shared work
|
13 |
| - rm -rf work/CVS |
14 | 13 | rm -f work/.DS_Store
|
15 | 14 | #cp ../../lib/*.dll work
|
16 | 15 | cp dist/*.dll work
|
|
58 | 57 | #chmod +x work/jikes.exe
|
59 | 58 |
|
60 | 59 | cp dist/ICE_JNIRegistry.dll work/
|
| 60 | + |
| 61 | + cp -r ../../hardware work/ |
61 | 62 | mkdir work/bootloader
|
62 |
| - cp dist/bootloader/*.* work/bootloader |
63 |
| - mkdir work/bootloader168 |
64 |
| - cp ../../bootloader168/* work/bootloader168 |
| 63 | + cp dist/bootloader/*.* work/hardware/bootloaders/atmega8 |
65 | 64 | mkdir work/drivers
|
66 | 65 | cp -r dist/drivers/* work/drivers/
|
67 |
| - mkdir work/tools |
| 66 | + |
68 | 67 | cp dist/avr_tools.zip .
|
69 | 68 | echo Extracting avr tools ...
|
70 |
| - unzip -q -d work avr_tools.zip |
| 69 | + unzip -q -d work/hardware avr_tools.zip |
71 | 70 | rm -f avr_tools.zip
|
72 | 71 |
|
73 |
| - # core/ has been replaced by targets/ and we no longer use makefiles |
74 |
| - #cp dist/lib/makefile.win work/Makefile |
75 |
| - #mkdir work/core |
76 |
| - #cp ../../../core/*.* work/core |
77 |
| - #cp dist/core/makefile.win work/core/Makefile |
78 |
| - cp -r ../../targets work/lib/ |
79 |
| - |
80 | 72 | # take care of the examples
|
81 | 73 | cp -r ../shared/dist/examples work/
|
82 |
| - #mkdir work/examples |
83 |
| - #cd work/examples |
84 |
| - #cp ../../../shared/dist/examples.zip . |
85 |
| - #echo Extracting examples ... |
86 |
| - #unzip -q -d . examples.zip |
87 |
| - #rm -f examples.zip |
88 |
| - #cd ../.. |
89 | 74 |
|
90 | 75 | # chmod +x the crew
|
91 | 76 | find work -name "*.dll" -exec chmod +x {} ';'
|
|
129 | 114 |
|
130 | 115 | ### -- BUILD BOOTLOADER -----------------------------------------
|
131 | 116 |
|
132 |
| -cd bootloader |
133 |
| -export DIRAVR=../build/windows/work/tools/avr |
134 |
| -make |
135 |
| -cp ATmegaBOOT.hex ../build/windows/work/bootloader |
136 |
| -cd .. |
| 117 | +#cd bootloader |
| 118 | +#export DIRAVR=../build/windows/work/tools/avr |
| 119 | +#make |
| 120 | +#cp ATmegaBOOT.hex ../build/windows/work/bootloader |
| 121 | +#cd .. |
137 | 122 |
|
138 | 123 | ### -- BUILD PDE ------------------------------------------------
|
139 | 124 |
|
|
0 commit comments