Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Compressed: optimize for Cortex A15
Signed-off-by: LaboDJ <jacopolabardi@gmail.com>

Conflicts:
	arch/arm/boot/compressed/Makefile
  • Loading branch information
labodj authored and StefanescuCristian committed Jun 4, 2014
1 parent 4269fb5 commit 2d2212c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions arch/arm/boot/compressed/Makefile
Expand Up @@ -22,13 +22,20 @@ OBJS += sdhi-sh7372.o
endif

AFLAGS_head.o += -DTEXT_OFFSET=$(TEXT_OFFSET)
AFLAGS_head.o += -Wa,-mcpu=cortex-a15
HEAD = head.o
OBJS += misc.o decompress.o
OBJS += misc.o
ifeq ($(CONFIG_KERNEL_LZ4),y)
CFLAGS_decompress.o := -Os
endif
FONTC = $(srctree)/drivers/video/console/font_acorn_8x8.c

AFLAGS_misc.o += -Wa,-mcpu=cortex-a15
MISC = misc.o

AFLAGS_decompress.o += -Wa,-mcpu=cortex-a15
DECOMPRESS = decompress.o

# string library code (-Os is enforced to keep it much smaller)
OBJS += string.o
CFLAGS_string.o := -Os
Expand Down Expand Up @@ -118,7 +125,7 @@ endif
targets := vmlinux vmlinux.lds \
piggy.$(suffix_y) piggy.$(suffix_y).o \
lib1funcs.o lib1funcs.S ashldi3.o ashldi3.S \
font.o font.c head.o misc.o $(OBJS)
font.o font.c head.o misc.o decompress.o $(OBJS)

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

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

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

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

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

$(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/$(HEAD) $(obj)/piggy.$(suffix_y).o \
$(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/$(HEAD) $(obj)/$(MISC) $(obj)/$(DECOMPRESS) $(obj)/piggy.$(suffix_y).o \
$(addprefix $(obj)/, $(OBJS)) $(lib1funcs) $(ashldi3) FORCE
@$(check_for_multiple_zreladdr)
$(call if_changed,ld)
@$(check_for_bad_syms)

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

Expand Down

0 comments on commit 2d2212c

Please sign in to comment.