3f012958dc
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).
45 lines
1.0 KiB
Makefile
45 lines
1.0 KiB
Makefile
ifdef BUILDDIR
|
|
|
|
# step 3: copy the needed features to $(BUILDDIR)
|
|
# (only regarding the needed subprofiles)
|
|
|
|
-include $(BUILDDIR)/distcfg.mk
|
|
|
|
# first rsync what's static, and make backups --
|
|
# these might signal of file clashes (or plain dirt);
|
|
# then handle two more ways of implementing a feature
|
|
|
|
all:
|
|
@echo "** starting feature configuration"
|
|
@if test -n "$(DEBUG)"; then echo "** requested: $(FEATURES)"; fi
|
|
@for dir in $(FEATURES); do \
|
|
for sub in $(SUBPROFILES); do \
|
|
if test -d $$dir/$$sub/; then \
|
|
if rsync -ab $$dir/$$sub/ $(BUILDDIR)/$$sub/; \
|
|
then \
|
|
type -t git >&/dev/null && \
|
|
pushd $(BUILDDIR)/$$sub/ && \
|
|
git add . && \
|
|
git commit -qam "$@/$$dir/$$sub" ||:; \
|
|
popd; \
|
|
fi; \
|
|
fi; \
|
|
done; \
|
|
if test -x $$dir/generate.sh; then \
|
|
pushd $$dir && \
|
|
sh generate.sh; \
|
|
popd; \
|
|
fi; \
|
|
if test -s $$dir/generate.mk; then \
|
|
$(MAKE) -C $$dir -f generate.mk; \
|
|
fi; \
|
|
done
|
|
|
|
help:
|
|
@echo "** available features:"
|
|
@grep -h '^use/' */config.mk
|
|
|
|
else
|
|
$(error BUILDDIR not defined)
|
|
endif
|