mkimage-profiles/lib/boot.mk
Anton Midyukov 743069cede lib/boot.mk: use/uuid-iso from boot/iso
Can be useful for iso without stage2 (net-install).
grub can bootload by uuid.
2023-08-21 20:10:32 +07:00

24 lines
563 B
Makefile

ifeq (,$(MKIMAGE_PROFILES))
$(error this makefile is designed to be included in toplevel one)
endif
ifeq (distro,$(IMAGE_CLASS))
# install media bootloader
boot/iso: use/uuid-iso
ifeq (,$(filter-out i586 x86_64,$(ARCH)))
@$(call try,BOOTLOADER,grubpcboot)
endif
ifeq (,$(filter-out aarch64 riscv64 loongarch64,$(ARCH)))
@$(call try,BOOTLOADER,efiboot)
endif
ifeq (,$(filter-out e2k%,$(ARCH)))
@$(call set,IMAGE_PACKTYPE,isodata)
endif
ifeq (,$(filter-out ppc64le,$(ARCH)))
@$(call try,BOOTLOADER,ieee1275boot)
endif
@$(call try,IMAGE_PACKTYPE,boot)
endif