2011-08-20 12:55:05 +03:00
# step 4: build a stage2 subprofile (custom livecd)
# NB: stage2 is not standalone but rather a common base
# for all livecd images (installer, live, rescue)
2011-08-18 22:56:12 +03:00
i f n d e f G L O B A L _ B U I L D D I R
$( error GLOBAL_BUILDDIR not defined )
e n d i f
default : all
i n c l u d e $( GLOBAL_BUILDDIR ) / d i s t c f g . m k
i n c l u d e $( GLOBAL_BUILDDIR ) / f u n c t i o n s . m k
i n c l u d e $( MKIMAGE_PREFIX ) / c o n f i g . m k
# this might have been prepared by ../stage1/scripts.d/03-test-kernel
- i n c l u d e $( GLOBAL_BUILDDIR ) / s q u a s h c f g . m k
2011-08-20 12:55:05 +03:00
# this should be brought in by corresponding specific stage2 feature
i n c l u d e s t a g e 2 c f g . m k
2011-09-03 12:34:53 +03:00
# requisite stuff
IMAGE_PACKAGES += $( SYSTEM_PACKAGES)
2011-08-18 22:56:12 +03:00
# here we also try and come up with the stage1 kernel/modules, if any;
# no kernel flavour specified will result in no modules for stage1 vmlinuz
STAGE1_KFLAVOUR ?= $( lastword $( KFLAVOURS) )
2011-10-06 11:46:31 +03:00
i f e q ( , $( STAGE 1_KFLAVOUR ) )
2011-08-18 22:56:12 +03:00
$( error STAGE 1_KFLAVOUR is utterly empty ; cannot guess either )
e n d i f
# need kernel modules only (which require corresponding kernel-image);
# these go into work chroot; NB: no vmlinuz there
2011-12-19 21:28:42 +02:00
IMAGE_PACKAGES_REGEXP = $( call kpackages, \
$( STAGE1_KMODULES) $( STAGE2_KMODULES) , \
$( STAGE1_KFLAVOUR) )
2011-08-18 22:56:12 +03:00
i n c l u d e $( MKIMAGE_PREFIX ) / t a r g e t s . m k
2011-09-13 19:39:31 +03:00
# NB: it's a collector variable, add()ing to a GLOBAL_ results in lost hair
GLOBAL_CLEANUP_PACKAGES := $( CLEANUP_PACKAGES)
2011-08-18 22:56:12 +03:00
all : | $( GLOBAL_DEBUG ) build -image run -image -scripts pack -image \
$( GLOBAL_CLEAN_WORKDIR)
2011-09-13 19:39:31 +03:00
# dummy
2011-10-22 23:02:22 +03:00
debug :: ;