do_tools=false
disable_d_i=true
do_zfs=false
+ do_zfs_disable:=$(shell cat $(DROOT)/zfs-modules.ignore >>$(prev_abidir)/../modules.ignore)
endif
# Stages -- support both DEB_STAGE=stage1 and DEB_BUILD_PROFILE=bootstrap
# autopkgtest -- rebuild support
# only build the first flavour on the assumption it is representative
-ifeq ($(DEB_BUILD_PROFILE),autopkgtest)
+ifneq ($(filter autopkgtest,$(DEB_BUILD_PROFILES)),)
flavours := $(firstword $(flavours))
endif
# d-i stuff
rm -rf $(DEBIAN)/d-i-$(arch)
# Generated on the fly.
- rm -f $(DEBIAN)/d-i/firmware/kernel-image
+ rm -f $(DEBIAN)/d-i/firmware/$(arch)/kernel-image
# normal build junk
rm -rf $(DEBIAN)/abi/$(release)-$(revision)