2010-08-28 19:28:42 +03:00
### build up distribution's configuration
CONFIG = $( BUILDDIR) /.config.mk
2010-09-08 18:19:23 +03:00
# NB: don"t use ANY quotes ('/") for put() arguments!
# shell will get confused by ' or args get spammed with "
2010-08-28 19:28:42 +03:00
put = $( and $( 1) ,$( put_body) )
d e f i n e p u t _ b o d y
2010-09-08 21:37:51 +03:00
@ p r i n t f '%s\n' '$(1)#=- $@' > > "$(CONFIG)"
2010-08-28 19:28:42 +03:00
e n d e f
2010-09-08 21:37:51 +03:00
tags = $( shell echo " $( 1) " | bin/tags2lists)
2010-08-28 19:28:42 +03:00
# request particular image subprofile inclusion
2010-08-24 12:48:35 +03:00
sub/% :
2010-08-28 19:28:42 +03:00
$( call put,SUBPROFILES+= $( @:sub/%= %) )
2010-08-24 12:48:35 +03:00
2010-09-08 21:37:51 +03:00
# package list names are relative to pkg/lists/
#
# $(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)
#
# tags do boolean expressions: (tag1 && !(tag2 || tag3))
2010-08-24 12:48:35 +03:00
init :
2010-08-28 19:28:42 +03:00
@echo "** starting distro configuration build process"
:> $( CONFIG)
2010-09-08 15:47:06 +03:00
$( call put,KFLAVOUR= std-def) ###
2010-08-28 19:28:42 +03:00
$( call put,IMAGE_INIT_LIST= +branding-$$ ( BRANDING) -release)
2010-09-08 18:19:23 +03:00
@#$( call put,STAGE1_PACKAGES= kernel-image-$$ ( KFLAVOUR) )
2010-09-08 15:47:06 +03:00
$( call put,KERNEL_PACKAGES= kernel-image-$$ ( KFLAVOUR) )
2010-08-28 19:28:42 +03:00
# NB: our */* are phony targets really, just for namespace
distro/installer : init sub /install 2
@#$( call put,BRANDING= altlinux-sisyphus) ###
$( call put,BASE_LISTS= base kernel)
2010-09-08 15:47:06 +03:00
$( call put,INSTALL2_PACKAGES= installer-distro-server-light-stage2) ###
2010-08-24 12:48:35 +03:00
2010-08-28 19:28:42 +03:00
distro/server-base : distro /installer sub /main use /memtest 86
$( call put,BASE_LISTS+= server-base kernel-server)
2010-08-24 12:48:35 +03:00
2010-09-08 15:47:06 +03:00
distro/server-light : distro /server -base use /bootsplash
$( call put,KFLAVOUR= ovz-smp) # override default
2010-08-28 19:28:42 +03:00
$( call put,BRANDING= sisyphus-server-light)
$( call put,DISK_LISTS+= kernel-wifi)
2010-09-08 21:37:51 +03:00
$( call put,BASE_LISTS+= $( call tags,base server) )
2010-08-24 12:48:35 +03:00
2010-08-28 19:28:42 +03:00
use/memtest86 :
$( call put,COMMON_PACKAGES+= memtest86+)
@# configure syslinux/isolinux as well
2010-09-08 15:47:06 +03:00
use/bootsplash :
$( call put,COMMON_TAGS+= bootsplash)