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
2012-08-10 00:32:00 +04:00
@mp-commit " $( TARGET) " " requested $( SUFFIX) copied over "
2012-02-06 23:49:31 +04:00
2015-01-20 22:31:32 +03:00
# env | sort -u | grep _LISTS | xargs cp
2012-02-06 23:49:31 +04:00
copy-lists :
2015-01-20 22:31:32 +03:00
@cp --parents -at $( TARGET) -- \
$( foreach V, \
$( filter %_LISTS,$( sort $( .VARIABLES) ) ) , \
$( if $( filter environment% file,$( origin $V ) ) ,$( $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 ) ) ,\
2013-06-03 15:43:35 +04:00
$( shell echo '\\n"**"' $V : $( $V ) ) ) ) '\n'
2012-04-10 20:08:22 +04:00
e n d i f