Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
93b6b916
Commit
93b6b916
authored
Jan 05, 2015
by
HuangRui
Browse files
Auto select OBJDUMP and OBJCOPY.
parent
1f644592
Changes
1
Show whitespace changes
Inline
Side-by-side
app/gen_misc.bat
View file @
93b6b916
...
@@ -7,23 +7,25 @@ del /F ..\bin\eagle.app.v6.flash.bin ..\bin\eagle.app.v6.irom0text.bin ..\bin\ea
...
@@ -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
-lx
106
-elf-objdump -x -s
eagle
.app.v6.out
>
..\..\..\..\..\bin\eagle.app.v6.dump
set
OBJDUMP
=
xtensa
-lx
106
-elf-objdump
xtensa
-lx
106
-elf-objdump -S
eagle
.app.v6.out
>
..\..\..\..\..\bin\eagle.app.v6.S
set
OBJCOPY
=
xtensa
-lx
106
-elf-objcopy
xtensa
-lx
106
-elf-objcopy --only-section
.text
-O
binary
eagle
.app.v6.out
eagle
.app.v6.text.bin
xtensa
-lx
106
-elf-objcopy --only-section
.data
-O
binary
eagle
.app.v6.out
eagle
.app.v6.data.bin
xtensa
-lx
106
-elf-objcopy --only-section
.rodata
-O
binary
eagle
.app.v6.out
eagle
.app.v6.rodata.bin
xtensa
-lx
106
-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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment