Lines Matching +full:boot +full:- +full:method
1 # SPDX-License-Identifier: GPL-2.0
3 # to be include'd by arch/$(ARCH)/boot/Makefile after setting
9 truncate -s $$(hexdump -s16 -n4 -e '"%u"' $<) $@
18 comp-type-y := gzip
19 zboot-method-y := gzip
20 zboot-size-len-y := 0
22 comp-type-$(CONFIG_KERNEL_ZSTD) := zstd
23 zboot-method-$(CONFIG_KERNEL_ZSTD) := zstd22_with_size
24 zboot-size-len-$(CONFIG_KERNEL_ZSTD) := 4
27 $(call if_changed,$(zboot-method-y))
29 # avoid eager evaluation to prevent references to non-existent build artifacts
30 OBJCOPYFLAGS_vmlinuz.o = -I binary -O $(EFI_ZBOOT_BFD_TARGET) $(EFI_ZBOOT_OBJCOPY_FLAGS) \
31 --rename-section .data=.gzdata,load,alloc,readonly,contents
35 aflags-zboot-header-$(EFI_ZBOOT_FORWARD_CFI) := \
36 -DPE_DLL_CHAR_EX=IMAGE_DLLCHARACTERISTICS_EX_FORWARD_CFI_COMPAT
38 AFLAGS_zboot-header.o += -DMACHINE_TYPE=IMAGE_FILE_MACHINE_$(EFI_ZBOOT_MACH_TYPE) \
39 -DZBOOT_EFI_PATH="\"$(realpath $(obj)/vmlinuz.efi.elf)\"" \
40 -DZBOOT_SIZE_LEN=$(zboot-size-len-y) \
41 -DCOMP_TYPE="\"$(comp-type-y)\"" \
42 $(aflags-zboot-header-y)
44 $(obj)/zboot-header.o: $(srctree)/drivers/firmware/efi/libstub/zboot-header.S FORCE
47 ZBOOT_DEPS := $(obj)/zboot-header.o $(objtree)/drivers/firmware/efi/libstub/lib.a
49 LDFLAGS_vmlinuz.efi.elf := -T $(srctree)/drivers/firmware/efi/libstub/zboot.lds
53 OBJCOPYFLAGS_vmlinuz.efi := -O binary
57 targets += zboot-header.o vmlinux.bin vmlinuz vmlinuz.o vmlinuz.efi.elf vmlinuz.efi