boot.mk: factor out boot/% from distro.mk
Yes these bits are related to distro/ prefixed images still the overgeneralization in distro.mk didn't pay off but rather hid a bug with the only boot/isolinux in use having no dependency on use/syslinux (which is required). Maybe this will get revisited when we have other kinds of bootable images with other bootloaders (vm/ ones care for themselves as of today).
This commit is contained in:
parent
d0228a5380
commit
b2cfbc3f1f
9
lib/boot.mk
Normal file
9
lib/boot.mk
Normal file
@ -0,0 +1,9 @@
|
||||
ifndef MKIMAGE_PROFILES
|
||||
$(error this makefile is designed to be included in toplevel one)
|
||||
endif
|
||||
|
||||
ifeq (distro,$(IMAGE_CLASS))
|
||||
# install media bootloader
|
||||
boot/isolinux: use/syslinux
|
||||
@$(call set,BOOTLOADER,isolinux)
|
||||
endif
|
@ -5,11 +5,6 @@ $(error this makefile is designed to be included in toplevel one)
|
||||
endif
|
||||
|
||||
ifeq (distro,$(IMAGE_CLASS))
|
||||
|
||||
# install media bootloader
|
||||
boot/%:
|
||||
@$(call set,BOOTLOADER,$*)
|
||||
|
||||
# fundamental targets
|
||||
|
||||
distro/.init: profile/bare
|
||||
|
Loading…
Reference in New Issue
Block a user