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