Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xtensa: boot-redboot: clean up Makefile

Drop references to external library search directory and compiler libgcc
from the link command. Use KBUILD_LDFLAGS in the link command.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>

+4 -5
+4 -5
arch/xtensa/boot/boot-redboot/Makefile
··· 6 6 7 7 OBJCOPY_ARGS := -O $(if $(CONFIG_CPU_BIG_ENDIAN),elf32-xtensa-be,elf32-xtensa-le) 8 8 9 - LD_ARGS = -T $(srctree)/$(obj)/boot.ld 10 - 11 9 boot-y := bootstrap.o 12 10 targets += $(boot-y) 13 11 14 12 OBJS := $(addprefix $(obj)/,$(boot-y)) 15 13 LIBS := arch/xtensa/boot/lib/lib.a arch/xtensa/lib/lib.a 16 - 17 - LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) 18 14 19 15 $(obj)/zImage.o: $(obj)/../vmlinux.bin.gz $(OBJS) 20 16 $(Q)$(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ ··· 19 23 $(OBJS) $@ 20 24 21 25 $(obj)/zImage.elf: $(obj)/zImage.o $(LIBS) 22 - $(Q)$(LD) $(LD_ARGS) -o $@ $^ -L/xtensa-elf/lib $(LIBGCC) 26 + $(Q)$(LD) $(KBUILD_LDFLAGS) \ 27 + -T $(srctree)/$(obj)/boot.ld \ 28 + --build-id=none \ 29 + -o $@ $^ 23 30 24 31 $(obj)/../zImage.redboot: $(obj)/zImage.elf 25 32 $(Q)$(OBJCOPY) -S -O binary $< $@