File Index
Files and directories
Sign in
FILE

Makefile

File preview with syntax highlighting.

linux-6.19.14/arch/loongarch/boot/Makefile MAKEFILE
 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
11quiet_cmd_strip = STRIP	  $@
12      cmd_strip = $(STRIP) -s -o $@ $<
13
14targets := vmlinux.elf
15$(obj)/vmlinux.elf: vmlinux FORCE
16	$(call if_changed,strip)
17
18targets += vmlinux.efi
19$(obj)/vmlinux.efi: vmlinux FORCE
20	$(call if_changed,objcopy)
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
~/ Read-only file preview.