Skip to content

Commit 2d2212c

Browse files
labodjStefanescuCristian
authored andcommitted
Compressed: optimize for Cortex A15
Signed-off-by: LaboDJ <jacopolabardi@gmail.com> Conflicts: arch/arm/boot/compressed/Makefile
1 parent 4269fb5 commit 2d2212c

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

arch/arm/boot/compressed/Makefile

+13-3
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,20 @@ OBJS += sdhi-sh7372.o
2222
endif
2323

2424
AFLAGS_head.o += -DTEXT_OFFSET=$(TEXT_OFFSET)
25+
AFLAGS_head.o += -Wa,-mcpu=cortex-a15
2526
HEAD = head.o
26-
OBJS += misc.o decompress.o
27+
OBJS += misc.o
2728
ifeq ($(CONFIG_KERNEL_LZ4),y)
2829
CFLAGS_decompress.o := -Os
2930
endif
3031
FONTC = $(srctree)/drivers/video/console/font_acorn_8x8.c
3132

33+
AFLAGS_misc.o += -Wa,-mcpu=cortex-a15
34+
MISC = misc.o
35+
36+
AFLAGS_decompress.o += -Wa,-mcpu=cortex-a15
37+
DECOMPRESS = decompress.o
38+
3239
# string library code (-Os is enforced to keep it much smaller)
3340
OBJS += string.o
3441
CFLAGS_string.o := -Os
@@ -118,7 +125,7 @@ endif
118125
targets := vmlinux vmlinux.lds \
119126
piggy.$(suffix_y) piggy.$(suffix_y).o \
120127
lib1funcs.o lib1funcs.S ashldi3.o ashldi3.S \
121-
font.o font.c head.o misc.o $(OBJS)
128+
font.o font.c head.o misc.o decompress.o $(OBJS)
122129

123130
# Make sure files are removed during clean
124131
extra-y += piggy.gzip piggy.lzo piggy.lzma piggy.xzkern piggy.lz4 \
@@ -153,12 +160,14 @@ LDFLAGS_vmlinux += -X
153160
LDFLAGS_vmlinux += -T
154161

155162
# For __aeabi_uidivmod
163+
AFLAGS_lib1funcs.o += -Wa,-mcpu=cortex-a15
156164
lib1funcs = $(obj)/lib1funcs.o
157165

158166
$(obj)/lib1funcs.S: $(srctree)/arch/$(SRCARCH)/lib/lib1funcs.S
159167
$(call cmd,shipped)
160168

161169
# For __aeabi_llsl
170+
AFLAGS_ashldi3.o += -Wa,-mcpu=cortex-a15
162171
ashldi3 = $(obj)/ashldi3.o
163172

164173
$(obj)/ashldi3.S: $(srctree)/arch/$(SRCARCH)/lib/ashldi3.S
@@ -184,12 +193,13 @@ if [ $(words $(ZRELADDR)) -gt 1 -a "$(CONFIG_AUTO_ZRELADDR)" = "" ]; then \
184193
false; \
185194
fi
186195

187-
$(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/$(HEAD) $(obj)/piggy.$(suffix_y).o \
196+
$(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/$(HEAD) $(obj)/$(MISC) $(obj)/$(DECOMPRESS) $(obj)/piggy.$(suffix_y).o \
188197
$(addprefix $(obj)/, $(OBJS)) $(lib1funcs) $(ashldi3) FORCE
189198
@$(check_for_multiple_zreladdr)
190199
$(call if_changed,ld)
191200
@$(check_for_bad_syms)
192201

202+
AFLAGS_piggy.$(suffix_y).o += -Wa,-mcpu=cortex-a15
193203
$(obj)/piggy.$(suffix_y): $(obj)/../Image FORCE
194204
$(call if_changed,$(suffix_y))
195205

0 commit comments

Comments
 (0)