# # arch/loongarch/boot/Makefile # # Copyright (C) 2020-2022 Loongson Technology Corporation Limited # drop-sections := .comment .note .options .note.gnu.build-id strip-flags := $(addprefix --remove-section=,$(drop-sections)) -S OBJCOPYFLAGS_vmlinux.efi := -O binary $(strip-flags) quiet_cmd_strip = STRIP $@ cmd_strip = $(STRIP) -s -o $@ $< targets := vmlinux.elf $(obj)/vmlinux.elf: vmlinux FORCE $(call if_changed,strip) targets += vmlinux.efi $(obj)/vmlinux.efi: vmlinux FORCE $(call if_changed,objcopy)