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
2016-04-07 17:06:33 +03:00
i n c l u d e $( BUILDDIR ) / f u n c t i o n s . m k
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
SUFFIX := pkg/lists
TARGET := $( BUILDDIR) /$( SUFFIX)
2010-09-08 22:37:51 +04:00
2016-03-23 13:56:33 +03:00
all : | $( TARGET ) $( GLOBAL_DEBUG ) copy -lists copy -groups grep -archdep
2012-08-10 00:32:00 +04:00
@mp-commit " $( TARGET) " " requested $( SUFFIX) copied over "
2012-02-06 23:49:31 +04:00
2015-02-08 01:32:45 +03:00
# env | sort -u | grep _LISTS | xargs -r cp -t
2012-02-06 23:49:31 +04:00
copy-lists :
2015-02-08 01:32:45 +03:00
@echo $( foreach V, \
$( filter %_LISTS,$( sort $( .VARIABLES) ) ) , \
$( if $( filter environment% file,$( origin $V ) ) ,$( $V ) ) ) \
| xargs -r -- cp --parents -at $( TARGET) --
2011-12-06 21:05:30 +04:00
2016-04-07 17:06:33 +03:00
copy-groups : PKGDIR = ..
2012-02-06 23:49:31 +04:00
copy-groups :
2016-04-07 17:06:33 +03:00
@echo $( call groups2lists) \
| xargs -r -- cp --parents -at $( TARGET) --
2012-02-06 23:49:31 +04:00
2015-01-22 18:27:07 +03:00
grep-archdep : a = $( ARCH )
grep-archdep :
2016-04-07 17:06:33 +03:00
@# xargs -L 1024 -n 1024 ? -- breaks -I
2015-01-22 18:27:07 +03:00
@find $( TARGET) -type f \
| xargs -I '__' sh -c ' \
sed -rni " s/\\<([^@ ]*)\\>|\\<([^@ ]*)@ $a \\>/\\1\\2/pg " __; \
sed -i -r "s/\\<([^@ ]*)@[^@ ]+\\> *//g" __'
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