distro.mk 1.02 KB
Newer Older
1 2 3 4
# step 2: build up distribution's configuration

ifndef MKIMAGE_PROFILES
$(error this makefile is designed to be included in toplevel one)
5
endif
6

7
ifeq (distro,$(IMAGE_CLASS))
8

9 10 11
# request particular image subprofile inclusion
sub/%:
	@$(call add,SUBPROFILES,$(@:sub/%=%))
Michael Shigorin's avatar
Michael Shigorin committed
12

13 14 15
# install media bootloader
boot/%: profile/bare use/syslinux
	@$(call set,BOOTLOADER,$*)
16

17
# fundamental targets
Michael Shigorin's avatar
Michael Shigorin committed
18

19 20 21 22 23 24 25 26 27
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 \
28
	use/syslinux use/syslinux/localboot.cfg \
29 30
	use/syslinux/ui-vesamenu use/hdt use/memtest

31
# something marginally useful (as a network-only installer)
32
# NB: doesn't carry stage3 thus cannot use/bootloader
33
distro/installer: distro/.base use/install2
34
	@$(call set,INSTALLER,altlinux-generic)
35
	@$(call set,STAGE1_KMODULES_REGEXP,drm.*)	# for KMS
36

37
endif