mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-01 03:47:23 +03:00
Integrated bootloader into Mac and Windows dists. Burn scripts now in platform dirs; make.sh builds bootloader. Set baud rate back to 9600 for backwards compatibility.
This commit is contained in:
@ -53,6 +53,7 @@ cp -r ../../core work
|
||||
echo Copying dist files...
|
||||
cp -r dist/lib work/
|
||||
cp -r dist/core work/
|
||||
cp -r dist/bootloader work/
|
||||
|
||||
### -- START BUILDING -------------------------------------------
|
||||
|
||||
@ -63,6 +64,13 @@ cd ../..
|
||||
### -- BUILD GCC ------------------------------------------------
|
||||
# in the future we will build avr-gcc and tools (if they don't exist)
|
||||
|
||||
### -- BUILD BOOTLOADER ----------------------------------------
|
||||
cd bootloader
|
||||
export DIRAVR=../build/macosx/work/tools/avr
|
||||
make
|
||||
cp ATmegaBOOT.hex ../build/macosx/work/bootloader
|
||||
cd ..
|
||||
|
||||
### -- BUILD JAVA -----------------------------------------------
|
||||
|
||||
# set classpath
|
||||
|
6
build/windows/dist/bootloader/burn.bat
vendored
Executable file
6
build/windows/dist/bootloader/burn.bat
vendored
Executable file
@ -0,0 +1,6 @@
|
||||
REM TODO: need way to specify serial port.
|
||||
|
||||
..\tools\avr\bin\uisp -dpart=ATmega8 -dprog=stk500 -dserial=com1 -dspeed=115200 --wr_lock=0xFF
|
||||
..\tools\avr\bin\uisp -dpart=ATmega8 -dprog=stk500 -dserial=com1 -dspeed=115200 --wr_fuse_l=0xdf --wr_fuse_h=0xc8
|
||||
..\tools\avr\bin\uisp -dpart=ATmega8 -dprog=stk500 -dserial=com1 -dspeed=115200 --erase --upload --verify if=ATMegaBOOT.hex
|
||||
..\tools\avr\bin\uisp -dpart=ATmega8 -dprog=stk500 -dserial=com1 -dspeed=115200 --wr_lock=0xCF
|
@ -60,6 +60,8 @@ else
|
||||
#chmod +x work/jikes.exe
|
||||
|
||||
cp dist/ICE_JNIRegistry.dll work/
|
||||
mkdir work/bootloader
|
||||
cp dist/bootloader/*.* work/bootloader
|
||||
cp dist/serial/*.* work/lib/
|
||||
mkdir work/tools
|
||||
cp dist/avr_tools.zip .
|
||||
@ -119,6 +121,13 @@ cd ../..
|
||||
|
||||
fi
|
||||
|
||||
### -- BUILD BOOTLOADER -----------------------------------------
|
||||
|
||||
cd bootloader
|
||||
export AVRDIR=../build/windows/work/tools/avr
|
||||
make
|
||||
cp ATmegaBOOT.hex ../build/windows/work/bootloader
|
||||
cd ..
|
||||
|
||||
### -- BUILD PDE ------------------------------------------------
|
||||
|
||||
@ -162,16 +171,6 @@ CORE=..\\..\\build\\$PLATFORM\\work\\lib\\core.jar
|
||||
LIBRARIES=..\\..\\build\\$PLATFORM\\work\\libraries
|
||||
|
||||
|
||||
# PARTICLES LIBRARY
|
||||
#echo Build particles library...
|
||||
#cd ../lib/particles
|
||||
#$JIKES -target 1.1 +D -d . *.java
|
||||
#rm -f library/particles.jar
|
||||
#zip -r0q library/particles.jar simong
|
||||
#rm -rf simong
|
||||
#mkdir -p $LIBRARIES/particles/library/
|
||||
#cp library/particles.jar $LIBRARIES/particles/library/
|
||||
|
||||
echo
|
||||
echo Done.
|
||||
|
||||
|
Reference in New Issue
Block a user