162306a36Sopenharmony_ci#
262306a36Sopenharmony_ci# arch/arm64/boot/Makefile
362306a36Sopenharmony_ci#
462306a36Sopenharmony_ci# This file is included by the global makefile so that you can add your own
562306a36Sopenharmony_ci# architecture-specific flags and dependencies.
662306a36Sopenharmony_ci#
762306a36Sopenharmony_ci# This file is subject to the terms and conditions of the GNU General Public
862306a36Sopenharmony_ci# License.  See the file "COPYING" in the main directory of this archive
962306a36Sopenharmony_ci# for more details.
1062306a36Sopenharmony_ci#
1162306a36Sopenharmony_ci# Copyright (C) 2012, ARM Ltd.
1262306a36Sopenharmony_ci# Author: Will Deacon <will.deacon@arm.com>
1362306a36Sopenharmony_ci#
1462306a36Sopenharmony_ci# Based on the ia64 boot/Makefile.
1562306a36Sopenharmony_ci#
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciOBJCOPYFLAGS_Image :=-O binary -R .note -R .note.gnu.build-id -R .comment -S
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_citargets := Image Image.bz2 Image.gz Image.lz4 Image.lzma Image.lzo Image.zst
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci$(obj)/Image: vmlinux FORCE
2262306a36Sopenharmony_ci	$(call if_changed,objcopy)
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci$(obj)/Image.bz2: $(obj)/Image FORCE
2562306a36Sopenharmony_ci	$(call if_changed,bzip2)
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci$(obj)/Image.gz: $(obj)/Image FORCE
2862306a36Sopenharmony_ci	$(call if_changed,gzip)
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ci$(obj)/Image.lz4: $(obj)/Image FORCE
3162306a36Sopenharmony_ci	$(call if_changed,lz4)
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci$(obj)/Image.lzma: $(obj)/Image FORCE
3462306a36Sopenharmony_ci	$(call if_changed,lzma)
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ci$(obj)/Image.lzo: $(obj)/Image FORCE
3762306a36Sopenharmony_ci	$(call if_changed,lzo)
3862306a36Sopenharmony_ci
3962306a36Sopenharmony_ci$(obj)/Image.zst: $(obj)/Image FORCE
4062306a36Sopenharmony_ci	$(call if_changed,zstd)
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ciEFI_ZBOOT_PAYLOAD	:= Image
4362306a36Sopenharmony_ciEFI_ZBOOT_BFD_TARGET	:= elf64-littleaarch64
4462306a36Sopenharmony_ciEFI_ZBOOT_MACH_TYPE	:= ARM64
4562306a36Sopenharmony_ciEFI_ZBOOT_FORWARD_CFI	:= $(CONFIG_ARM64_BTI_KERNEL)
4662306a36Sopenharmony_ci
4762306a36Sopenharmony_ciEFI_ZBOOT_OBJCOPY_FLAGS	= --add-symbol zboot_code_size=0x$(shell \
4862306a36Sopenharmony_ci				$(NM) vmlinux|grep _kernel_codesize|cut -d' ' -f1)
4962306a36Sopenharmony_ci
5062306a36Sopenharmony_ciinclude $(srctree)/drivers/firmware/efi/libstub/Makefile.zboot
51