Auto select OBJDUMP and OBJCOPY.
This commit is contained in:
parent
1f644592b3
commit
93b6b9162c
|
@ -7,23 +7,25 @@ del /F ..\bin\eagle.app.v6.flash.bin ..\bin\eagle.app.v6.irom0text.bin ..\bin\ea
|
||||||
|
|
||||||
cd .output\eagle\debug\image
|
cd .output\eagle\debug\image
|
||||||
|
|
||||||
if %XTENSA_CORE%==lx106 (
|
@echo off
|
||||||
xt-objdump -x -s eagle.app.v6.out > ..\..\..\..\..\bin\eagle.app.v6.dump
|
set OBJDUMP=xt-objdump
|
||||||
xt-objdump -S eagle.app.v6.out > ..\..\..\..\..\bin\eagle.app.v6.S
|
set OBJCOPY=xt-objcopy
|
||||||
|
if defined XTENSA_CORE (
|
||||||
xt-objcopy --only-section .text -O binary eagle.app.v6.out eagle.app.v6.text.bin
|
set OBJDUMP=xt-objdump
|
||||||
xt-objcopy --only-section .data -O binary eagle.app.v6.out eagle.app.v6.data.bin
|
set OBJCOPY=xt-objcopy
|
||||||
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
|
|
||||||
) else (
|
) else (
|
||||||
xtensa-lx106-elf-objdump -x -s eagle.app.v6.out > ..\..\..\..\..\bin\eagle.app.v6.dump
|
set OBJDUMP=xtensa-lx106-elf-objdump
|
||||||
xtensa-lx106-elf-objdump -S eagle.app.v6.out > ..\..\..\..\..\bin\eagle.app.v6.S
|
set OBJCOPY=xtensa-lx106-elf-objcopy
|
||||||
|
|
||||||
xtensa-lx106-elf-objcopy --only-section .text -O binary eagle.app.v6.out eagle.app.v6.text.bin
|
|
||||||
xtensa-lx106-elf-objcopy --only-section .data -O binary eagle.app.v6.out eagle.app.v6.data.bin
|
|
||||||
xtensa-lx106-elf-objcopy --only-section .rodata -O binary eagle.app.v6.out eagle.app.v6.rodata.bin
|
|
||||||
xtensa-lx106-elf-objcopy --only-section .irom0.text -O binary eagle.app.v6.out eagle.app.v6.irom0text.bin
|
|
||||||
)
|
)
|
||||||
|
@echo on
|
||||||
|
|
||||||
|
%OBJDUMP% -x -s eagle.app.v6.out > ..\..\..\..\..\bin\eagle.app.v6.dump
|
||||||
|
%OBJDUMP% -S eagle.app.v6.out > ..\..\..\..\..\bin\eagle.app.v6.S
|
||||||
|
|
||||||
|
%OBJCOPY% --only-section .text -O binary eagle.app.v6.out eagle.app.v6.text.bin
|
||||||
|
%OBJCOPY% --only-section .data -O binary eagle.app.v6.out eagle.app.v6.data.bin
|
||||||
|
%OBJCOPY% --only-section .rodata -O binary eagle.app.v6.out eagle.app.v6.rodata.bin
|
||||||
|
%OBJCOPY% --only-section .irom0.text -O binary eagle.app.v6.out eagle.app.v6.irom0text.bin
|
||||||
|
|
||||||
gen_appbin.py eagle.app.v6.out v6
|
gen_appbin.py eagle.app.v6.out v6
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue