2010-09-09 13:50:29 +04:00
# build up distribution's configuration
2010-09-22 01:58:24 +04:00
#
# NB: distro/ targets should be defined here,
# see toplevel Makefile's $(DISTRO) assignment
2010-08-28 20:28:42 +04:00
CONFIG = $( BUILDDIR) /.config.mk
2010-09-09 13:50:29 +04:00
# source initial feature snippets
- i n c l u d e f e a t u r e s . i n / * / c o n f i g . m k
2010-09-13 18:22:05 +04:00
# put(), add(), set(), tags()
2010-09-14 09:44:35 +04:00
#
# package list names are considered relative to pkg/lists/
2010-09-08 22:37:51 +04:00
#
# $(VAR) will be substituted before writing them to $(CONFIG);
# $$(VAR) will remain unsubstituted util $(CONFIG) is included
# and their value requested (so the variable referenced
# can change its value during configuration _before_
# it's actually used)
#
2010-09-14 09:44:35 +04:00
# tags can do boolean expressions: (tag1 && !(tag2 || tag3))
i n c l u d e f u n c t i o n s . m k
# request particular image subprofile inclusion
sub/% :
2010-09-18 18:46:32 +04:00
@$( call add,SUBPROFILES,$( @:sub/%= %) )
2010-09-08 22:37:51 +04:00
2010-09-27 23:02:57 +04:00
# initalize config from scratch, put some sane defaults in
distro/.init :
2010-08-28 20:28:42 +04:00
@echo "** starting distro configuration build process"
2010-09-27 23:02:57 +04:00
@$( call try,MKIMAGE_PREFIX,/usr/share/mkimage)
@$( call try,GLOBAL_VERBOSE,)
2010-09-13 18:22:05 +04:00
2010-09-27 23:02:57 +04:00
distro/.base : distro /.init sub /stage 1 use /syslinux use /syslinux /localboot .cfg
2010-09-18 18:46:32 +04:00
@$( call set,KFLAVOUR,std-def)
@$( call set,IMAGE_INIT_LIST,+branding-$$ ( BRANDING) -release)
@$( call set,BRANDING,altlinux-desktop) ###
@$( call set,KERNEL_PACKAGES,kernel-image-$$ ( KFLAVOUR) )
2010-08-28 20:28:42 +04:00
2010-09-27 23:02:57 +04:00
distro/installer : distro /.base sub /install 2 use /syslinux /install 2.cfg
2010-08-28 20:28:42 +04:00
@#$( call put,BRANDING= altlinux-sisyphus) ###
2010-09-18 18:46:32 +04:00
@$( call set,BASE_LISTS,base kernel)
@$( call set,INSTALL2_PACKAGES,installer-distro-server-light-stage2) ###
2010-08-24 13:48:35 +04:00
2010-09-18 18:46:32 +04:00
distro/server-base : distro /installer sub /main use /syslinux /ui -menu use /memtest
@$( call add,BASE_LISTS,server-base kernel-server)
2010-08-24 13:48:35 +04:00
2010-09-14 14:18:53 +04:00
distro/server-light : distro /server -base use /hdt
2010-09-18 18:46:32 +04:00
@$( call set,KFLAVOUR,ovz-smp) # override default
@$( call set,BRANDING,sisyphus-server-light)
@$( call add,DISK_LISTS,kernel-wifi)
@$( call add,BASE_LISTS,$( call tags,base server) )
@$( call add,GROUPS,dns-server http-server ftp-server kvm-server)
@$( call add,GROUPS,ipmi mysql-server dhcp-server mail-server)
@$( call add,GROUPS,monitoring diag-tools)
2010-09-27 23:02:57 +04:00
distro/minicd : distro /server -base
@$( call set,KFLAVOUR,std-ng) # we might need the most recent drivers
@$( call add,MAIN_PACKAGES,etcnet-full)
@$( call set,BRANDING,sisyphus-server-light)
2010-09-18 18:46:32 +04:00
# bootloader test target
2010-09-27 23:02:57 +04:00
distro/syslinux : distro /.base use /syslinux /ui -gfxboot use /hdt use /memtest
# pick up release manager's config (TODO: distro-specific include as well?)
distro/.metaconf :
@if [ -s $( HOME) /.mkimage/metaconf.mk ] ; then \
$( call put,-include $( HOME) /.mkimage/metaconf.mk) ; \
fi
2010-09-18 18:46:32 +04:00
2010-09-27 23:02:57 +04:00
boot/% : distro /.init
2010-09-18 18:46:32 +04:00
@$( call set,BOOTLOADER,$* )