GNU Linux-libre 5.19-rc6-gnu
[releases.git] / arch / loongarch / boot / Makefile
1 #
2 # arch/loongarch/boot/Makefile
3 #
4 # Copyright (C) 2020-2022 Loongson Technology Corporation Limited
5 #
6
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)
10
11 targets := vmlinux
12 quiet_cmd_strip = STRIP   $@
13       cmd_strip = $(STRIP) -s -o $@ $<
14
15 $(obj)/vmlinux: vmlinux FORCE
16         $(call if_changed,strip)