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
33 lines
905 B
Makefile
33 lines
905 B
Makefile
# this makefile is designed to be included in toplevel one
|
|
ifndef BUILDDIR
|
|
$(error BUILDDIR not defined)
|
|
endif
|
|
|
|
# step 4 is kicked off here but actually done by image.in/Makefile
|
|
#
|
|
# adding boot/isolinux to prereqs is too late here,
|
|
# since profile/populate target is already done by now
|
|
#
|
|
# NB: /usr/bin/{i586,x86_64} are setarch(8) symlinks
|
|
|
|
iso:
|
|
@echo -n "** starting image build"
|
|
@if test -n "$(DEBUG)"; then \
|
|
echo ": see $(BUILDLOG)"; \
|
|
else \
|
|
echo " (coffee time)"; \
|
|
fi
|
|
@if time $(ARCH) \
|
|
$(MAKE) -C $(BUILDDIR)/ GLOBAL_BUILDDIR=$(BUILDDIR) $(LOG); \
|
|
then \
|
|
echo "** build done (`tail -2 $(BUILDLOG) \
|
|
| sed -n 's,^.* \([0-9:]\+\)\...elapsed.*$$,\1,p' \
|
|
|| echo "no log"`)"; \
|
|
else \
|
|
echo "** build failed, see log: $(BUILDLOG)"; \
|
|
if test -z "$(DEBUG)"; then \
|
|
echo " (you might want to re-run with DEBUG=1)"; \
|
|
fi; \
|
|
tail -100 "$(BUILDLOG)" | grep "^E:"; \
|
|
fi
|