2011-03-31 13:47:30 +00:00
|
|
|
#
|
|
|
|
# The Qubes OS Project, http://www.qubes-os.org
|
|
|
|
#
|
|
|
|
# Copyright (C) 2011 Tomasz Sterna <tomek@xiaoka.com>
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2015-08-02 10:44:51 +00:00
|
|
|
ISO_INSTALLER ?= 1
|
|
|
|
ISO_LIVEUSB ?= 0
|
2011-03-31 13:47:30 +00:00
|
|
|
|
2013-01-24 00:01:06 +00:00
|
|
|
PUNGI_OPTS := --nosource --nodebuginfo --nogreedy --all-stages
|
2012-11-15 10:57:49 +00:00
|
|
|
ifdef QUBES_RELEASE
|
2013-01-26 21:19:09 +00:00
|
|
|
ISO_VERSION := $(QUBES_RELEASE)
|
|
|
|
PUNGI_OPTS += --isfinal
|
|
|
|
else
|
|
|
|
ISO_VERSION := $(shell date +%Y%m%d)
|
2012-11-13 04:18:13 +00:00
|
|
|
endif
|
2013-01-26 21:19:09 +00:00
|
|
|
PUNGI_OPTS += --ver="$(ISO_VERSION)"
|
2012-11-13 04:18:13 +00:00
|
|
|
|
2016-05-24 11:40:53 +00:00
|
|
|
INSTALLER_KICKSTART ?= $(PWD)/conf/qubes-kickstart.cfg
|
|
|
|
LIVE_KICKSTART ?= $(PWD)/conf/liveusb.ks
|
|
|
|
|
2011-03-31 13:47:30 +00:00
|
|
|
help:
|
2015-09-29 01:22:19 +00:00
|
|
|
@echo "make iso <== \o/";\
|
2011-04-04 18:05:40 +00:00
|
|
|
echo; \
|
|
|
|
echo "make clean";\
|
|
|
|
echo; \
|
2011-03-31 13:47:30 +00:00
|
|
|
exit 0;
|
|
|
|
|
2015-09-29 01:22:19 +00:00
|
|
|
.PHONY: clean clean-repos iso iso-prepare iso-installer iso-liveusb
|
2011-03-31 13:47:30 +00:00
|
|
|
|
2015-08-02 10:44:51 +00:00
|
|
|
ifeq ($(ISO_INSTALLER),1)
|
|
|
|
iso: iso-installer
|
|
|
|
endif
|
|
|
|
ifeq ($(ISO_LIVEUSB),1)
|
|
|
|
iso: iso-liveusb
|
|
|
|
endif
|
2012-12-09 22:54:24 +00:00
|
|
|
|
2015-08-02 10:44:51 +00:00
|
|
|
iso-prepare:
|
|
|
|
ln -nsf `pwd` /tmp/qubes-installer
|
2015-04-15 12:22:56 +00:00
|
|
|
createrepo -q -g ../../conf/comps-qubes.xml --update yum/qubes-dom0
|
2015-08-02 10:44:51 +00:00
|
|
|
|
|
|
|
iso-installer: iso-prepare
|
2013-02-19 21:33:03 +00:00
|
|
|
mkdir -p work
|
2016-05-24 11:40:53 +00:00
|
|
|
pushd work && pungi --name=Qubes $(PUNGI_OPTS) -c $(INSTALLER_KICKSTART) && popd
|
2013-01-26 21:19:09 +00:00
|
|
|
# Move result files to known-named directories
|
2017-01-10 12:34:07 +00:00
|
|
|
mkdir -p build/ISO/qubes-x86_64/iso
|
2015-03-23 19:01:27 +00:00
|
|
|
mv work/$(ISO_VERSION)/x86_64/iso/*-DVD*.iso build/ISO/qubes-x86_64/iso/
|
2017-01-10 12:34:07 +00:00
|
|
|
rm -rf build/work
|
|
|
|
mv work build/work
|
2015-04-15 12:22:56 +00:00
|
|
|
chown --reference=Makefile -R build yum
|
2013-02-19 21:33:03 +00:00
|
|
|
rm -rf work
|
2011-04-04 18:05:40 +00:00
|
|
|
|
2016-05-24 11:40:53 +00:00
|
|
|
iso-liveusb: $(LIVE_KICKSTART) iso-prepare
|
2015-08-01 21:18:48 +00:00
|
|
|
mkdir -p work
|
2016-09-22 03:38:49 +00:00
|
|
|
pushd work && ../livecd-creator-qubes --debug --product='Qubes OS' --title="Qubes OS $(ISO_VERSION)" --fslabel="Qubes-$(ISO_VERSION)-x86_64-LIVE" --config $(LIVE_KICKSTART) && popd
|
2015-08-01 21:18:48 +00:00
|
|
|
# Move result files to known-named directories
|
|
|
|
mkdir -p build/ISO/qubes-x86_64/iso build/work
|
|
|
|
mv work/*.iso build/ISO/qubes-x86_64/iso/
|
|
|
|
chown --reference=Makefile -R build yum
|
|
|
|
rm -rf work
|
|
|
|
|
2012-11-19 16:50:15 +00:00
|
|
|
clean-repos:
|
|
|
|
@echo "--> Removing old rpms from the installer repos..."
|
|
|
|
@(cd yum && ./clean_repos.sh)
|
|
|
|
|
2011-04-04 18:05:40 +00:00
|
|
|
clean:
|
2012-11-27 14:09:30 +00:00
|
|
|
sudo rm -fr build/*
|
2015-09-29 01:24:01 +00:00
|
|
|
|
2017-03-02 15:53:20 +00:00
|
|
|
ifeq ($(ISO_LIVEUSB),1)
|
2015-09-29 01:24:01 +00:00
|
|
|
get-sources:
|
|
|
|
$(MAKE) -C livecd-tools get-sources
|
|
|
|
|
|
|
|
verify-sources:
|
|
|
|
$(MAKE) -C livecd-tools verify-sources
|
2017-03-02 15:53:20 +00:00
|
|
|
endif
|