c2f70e5c10
- image.in/functions.mk: rework kpackage() + it takes two arguments explicitly now: this adds some noise for "generic" invocations but is rather less messy with recently introduced STAGE1_KFLAVOUR (which in its turn is rather cleaner than messing with KFLAVOURS, especially since soemthing changed in presumably apt and we can't rely on kernel packages being installed in the order formed). - BUILDDIR/DEBUG related fixes + Makefile: BUILDDIR initialization moved to distro.mk - build.log += git info
43 lines
1.0 KiB
Makefile
43 lines
1.0 KiB
Makefile
# step 3: copy the needed features to $(BUILDDIR)
|
|
# (only regarding the needed subprofiles)
|
|
|
|
ifndef BUILDDIR
|
|
$(error BUILDDIR not defined)
|
|
endif
|
|
|
|
-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 "$(GLOBAL_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
|