2011-07-30 15:56:56 +04:00
# TODO: invent something prettier (think "lilo+grub" -- or error out?)
# - add,BASE_PACKAGES,alterator-$* is overly additive
2012-01-22 01:16:09 +04:00
# NB: due to make target becoming having been made,
# the last different one wins
2011-07-30 15:56:56 +04:00
# - remember .base if adding yet another *_PACKAGES
2011-08-21 22:50:43 +04:00
2018-01-24 14:31:52 +03:00
# NB: "mysterious" conflicts if BASE_BOOTLOADER is empty
2019-05-29 17:20:21 +03:00
GRUB_ARCHES := i586 x86_64 aarch64 ppc64le
2018-02-07 22:35:41 +03:00
use/bootloader : use /pkgpriorities
2020-08-21 20:21:53 +03:00
i f n e q ( , $( filter -out e 2k %,$ ( ARCH ) ) )
2012-04-18 21:53:51 +04:00
@$( call add_feature)
2019-05-07 19:11:16 +03:00
@$( call try,BASE_BOOTLOADER,grub)
@$( call xport,BASE_BOOTLOADER)
@$( call add,BASE_LISTS,$$ ( BASE_BOOTLOADER) )
2019-09-05 16:20:45 +03:00
@$( call xport,BASE_BOOTARGS)
2019-05-07 19:11:16 +03:00
i f e q ( d i s t r o , $( IMAGE_CLASS ) )
2020-06-05 19:40:07 +03:00
@$( call add,BASE_PACKAGES,installer-feature-bootloader-$$ ( BASE_BOOTLOADER) )
2020-05-26 13:16:11 +03:00
@$( call add,PINNED_PACKAGES,alterator-$$ ( BASE_BOOTLOADER) )
2018-02-07 22:35:41 +03:00
@$( call add,PINNED_PACKAGES,installer-bootloader-$$ ( BASE_BOOTLOADER) -stage2)
2019-05-07 19:11:16 +03:00
e n d i f
2020-08-21 20:21:53 +03:00
e n d i f
2011-08-21 22:50:43 +04:00
2019-07-09 18:47:55 +03:00
i f e q ( , $( filter -out i 586 x 86_ 64,$ ( ARCH ) ) )
use/bootloader/lilo : \
2019-05-07 19:11:16 +03:00
use/bootloader/%: use/bootloader
2011-09-14 00:51:22 +04:00
@$( call set,BASE_BOOTLOADER,$* )
2019-10-22 04:41:31 +03:00
e l s e
use/bootloader/lilo : ; @:
2019-07-09 18:47:55 +03:00
e n d i f
i f e q ( , $( filter -out $ ( GRUB_ARCHES ) ,$ ( ARCH ) ) )
use/bootloader/grub : \
use/bootloader/%: use/bootloader
@$( call set,BASE_BOOTLOADER,$* )
2019-10-22 04:41:31 +03:00
e l s e
use/bootloader/grub : ; @:
2019-07-09 18:47:55 +03:00
e n d i f
2018-01-24 14:31:52 +03:00
2019-05-07 19:11:16 +03:00
use/bootloader/uboot : use /bootloader use /uboot
@$( call set,BASE_BOOTLOADER,uboot)
2020-08-21 20:21:53 +03:00
use/bootloader/live : use /bootloader ; @:
i f n e q ( , $( filter -out e 2k %,$ ( ARCH ) ) )
2018-01-24 14:31:52 +03:00
@$( call add,LIVE_PACKAGES,alterator-$$ ( BASE_BOOTLOADER) )
2020-08-21 20:21:53 +03:00
e n d i f
2018-08-10 13:58:29 +03:00
use/bootloader/os-prober : use /bootloader
@$( call add,BASE_PACKAGES,os-prober)