2019-05-29 19:09:18 +03:00
EFI_ARCHES := x86_64 aarch64
2014-03-20 01:07:19 +04:00
+efi : use /efi /signed ; @:
2013-02-16 14:53:15 +04:00
2019-05-29 19:09:18 +03:00
i f e q ( , $( filter -out $ ( EFI_ARCHES ) ,$ ( ARCH ) ) )
2012-12-18 18:18:58 +04:00
2012-12-26 17:21:24 +04:00
EFI_LISTS := $( call tags,base efi)
2012-10-30 23:08:23 +04:00
use/efi :
2012-12-12 00:00:35 +04:00
@$( call add_feature)
2013-12-24 13:54:01 +04:00
@$( call set,MKI_VER_MINIMAL,0.2.12) # it's official now
2019-05-29 19:09:18 +03:00
@$( call set,MKI_VER_OPTIMAL,0.2.17) # for EFI_BOOTARGS
@$( call try,EFI_BOOTLOADER,grub-efi) # default one
@$( call xport,EFI_BOOTLOADER)
2012-12-26 17:21:24 +04:00
@$( call add,THE_LISTS,$( EFI_LISTS) )
2019-05-29 19:09:18 +03:00
i f e q ( d i s t r o , $( IMAGE_CLASS ) )
@$( call add,RESCUE_LISTS,$( EFI_LISTS) )
2013-02-05 13:58:01 +04:00
@$( call add,INSTALL2_PACKAGES,dosfstools fatresize)
2020-12-24 17:36:19 +03:00
@$( call add,STAGE1_KCONFIG,EFI EFI_PARTITION FB_EFI)
2015-03-07 02:12:21 +03:00
@$( call add,EFI_BOOTARGS,$$ ( STAGE2_BOOTARGS) )
2019-07-02 21:53:22 +03:00
i f e q ( x 8 6 _ 6 4 , $( ARCH ) )
@$( call add,RESCUE_PACKAGES,refind $$ ( EFI_SHELL) $$ ( EFI_BOOTLOADER) )
2020-09-14 19:56:18 +03:00
@$( call add,THE_PACKAGES,$$ ( EFI_SHELL) )
2019-07-02 21:53:22 +03:00
e n d i f
2019-05-29 19:09:18 +03:00
e n d i f
2013-01-10 01:09:55 +04:00
2019-05-29 19:09:18 +03:00
use/efi/grub : use /efi use /bootloader /grub
@$( call set,EFI_BOOTLOADER,grub-efi)
i f e q ( x 8 6 _ 6 4 , $( ARCH ) )
2019-07-11 19:33:45 +03:00
use/efi/shell : use /efi
@$( call try,EFI_SHELL,efi-shell)
2019-05-29 19:09:18 +03:00
2019-07-02 21:53:22 +03:00
use/efi/signed : use /efi
@$( call set,EFI_CERT,altlinux)
@$( call add,COMMON_PACKAGES,shim-signed)
@$( call add,RESCUE_PACKAGES,openssl pesign)
2019-05-29 19:09:18 +03:00
use/efi/lilo : use /efi use /bootloader /lilo
@$( call set,EFI_BOOTLOADER,elilo)
use/efi/refind : use /efi
@$( call set,EFI_BOOTLOADER,refind)
2020-01-05 17:04:02 +03:00
use/efi/memtest86 : use /efi
2013-12-18 01:46:08 +04:00
@$( call set,EFI_MEMTEST86,efi-memtest86)
2019-05-29 19:09:18 +03:00
e l s e
2019-07-11 19:33:45 +03:00
u s e / e f i / s i g n e d u s e / e f i / s h e l l \
use/efi/refind use/efi/memtest86 use/efi/lilo: use/efi; @:
2019-05-29 19:09:18 +03:00
e n d i f
i f e q ( d i s t r o , $( IMAGE_CLASS ) )
2012-10-30 23:08:23 +04:00
use/efi/debug : use /efi
@$( call add,STAGE2_PACKAGES,efibootmgr gdisk)
2019-05-29 19:09:18 +03:00
e l s e
use/efi/debug : use /efi ; @:
e n d i f
2012-12-18 18:18:58 +04:00
e l s e
# ignore on an unsupported target arch but make it hybrid at least
2019-11-01 19:51:25 +03:00
u s e / e f i u s e / e f i / s i g n e d u s e / e f i / d e b u g u s e / e f i / g r u b u s e / e f i / l i l o \
2017-01-29 15:58:46 +03:00
use/efi/refind use/efi/shell use/efi/memtest86: use/isohybrid; @:
2012-12-18 18:18:58 +04:00
e n d i f