2010-12-03 17:53:02 +03:00
# step 3: copy the needed subprofiles to $(BUILDDIR)
2011-06-12 19:06:36 +04:00
i f n d e f B U I L D D I R
$( error BUILDDIR not defined )
e n d i f
server-ovz; KDEFAULT; syslinux features reworked
Renamed server-light.iso into server-ovz.iso to avoid brand dilution
and confusion (rider@'s server-light rather favours kvm, anyways).
Introduced KDEFAULT: a reliable default kernel chooser knob
since apt's regex ordering proved pretty unreliable.
Spelling things explicitly is better anyways.
SYSLINUX related features undergone pretty major rewrite
(that includes syslinux, hdt and memtest).
The problem to tackle was features.in/syslinux/generate.mk
assuming syslinux and pciids available in build *host* system;
this well might not be the case (or worse yet, those can be
just different). So now we're a bit less elegant and a bit
more enterprise, stuffing things into chroot and working there.
Bunch of other fixes along the road, including ; to name a few:
- fixed memtest entry (overlooked while renaming SYSLINUX_ITEMS)
- new and shiny doc/CodingStyle
- gfxboot, stage1 target chain, hdt tweaks
- distro.mk rehashed
- README++
- TODO: dropped (integer overflow anyways)
+ actually moved off-tree to reduce commit spam
- s,\.config\.mk,distcfg.mk,g
- doc/profiles.mk.sample: sample ~/.mkimage/profiles.mk
- ...and assorted fixups/additions
Sorry for convoluted commit, this would have been pretty hard to
rework into some really readable shape (and you might be interested
in the original repo's history horrors then, anyways).
2011-05-31 02:05:33 +04:00
i n c l u d e $( BUILDDIR ) / d i s t c f g . m k
2010-09-09 13:50:29 +04:00
2011-08-20 13:55:05 +04:00
# if the subprofile is specified in src/dst notation,
# take src/ and put it as dst/ (for stage2 variants)
2013-05-28 12:51:36 +04:00
# NB: rootfs may come in first
2010-09-09 13:50:29 +04:00
all :
2011-08-20 13:55:05 +04:00
@for sub in $( SUBPROFILES) ; do \
2012-07-10 13:20:15 +04:00
src = " $$ {sub%@*} " && \
dst = " $$ {sub#*@} " && \
2011-08-22 20:29:22 +04:00
neq = " $$ {src# $$ dst} " && \
2013-05-28 12:51:36 +04:00
dstdir = "" $( BUILDDIR) /$$ dst/"" && \
if [ -d " $$ dstdir " ] ; then \
action = "complemented" ; \
else \
action = "initialized" ; \
fi ; \
2011-10-20 19:44:15 +04:00
rsync -qa " $$ src/ " " $( BUILDDIR) / $$ dst/ " && \
2012-08-10 00:32:00 +04:00
mp-commit " $( BUILDDIR) / $$ dst/ " \
2013-05-28 12:51:36 +04:00
" $$ dst subprofile $$ action $$ {neq:+ (using $$ src)} " ; \
2011-08-20 13:55:05 +04:00
done
2010-09-09 13:50:29 +04:00
clean :
2011-08-20 13:55:05 +04:00
@for sub in $( SUBPROFILES) ; do \
2012-07-10 13:20:15 +04:00
dst = " ${ sub #*@ } " && \
2011-08-22 20:29:22 +04:00
if [ -n " $$ dst " -a -n " $( BUILDDIR) " ] ; then \
rm -r " $( BUILDDIR) / $$ dst " && \
2011-08-20 13:55:05 +04:00
mkdir -p " $( BUILDDIR) / $$ dst " ; \
server-ovz; KDEFAULT; syslinux features reworked
Renamed server-light.iso into server-ovz.iso to avoid brand dilution
and confusion (rider@'s server-light rather favours kvm, anyways).
Introduced KDEFAULT: a reliable default kernel chooser knob
since apt's regex ordering proved pretty unreliable.
Spelling things explicitly is better anyways.
SYSLINUX related features undergone pretty major rewrite
(that includes syslinux, hdt and memtest).
The problem to tackle was features.in/syslinux/generate.mk
assuming syslinux and pciids available in build *host* system;
this well might not be the case (or worse yet, those can be
just different). So now we're a bit less elegant and a bit
more enterprise, stuffing things into chroot and working there.
Bunch of other fixes along the road, including ; to name a few:
- fixed memtest entry (overlooked while renaming SYSLINUX_ITEMS)
- new and shiny doc/CodingStyle
- gfxboot, stage1 target chain, hdt tweaks
- distro.mk rehashed
- README++
- TODO: dropped (integer overflow anyways)
+ actually moved off-tree to reduce commit spam
- s,\.config\.mk,distcfg.mk,g
- doc/profiles.mk.sample: sample ~/.mkimage/profiles.mk
- ...and assorted fixups/additions
Sorry for convoluted commit, this would have been pretty hard to
rework into some really readable shape (and you might be interested
in the original repo's history horrors then, anyways).
2011-05-31 02:05:33 +04:00
fi ; \
2010-09-09 13:50:29 +04:00
done