Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
71295c2b
Commit
71295c2b
authored
Sep 04, 2012
by
Henrik Nordstrom
Browse files
jtag-loop: Add Makefile recipe
parent
be2a89d9
Changes
2
Show whitespace changes
Inline
Side-by-side
Makefile
View file @
71295c2b
...
...
@@ -8,6 +8,8 @@ TOOLS += nand-part
MISC_TOOLS
=
phoenix_info
CROSS_COMPILE
?=
arm-none-eabi-
.PHONY
:
all clean
all
:
$(TOOLS)
...
...
@@ -15,7 +17,7 @@ all: $(TOOLS)
misc
:
$(MISC_TOOLS)
clean
:
@
rm
-vf
$(TOOLS)
$(MISC_TOOLS)
*
.o
*
.elf
@
rm
-vf
$(TOOLS)
$(MISC_TOOLS)
*
.o
*
.elf
*
.sunxi
*
.bin
*
.nm
*
.orig
$(TOOLS)
:
Makefile common.h
...
...
@@ -40,13 +42,22 @@ fel: fel.c
.dummy
:
fel-pio.bin
fel-pio.bin
:
fel-pio.elf fel-pio.nm
arm-none-eabi-
objcopy
-O
binary fel-pio.elf fel-pio.bin
$(CROSS_COMPILE)
objcopy
-O
binary fel-pio.elf fel-pio.bin
fel-pio.elf
:
fel-pio.c
arm-none-eabi-
gcc
-g
-Os
-fno-common
-fno-builtin
-ffreestanding
-nostdinc
-mno-thumb-interwork
-Wall
-Wstrict-prototypes
-fno-stack-protector
-Wno-format-nonliteral
-Wno-format-security
-fno-toplevel-reorder
fel-pio.c
-nostdlib
-o
fel-pio.elf
-T
fel-pio.lds
fel-pio.elf
:
fel-pio.c
fel-pio.lds
$(CROSS_COMPILE)
gcc
-g
-Os
-fpic
-fno-common
-fno-builtin
-ffreestanding
-nostdinc
-mno-thumb-interwork
-Wall
-Wstrict-prototypes
-fno-stack-protector
-Wno-format-nonliteral
-Wno-format-security
-fno-toplevel-reorder
fel-pio.c
-nostdlib
-o
fel-pio.elf
-T
fel-pio.lds
fel-pio.nm
:
fel-pio.elf
arm-none-eabi-nm fel-pio.elf |
grep
-v
" _"
>
fel-pio.nm
$(CROSS_COMPILE)
nm fel-pio.elf |
grep
-v
" _"
>
fel-pio.nm
jtag-loop.elf
:
jtag-loop.c jtag-loop.lds
$(CROSS_COMPILE)
gcc
-g
-Os
-fpic
-fno-common
-fno-builtin
-ffreestanding
-nostdinc
-mno-thumb-interwork
-Wall
-Wstrict-prototypes
-fno-stack-protector
-Wno-format-nonliteral
-Wno-format-security
-fno-toplevel-reorder
jtag-loop.c
-nostdlib
-o
jtag-loop.elf
-T
jtag-loop.lds
-Wl
,-N
jtag-loop.bin
:
jtag-loop.elf
$(CROSS_COMPILE)
objcopy
-O
binary jtag-loop.elf jtag-loop.bin
jtag-loop.sunxi
:
jtag-loop.bin
mksunxiboot jtag-loop.bin jtag-loop.sunxi
bootinfo
:
bootinfo.c
...
...
jtag-loop.lds
0 → 100644
View file @
71295c2b
SECTIONS
{
. = 0x0030;
.text : { *(.text) }
}
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