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