2010-12-03 17:53:02 +03:00
# step 3: copy package lists referenced in distro configuration
# (and only those!) over to $(BUILDDIR)
2010-09-08 22:37:51 +04:00
2011-06-12 19:06:36 +04:00
i f n d e f B U I L D D I R
2012-04-10 20:08:22 +04:00
pkgdups :
@find -type f ! -name README ! -name Makefile \
| grep -v '~$$' \
| sed 's,^\./,,g' \
| xargs ../../bin/pkgdups
% :
$( error BUILDDIR not defined)
e l s e
2011-06-12 19:06:36 +04:00
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
SUFFIX := pkg/lists
TARGET := $( BUILDDIR) /$( SUFFIX)
2010-09-08 22:37:51 +04:00
2012-02-06 23:49:31 +04:00
all : $( TARGET ) $( GLOBAL_DEBUG ) $( DOTBASE ) copy -lists copy -groups
@if type -t git >& /dev/null && cd $( TARGET) ; then \
if [ -n "`git status -s`" ] ; then \
git add . && \
git commit -qam " requested $( SUFFIX) copied over " ; \
fi ; \
cd - >& /dev/null; \
fi
copy-lists :
2011-09-03 13:34:53 +04:00
@# env | sort -u | grep _LISTS | xargs cp
2010-09-08 22:37:51 +04:00
@$( foreach V, \
$( filter %_LISTS,$( sort $( .VARIABLES) ) ) , \
$( if $( filter environment% file,$( origin $V ) ) ,\
2010-12-03 17:53:02 +03:00
$( shell cp --parents -at $( TARGET) \
2010-09-14 14:18:53 +04:00
-- $( value $V ) ) ) )
2011-12-06 21:05:30 +04:00
2012-02-06 23:49:31 +04:00
copy-groups :
@if [ -n " $( THE_GROUPS) $( MAIN_GROUPS) " ] ; then \
cp -at $( TARGET) -- $( THE_GROUPS) $( MAIN_GROUPS) ; \
fi
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
# do beforehand as foreach gets expanded before recipe execution
$(TARGET) :
@mkdir -p $( TARGET)
2010-09-08 22:37:51 +04:00
2011-08-22 20:29:22 +04:00
# figure out *_LISTS variables and print them out nicely
2010-09-14 14:18:53 +04:00
debug :
2011-08-22 20:29:22 +04:00
@echo -e $( foreach V, \
2010-09-08 22:37:51 +04:00
$( filter %_LISTS,$( sort $( .VARIABLES) ) ) , \
$( if $( filter environment% file,$( origin $V ) ) ,\
2011-08-22 20:29:22 +04:00
$( shell echo '\\n"**"' $V : $( value $V ) ) ) ) '\n'
2012-04-10 20:08:22 +04:00
e n d i f