1 # 2 # arch/loongarch/boot/Makefile 3 # 4 # Copyright (C) 2020-2022 Loongson Technology 5 # 6 7 drop-sections := .comment .note .options .note 8 strip-flags := $(addprefix --remove-section= 9 OBJCOPYFLAGS_vmlinux.efi := -O binary $(strip- 10 11 quiet_cmd_strip = STRIP $@ 12 cmd_strip = $(STRIP) -s -o $@ $< 13 14 targets := vmlinux.elf 15 $(obj)/vmlinux.elf: vmlinux FORCE 16 $(call if_changed,strip) 17 18 targets += vmlinux.efi 19 $(obj)/vmlinux.efi: vmlinux FORCE 20 $(call if_changed,objcopy) 21 22 EFI_ZBOOT_PAYLOAD := vmlinux.efi 23 EFI_ZBOOT_BFD_TARGET := elf64-loongarch 24 EFI_ZBOOT_MACH_TYPE := LOONGARCH64 25 26 include $(srctree)/drivers/firmware/efi/libstu
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.