e8306860f1
This was asked for by Leo-sp50 and torabora, and seems quite reasonable: let's provide means to keep at least some distribution configurations a bit apart, so that these can be considered more standalone in terms of hard warranted functionality but at the same time enjoying the common infrastructure. Considering lib/distro.mk: it's now experimentally pulled apart so that parallel development of different distro families can go on without major merge hassles. *Please* don't abuse with massive copy-paste. And before you ask: this might get extended to allow for "private" out-of-tree configurations being included since apparently there are goals with no meaning outside of some very particular context... but otherwise I'd like to encourage getting reusable bits in-tree.
38 lines
1.0 KiB
Makefile
38 lines
1.0 KiB
Makefile
# step 2: build up distribution's configuration
|
|
|
|
ifndef MKIMAGE_PROFILES
|
|
$(error this makefile is designed to be included in toplevel one)
|
|
endif
|
|
|
|
ifeq (distro,$(IMAGE_CLASS))
|
|
|
|
# request particular image subprofile inclusion
|
|
sub/%:
|
|
@$(call add,SUBPROFILES,$(@:sub/%=%))
|
|
|
|
# install media bootloader
|
|
boot/%: profile/bare use/syslinux
|
|
@$(call set,BOOTLOADER,$*)
|
|
|
|
# fundamental targets
|
|
|
|
distro/.init: profile/bare
|
|
|
|
# NB: the last flavour in KFLAVOURS gets to be the default one;
|
|
# the kernel packages regexp evaluation has to take place at build stage
|
|
distro/.base: distro/.init use/syslinux/localboot.cfg
|
|
@$(call set,KFLAVOURS,std-def)
|
|
|
|
# bootloader test target
|
|
distro/syslinux: distro/.init \
|
|
use/syslinux use/syslinux/localboot.cfg \
|
|
use/syslinux/ui-vesamenu use/hdt use/memtest
|
|
|
|
# something marginally useful (as a network-only installer)
|
|
# NB: doesn't carry stage3 thus cannot use/bootloader
|
|
distro/installer: distro/.base use/install2
|
|
@$(call set,INSTALLER,altlinux-generic)
|
|
@$(call set,STAGE1_KMODULES_REGEXP,drm.*) # for KMS
|
|
|
|
endif
|