Files
ESP8266_RTOS_SDK/app/gen_misc_plus.sh
espressif b625e58e98 Welcome to join us.
This is esp iot sdk RTOS initial version.
2014-12-05 17:29:30 +08:00

24 lines
714 B
Bash

#!/bin/bash -x
make APP=$1
if [ $? == 0 ];then
rm ../bin/upgrade/user$1.bin
cd .output/eagle/debug/image/
xt-objcopy --only-section .text -O binary eagle.app.v6.out eagle.app.v6.text.bin
xt-objcopy --only-section .data -O binary eagle.app.v6.out eagle.app.v6.data.bin
xt-objcopy --only-section .rodata -O binary eagle.app.v6.out eagle.app.v6.rodata.bin
xt-objcopy --only-section .irom0.text -O binary eagle.app.v6.out eagle.app.v6.irom0text.bin
../../../../../tools/gen_appbin.py eagle.app.v6.out v6
../../../../../tools/gen_flashbin.py eagle.app.v6.flash.bin eagle.app.v6.irom0text.bin
cp eagle.app.flash.bin user$1.bin
cp user$1.bin ../../../../../bin/upgrade/
cd ../../../../../
else
echo "make error"
fi