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
1f644592
Commit
1f644592
authored
Jan 05, 2015
by
funshine
Browse files
modify gen_misc and gen_appbin to support gcc toolchain
parent
cb4a49e0
Changes
5
Hide whitespace changes
Inline
Side-by-side
app/gen_misc.bat
View file @
1f644592
...
...
@@ -7,13 +7,23 @@ del /F ..\bin\eagle.app.v6.flash.bin ..\bin\eagle.app.v6.irom0text.bin ..\bin\ea
cd
.output\eagle\debug\image
xt
-objdump -x -s
eagle
.app.v6.out
>
..\..\..\..\..\bin\eagle.app.v6.dump
xt
-objdump -S
eagle
.app.v6.out
>
..\..\..\..\..\bin\eagle.app.v6.S
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
if
%XTENSA_CORE%
==
lx106
(
xt
-objdump -x -s
eagle
.app.v6.out
>
..\..\..\..\..\bin\eagle.app.v6.dump
xt
-objdump -S
eagle
.app.v6.out
>
..\..\..\..\..\bin\eagle.app.v6.S
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
)
else
(
xtensa
-lx
106
-elf-objdump -x -s
eagle
.app.v6.out
>
..\..\..\..\..\bin\eagle.app.v6.dump
xtensa
-lx
106
-elf-objdump -S
eagle
.app.v6.out
>
..\..\..\..\..\bin\eagle.app.v6.S
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
)
gen_appbin
.py
eagle
.app.v6.out
v6
...
...
app/gen_misc.sh
View file @
1f644592
...
...
@@ -5,13 +5,13 @@ rm ../bin/eagle.app.v6.flash.bin ../bin/eagle.app.v6.irom0text.bin ../bin/eagle.
cd
.output/eagle/debug/image
xt-objdump
-x
-s
eagle.app.v6.out
>
../../../../../bin/eagle.app.v6.dump
xt-objdump
-S
eagle.app.v6.out
>
../../../../../bin/eagle.app.v6.S
xt
ensa-lx106-elf
-objdump
-x
-s
eagle.app.v6.out
>
../../../../../bin/eagle.app.v6.dump
xt
ensa-lx106-elf
-objdump
-S
eagle.app.v6.out
>
../../../../../bin/eagle.app.v6.S
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
xt
ensa-lx106-elf
-objcopy
--only-section
.text
-O
binary eagle.app.v6.out eagle.app.v6.text.bin
xt
ensa-lx106-elf
-objcopy
--only-section
.data
-O
binary eagle.app.v6.out eagle.app.v6.data.bin
xt
ensa-lx106-elf
-objcopy
--only-section
.rodata
-O
binary eagle.app.v6.out eagle.app.v6.rodata.bin
xt
ensa-lx106-elf
-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
...
...
app/gen_misc_plus.bat
View file @
1f644592
...
...
@@ -7,10 +7,17 @@ rm ..\bin\upgrade\%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
if
%XTENSA_CORE%
==
lx106
(
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
)
else
(
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
)
gen_appbin
.py
eagle
.app.v6.out
v6
...
...
app/gen_misc_plus.sh
View file @
1f644592
...
...
@@ -6,13 +6,13 @@ rm ../bin/upgrade/user$1.bin ../bin/upgrade/user$1.dump ../bin/upgrade/user$1.S
cd
.output/eagle/debug/image/
xt-objdump
-x
-s
eagle.app.v6.out
>
../../../../../bin/upgrade/user
$1
.dump
xt-objdump
-S
eagle.app.v6.out
>
../../../../../bin/upgrade/user
$1
.S
xt
ensa-lx106-elf
-objdump
-x
-s
eagle.app.v6.out
>
../../../../../bin/upgrade/user
$1
.dump
xt
ensa-lx106-elf
-objdump
-S
eagle.app.v6.out
>
../../../../../bin/upgrade/user
$1
.S
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
xt
ensa-lx106-elf
-objcopy
--only-section
.text
-O
binary eagle.app.v6.out eagle.app.v6.text.bin
xt
ensa-lx106-elf
-objcopy
--only-section
.data
-O
binary eagle.app.v6.out eagle.app.v6.data.bin
xt
ensa-lx106-elf
-objcopy
--only-section
.rodata
-O
binary eagle.app.v6.out eagle.app.v6.rodata.bin
xt
ensa-lx106-elf
-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_appbin.py
View file @
1f644592
...
...
@@ -18,7 +18,10 @@ elf_file = sys.argv[1]
ver
=
sys
.
argv
[
2
]
#print elf_file
cmd
=
'xt-nm -g '
+
elf_file
+
' > eagle.app.sym'
if
os
.
getenv
(
'XTENSA_CORE'
)
==
'lx106'
:
cmd
=
'xt-nm -g '
+
elf_file
+
' > eagle.app.sym'
else
:
cmd
=
'xtensa-lx106-elf-nm -g '
+
elf_file
+
' > eagle.app.sym'
#print cmd
os
.
system
(
cmd
)
...
...
@@ -60,7 +63,10 @@ for line in lines:
rodata_start_addr
=
m
.
group
(
1
)
print
rodata_start_addr
cmd
=
'genflashbin%s eagle.app.%s.text.bin '
%
(
ver
,
ver
)
+
entry_addr
+
' eagle.app.%s.data.bin '
%
(
ver
)
+
data_start_addr
+
' eagle.app.%s.rodata.bin '
%
(
ver
)
+
rodata_start_addr
if
os
.
getenv
(
'XTENSA_CORE'
)
==
'lx106'
:
cmd
=
'genflashbin%s eagle.app.%s.text.bin '
%
(
ver
,
ver
)
+
entry_addr
+
' eagle.app.%s.data.bin '
%
(
ver
)
+
data_start_addr
+
' eagle.app.%s.rodata.bin '
%
(
ver
)
+
rodata_start_addr
else
:
cmd
=
'genflashbin%s eagle.app.%s.text.bin '
%
(
ver
,
ver
)
+
entry_addr
+
' eagle.app.%s.data.bin '
%
(
ver
)
+
data_start_addr
+
' eagle.app.%s.rodata.bin '
%
(
ver
)
+
rodata_start_addr
print
cmd
os
.
system
(
cmd
)
...
...
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