2016-04-01 13:51:18 +02:00
# Makefile for boot module
2013-06-03 14:12:40 -04:00
#
# Copyright (C) 2013 Colin Walters <walters@verbum.org>
#
2018-01-30 20:26:26 +01:00
# SPDX-License-Identifier: LGPL-2.0+
#
2013-06-03 14:12:40 -04:00
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
if BUILDOPT_DRACUT
# Not using $(libdir) here is intentional, dracut modules go in prefix/lib
dracutmoddir = $(prefix)/lib/dracut/modules.d/98ostree
2013-10-22 22:04:32 +02:00
dracutmod_SCRIPTS = src/boot/dracut/module-setup.sh
2016-04-28 11:34:27 -04:00
endif
if BUILDOPT_DRACUT_CONF
2013-06-03 14:12:40 -04:00
dracutconfdir = $(sysconfdir)/dracut.conf.d
2013-10-22 22:04:32 +02:00
dracutconf_DATA = src/boot/dracut/ostree.conf
endif
if BUILDOPT_MKINITCPIO
mkinitcpioinstalldir = $(prefix)/lib/initcpio/install
mkinitcpioinstall_SCRIPTS = src/boot/mkinitcpio/ostree
mkinitcpioconfdir = $(sysconfdir)
mkinitcpioconf_DATA = src/boot/mkinitcpio/ostree-mkinitcpio.conf
endif
if BUILDOPT_SYSTEMD
systemdsystemunit_DATA = src/boot/ostree-prepare-root.service \
2018-09-28 14:30:38 -04:00
src/boot/ostree-remount.service \
src/boot/ostree-finalize-staged.service \
src/boot/ostree-finalize-staged.path \
$(NULL)
2017-08-17 14:00:08 -04:00
systemdtmpfilesdir = $(prefix)/lib/tmpfiles.d
2017-08-22 18:33:57 +01:00
dist_systemdtmpfiles_DATA = src/boot/ostree-tmpfiles.conf
2016-06-27 13:06:23 -07:00
# Allow the distcheck install under $prefix test to pass
AM_DISTCHECK_CONFIGURE_FLAGS += --with-systemdsystemunitdir='$${libdir}/systemd/system'
2013-06-03 14:12:40 -04:00
endif
2016-04-01 13:51:18 +02:00
if !BUILDOPT_BUILTIN_GRUB2_MKCONFIG
# We're using the system grub2-mkconfig generator
2016-04-08 10:28:17 -04:00
pkglibexec_SCRIPTS += src/boot/grub2/grub2-15_ostree
2014-10-11 08:59:06 -04:00
install-grub2-config-hook:
mkdir -p $(DESTDIR)$(grub2configdir)
2016-04-08 10:28:17 -04:00
ln -sf $(pkglibexecdir)/grub2-15_ostree $(DESTDIR)$(grub2configdir)/15_ostree
2014-10-11 08:59:06 -04:00
grub2configdir = $(sysconfdir)/grub.d
INSTALL_DATA_HOOKS += install-grub2-config-hook
2016-04-01 13:51:18 +02:00
else
# We're using our internal generator
2019-11-05 21:16:07 -03:00
ostree_boot_SCRIPTS += src/boot/grub2/ostree-grub-generator
2014-10-11 08:59:06 -04:00
endif
2013-10-22 22:04:32 +02:00
EXTRA_DIST += src/boot/dracut/module-setup.sh \
src/boot/dracut/ostree.conf \
2021-04-05 21:00:07 +00:00
src/boot/mkinitcpio \
2013-10-22 22:04:32 +02:00
src/boot/ostree-prepare-root.service \
2018-10-25 15:15:04 +00:00
src/boot/ostree-finalize-staged.path \
2013-10-22 22:04:32 +02:00
src/boot/ostree-remount.service \
2018-02-22 15:27:59 -05:00
src/boot/ostree-finalize-staged.service \
2016-04-01 13:51:18 +02:00
src/boot/grub2/grub2-15_ostree \
src/boot/grub2/ostree-grub-generator \
2013-07-07 21:35:15 -04:00
$(NULL)