@@ -22,13 +22,20 @@ OBJS += sdhi-sh7372.o
22
22
endif
23
23
24
24
AFLAGS_head.o += -DTEXT_OFFSET=$(TEXT_OFFSET )
25
+ AFLAGS_head.o += -Wa,-mcpu=cortex-a15
25
26
HEAD = head.o
26
- OBJS += misc.o decompress.o
27
+ OBJS += misc.o
27
28
ifeq ($(CONFIG_KERNEL_LZ4 ) ,y)
28
29
CFLAGS_decompress.o := -Os
29
30
endif
30
31
FONTC = $(srctree ) /drivers/video/console/font_acorn_8x8.c
31
32
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
+
32
39
# string library code (-Os is enforced to keep it much smaller)
33
40
OBJS += string.o
34
41
CFLAGS_string.o := -Os
@@ -118,7 +125,7 @@ endif
118
125
targets := vmlinux vmlinux.lds \
119
126
piggy.$(suffix_y ) piggy.$(suffix_y ) .o \
120
127
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 )
122
129
123
130
# Make sure files are removed during clean
124
131
extra-y += piggy.gzip piggy.lzo piggy.lzma piggy.xzkern piggy.lz4 \
@@ -153,12 +160,14 @@ LDFLAGS_vmlinux += -X
153
160
LDFLAGS_vmlinux += -T
154
161
155
162
# For __aeabi_uidivmod
163
+ AFLAGS_lib1funcs.o += -Wa,-mcpu=cortex-a15
156
164
lib1funcs = $(obj ) /lib1funcs.o
157
165
158
166
$(obj ) /lib1funcs.S : $(srctree ) /arch/$(SRCARCH ) /lib/lib1funcs.S
159
167
$(call cmd,shipped)
160
168
161
169
# For __aeabi_llsl
170
+ AFLAGS_ashldi3.o += -Wa,-mcpu=cortex-a15
162
171
ashldi3 = $(obj ) /ashldi3.o
163
172
164
173
$(obj ) /ashldi3.S : $(srctree ) /arch/$(SRCARCH ) /lib/ashldi3.S
@@ -184,12 +193,13 @@ if [ $(words $(ZRELADDR)) -gt 1 -a "$(CONFIG_AUTO_ZRELADDR)" = "" ]; then \
184
193
false; \
185
194
fi
186
195
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 \
188
197
$(addprefix $(obj ) /, $(OBJS ) ) $(lib1funcs ) $(ashldi3 ) FORCE
189
198
@$(check_for_multiple_zreladdr )
190
199
$(call if_changed,ld)
191
200
@$(check_for_bad_syms )
192
201
202
+ AFLAGS_piggy.$(suffix_y).o += -Wa,-mcpu=cortex-a15
193
203
$(obj ) /piggy.$(suffix_y ) : $(obj ) /../Image FORCE
194
204
$(call if_changed,$(suffix_y ) )
195
205
0 commit comments