.PHONY: _format _mount _sparse _umount _partcopy _mbr
ARCH := amd64
-KEYRING := keys/debian-archive-stretch-stable.gpg
BOOTSTRAP := http://cdn.debian.net/debian
PACKAGES := ${PACKAGES} apt busybox-static debian-archive-keyring init systemd
include ${config}
endif
-ifndef release
+ifdef release
+ KEYRING := keys/debian-archive-${release}-stable.gpg
+else
release := stretch
+ KEYRING := keys/debian-archive-stretch-stable.gpg
endif
define SOURCES :=
_config: _copy _squash_modules
_squash: _config
+else ifdef iso
+ ISO := iso
+ SQUASH := rootfs.squash
+ SYSROOT := sys_root_${release}/
+ CFGROOT := cfg_root/
+
+ PACKAGES += squashfs-tools
+
+ _target: _isohybrid _install _config
+
+ _bootstrap:
+ _install: _bootstrap
+ _copy: _install
+ _config: _copy _squash_modules
+ _squash: _config
+ _isohybrid: _squash
+
else ifdef raspi
VOLUME := ${raspi}
PBOOT := rpi_boot.img