Skip to content

Commit

Permalink
ARM: 8542/1: decompressor: merge piggy.*.S and simplify Makefile
Browse files Browse the repository at this point in the history
The files piggy.$(suffix).S are similar enough to be merged into a
single file.  This also allows clean up of the Makefile.

Signed-off-by: Masahiro Yamada <[email protected]>
Signed-off-by: Russell King <[email protected]>
  • Loading branch information
masahir0y authored and Russell King committed Feb 22, 2016
1 parent b0b6abe commit 53f6754
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 38 deletions.
6 changes: 1 addition & 5 deletions arch/arm/boot/compressed/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ bswapsdi2.S
font.c
lib1funcs.S
hyp-stub.S
piggy.gzip
piggy.lzo
piggy.lzma
piggy.xzkern
piggy.lz4
piggy_data
vmlinux
vmlinux.lds

Expand Down
14 changes: 6 additions & 8 deletions arch/arm/boot/compressed/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,12 @@ ifeq ($(CONFIG_ARM_ATAG_DTB_COMPAT),y)
OBJS += $(libfdt_objs) atags_to_fdt.o
endif

targets := vmlinux vmlinux.lds \
piggy.$(suffix_y) piggy.$(suffix_y).o \
targets := vmlinux vmlinux.lds piggy_data piggy.o \
lib1funcs.o ashldi3.o bswapsdi2.o \
head.o $(OBJS)

clean-files += piggy.gzip piggy.lzo piggy.lzma piggy.xzkern piggy.lz4 \
lib1funcs.S ashldi3.S bswapsdi2.S $(libfdt) $(libfdt_hdrs) \
hyp-stub.S
clean-files += piggy_data lib1funcs.S ashldi3.S bswapsdi2.S \
$(libfdt) $(libfdt_hdrs) hyp-stub.S

KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING

Expand Down Expand Up @@ -168,17 +166,17 @@ fi

efi-obj-$(CONFIG_EFI_STUB) := $(objtree)/drivers/firmware/efi/libstub/lib.a

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

$(obj)/piggy.$(suffix_y): $(obj)/../Image FORCE
$(obj)/piggy_data: $(obj)/../Image FORCE
$(call if_changed,$(suffix_y))

$(obj)/piggy.$(suffix_y).o: $(obj)/piggy.$(suffix_y)
$(obj)/piggy.o: $(obj)/piggy_data

CFLAGS_font.o := -Dstatic=

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.section .piggydata,#alloc
.globl input_data
input_data:
.incbin "arch/arm/boot/compressed/piggy.gzip"
.incbin "arch/arm/boot/compressed/piggy_data"
.globl input_data_end
input_data_end:
6 changes: 0 additions & 6 deletions arch/arm/boot/compressed/piggy.lz4.S

This file was deleted.

6 changes: 0 additions & 6 deletions arch/arm/boot/compressed/piggy.lzma.S

This file was deleted.

6 changes: 0 additions & 6 deletions arch/arm/boot/compressed/piggy.lzo.S

This file was deleted.

6 changes: 0 additions & 6 deletions arch/arm/boot/compressed/piggy.xzkern.S

This file was deleted.

0 comments on commit 53f6754

Please sign in to comment.