Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
27 lines
707 B
Makefile
27 lines
707 B
Makefile
#
|
|
# arch/loongarch/boot/Makefile
|
|
#
|
|
# Copyright (C) 2020-2022 Loongson Technology Corporation Limited
|
|
#
|
|
|
|
drop-sections := .comment .note .options .note.gnu.build-id
|
|
strip-flags := $(addprefix --remove-section=,$(drop-sections)) -S
|
|
OBJCOPYFLAGS_vmlinux.efi := -O binary $(strip-flags)
|
|
|
|
quiet_cmd_strip = STRIP $@
|
|
cmd_strip = $(STRIP) -s -o $@ $<
|
|
|
|
targets := vmlinux.elf
|
|
$(obj)/vmlinux.elf: vmlinux FORCE
|
|
$(call if_changed,strip)
|
|
|
|
targets += vmlinux.efi
|
|
$(obj)/vmlinux.efi: vmlinux FORCE
|
|
$(call if_changed,objcopy)
|
|
|
|
EFI_ZBOOT_PAYLOAD := vmlinux.efi
|
|
EFI_ZBOOT_BFD_TARGET := elf64-loongarch
|
|
EFI_ZBOOT_MACH_TYPE := LOONGARCH64
|
|
|
|
include $(srctree)/drivers/firmware/efi/libstub/Makefile.zboot
|