nvme: optimise io_uring passthrough completion
[linux-block.git] / arch / loongarch / boot / Makefile
CommitLineData
fa96b57c
HC
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
fa96b57c
HC
11quiet_cmd_strip = STRIP $@
12 cmd_strip = $(STRIP) -s -o $@ $<
13
ead384d9
HC
14targets := vmlinux.elf
15$(obj)/vmlinux.elf: vmlinux FORCE
fa96b57c 16 $(call if_changed,strip)
ead384d9
HC
17
18targets += vmlinux.efi
19$(obj)/vmlinux.efi: vmlinux FORCE
20 $(call if_changed,objcopy)
c5d5cba7
AB
21
22EFI_ZBOOT_PAYLOAD := vmlinux.efi
23EFI_ZBOOT_BFD_TARGET := elf64-loongarch
24EFI_ZBOOT_MACH_TYPE := LOONGARCH64
25
26include $(srctree)/drivers/firmware/efi/libstub/Makefile.zboot