gen_misc.sh 865 B

12345678910111213141516171819202122232425
  1. #!/bin/bash -x
  2. make
  3. if [ $? == 0 ];then
  4. rm ../bin/eagle.app.v6.flash.bin ../bin/eagle.app.v6.irom0text.bin ../bin/eagle.app.v6.dump ../bin/eagle.app.v6.S
  5. cd .output/eagle/debug/image
  6. xt-objdump -x -s eagle.app.v6.out > ../../../../../bin/eagle.app.v6.dump
  7. xt-objdump -S eagle.app.v6.out > ../../../../../bin/eagle.app.v6.S
  8. xt-objcopy --only-section .text -O binary eagle.app.v6.out eagle.app.v6.text.bin
  9. xt-objcopy --only-section .data -O binary eagle.app.v6.out eagle.app.v6.data.bin
  10. xt-objcopy --only-section .rodata -O binary eagle.app.v6.out eagle.app.v6.rodata.bin
  11. xt-objcopy --only-section .irom0.text -O binary eagle.app.v6.out eagle.app.v6.irom0text.bin
  12. ../../../../../tools/gen_appbin.py eagle.app.v6.out v6
  13. cp eagle.app.v6.irom0text.bin ../../../../../bin/
  14. cp eagle.app.v6.flash.bin ../../../../../bin/
  15. cd ../../../../../
  16. else
  17. echo "make error"
  18. fi