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
7c056093
Commit
7c056093
authored
May 23, 2013
by
Henrik Nordstrom
Browse files
felboot: Simplify Makefile a bit to more closely match u-boot
parent
98b3125d
Changes
1
Hide whitespace changes
Inline
Side-by-side
felboot/Makefile
View file @
7c056093
...
@@ -19,13 +19,13 @@ CFLAGS=-g -O2 -marm -mno-thumb-interwork -mabi=aapcs-linux -march=armv7-a -fno-c
...
@@ -19,13 +19,13 @@ CFLAGS=-g -O2 -marm -mno-thumb-interwork -mabi=aapcs-linux -march=armv7-a -fno-c
all
:
fel-boot-$(BOARD).bin
all
:
fel-boot-$(BOARD).bin
UBOOT_OBJS
=
\
UBOOT_OBJS
=
\
$(
addprefix
spl/arch/arm/cpu/armv7/sunxi/
,clock.o pinmux.o dram.o board.o timer
.o
)
\
spl/arch/arm/cpu/armv7/sunxi/
libsunxi
.o
\
spl/arch/arm/cpu/armv7/syslib.o
\
spl/arch/arm/cpu/armv7/syslib.o
\
spl/arch/arm/lib/eabi_compat.o
\
spl/arch/arm/lib/eabi_compat.o
\
spl/drivers/power/
axp209
.o
\
spl/drivers/power/
libpower
.o
\
spl/drivers/i2c/libi2c.o
\
spl/drivers/i2c/libi2c.o
\
spl/common/memsize.o
\
spl/common/memsize.o
\
$(
addprefix
spl/board/sunxi/
,dram_
$(BOARD)
.o board
.o
)
spl/board/sunxi/
libsunxi
.o
.c.o
:
.c.o
:
$(CROSS_COMPILE)$(CC)
-c
$(CFLAGS)
$<
-o
$@
$(CROSS_COMPILE)$(CC)
-c
$(CFLAGS)
$<
-o
$@
...
@@ -39,7 +39,7 @@ OBJS += printf-stdarg.o early_print.o
...
@@ -39,7 +39,7 @@ OBJS += printf-stdarg.o early_print.o
endif
endif
fel-boot-$(BOARD).elf
:
$(OBJS) $(addprefix $(UBOOTOBJ)
,
$(UBOOT_OBJS))
fel-boot-$(BOARD).elf
:
$(OBJS) $(addprefix $(UBOOTOBJ)
,
$(UBOOT_OBJS))
$(CROSS_COMPILE)$(CC)
-Tfel-boot
.ld
-static
-nostartfiles
$(CFLAGS)
-Wl
,-Map
=
$@
.map
$^
-o
$@
$(CROSS_COMPILE)$(CC)
-Tfel-boot
.ld
-static
-nostartfiles
$(CFLAGS)
-Wl
,-Map
=
$@
.map
-o
$@
$(OBJS)
-Wl
,--start-group
$(
addprefix
$(UBOOTOBJ)
,
$(UBOOT_OBJS)
)
-Wl
,--end-group
fel-boot-$(BOARD).bin
:
fel-boot-$(BOARD).elf
fel-boot-$(BOARD).bin
:
fel-boot-$(BOARD).elf
$(CROSS_COMPILE)
objcopy
-O
binary
$<
$@
$(CROSS_COMPILE)
objcopy
-O
binary
$<
$@
...
...
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