Skip to content

Commit 13df8fb

Browse files
committed
Fixing up Windows make.sh and dist.sh to work with new hardware/ directory organization scheme.
1 parent 09cb46c commit 13df8fb

File tree

2 files changed

+12
-29
lines changed

2 files changed

+12
-29
lines changed

build/windows/dist.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ rm -rf arduino-*
2323
# use 'shared' files as starting point
2424
cp -r ../shared arduino
2525
mkdir arduino
26-
cp -r work/lib/targets arduino/lib
26+
#cp -r work/lib/targets arduino/lib
2727

2828
# new style examples thing ala reas
2929
#cd arduino
@@ -47,9 +47,7 @@ unzip -q -d arduino jre.zip
4747

4848
# copy stuff from work/
4949
cp work/readme.txt arduino
50-
cp -r work/tools arduino
51-
cp -r work/bootloader arduino
52-
cp -r work/bootloader168 arduino
50+
cp -r work/hardware arduino
5351
cp -r work/drivers arduino
5452
#cp -r work/examples arduino
5553

build/windows/make.sh

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ else
1010
echo Setting up directories to build arduino...
1111
BUILD_PREPROC=true
1212
cp -r ../shared work
13-
rm -rf work/CVS
1413
rm -f work/.DS_Store
1514
#cp ../../lib/*.dll work
1615
cp dist/*.dll work
@@ -58,34 +57,20 @@ else
5857
#chmod +x work/jikes.exe
5958

6059
cp dist/ICE_JNIRegistry.dll work/
60+
61+
cp -r ../../hardware work/
6162
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
6564
mkdir work/drivers
6665
cp -r dist/drivers/* work/drivers/
67-
mkdir work/tools
66+
6867
cp dist/avr_tools.zip .
6968
echo Extracting avr tools ...
70-
unzip -q -d work avr_tools.zip
69+
unzip -q -d work/hardware avr_tools.zip
7170
rm -f avr_tools.zip
7271

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-
8072
# take care of the examples
8173
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 ../..
8974

9075
# chmod +x the crew
9176
find work -name "*.dll" -exec chmod +x {} ';'
@@ -129,11 +114,11 @@ fi
129114

130115
### -- BUILD BOOTLOADER -----------------------------------------
131116

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 ..
137122

138123
### -- BUILD PDE ------------------------------------------------
139124

0 commit comments

Comments
 (0)