Skip to content

Commit 9c6d665

Browse files
masahir0yRussell King (Oracle)
authored andcommitted
ARM: 9189/1: decompressor: fix unneeded rebuilds of library objects
Since commit 251cc82 ("ARM: 9154/1: decompressor: do not copy source files while building"), the following three are rebuilt every time. AS arch/arm/boot/compressed/lib1funcs.o AS arch/arm/boot/compressed/ashldi3.o AS arch/arm/boot/compressed/bswapsdi2.o Move the "OBJS += ..." line up so these objects are added to 'targets'. Fixes: 251cc82 ("ARM: 9154/1: decompressor: do not copy source files while building") Reported-by: Russell King (Oracle) <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]>
1 parent 9bc19d4 commit 9c6d665

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm/boot/compressed/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ endif
9797
$(foreach o, $(libfdt_objs) atags_to_fdt.o fdt_check_mem_start.o, \
9898
$(eval CFLAGS_$(o) := -I $(srctree)/scripts/dtc/libfdt -fno-stack-protector))
9999

100+
OBJS += lib1funcs.o ashldi3.o bswapsdi2.o
101+
100102
targets := vmlinux vmlinux.lds piggy_data piggy.o \
101103
head.o $(OBJS)
102104

@@ -130,8 +132,6 @@ endif
130132
# Next argument is a linker script
131133
LDFLAGS_vmlinux += -T
132134

133-
OBJS += lib1funcs.o ashldi3.o bswapsdi2.o
134-
135135
# We need to prevent any GOTOFF relocs being used with references
136136
# to symbols in the .bss section since we cannot relocate them
137137
# independently from the rest at run time. This can be achieved by

0 commit comments

Comments
 (0)