mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
The dracut installation directory is referenced from `chreipl-fcp-mpath`, `zdev`, and `zipl`; in each with its own individual definition and variable name. This makes it unnecessarily hard to change it when installing from the top level directory of s390-tools and passing variable overwrites via the command line. Fix this by defining a common `DRACUTDIR` variable in the shared `common.mak` file, and referencing this in each tool as base directory. With this a user can simply pass `DRACUTDIR=/foo/bar/baz` on the commandline and change the installation for all three tools. Further, also derive common `DRACUTCONFDIR` and `DRACUTMODDIR` variables from `DRACUTDIR` in `common.mak`, so that `zdev` and `zipl` don't use different variable names for the same directory anymore, and all these are defined together in a common place. Semantically nothing changes for a default build/installation. Signed-off-by: Benjamin Block <bblock@linux.ibm.com> Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
24 lines
723 B
Makefile
24 lines
723 B
Makefile
# Common definitions
|
|
include ../../common.mak
|
|
|
|
ZDEVDIR := 95zdev
|
|
|
|
# HAVE_DRACUT
|
|
#
|
|
# This install time parameter determines whether the zdev dracut module is
|
|
# installed (HAVE_DRACUT=1) or not (default). When installed, the module
|
|
# performs the following functions when dracut is run:
|
|
#
|
|
# - copy the persistent root device configuration to the initial ram disk
|
|
# - install a boot-time hook to apply firmware-provided configuration data
|
|
# to the system
|
|
#
|
|
ifeq ($(HAVE_DRACUT),1)
|
|
install:
|
|
$(INSTALL) -m 755 -d $(DESTDIR)$(DRACUTMODDIR)/
|
|
$(INSTALL) -m 755 -d $(DESTDIR)$(DRACUTMODDIR)/$(ZDEVDIR)
|
|
$(INSTALL) -m 755 $(ZDEVDIR)/module-setup.sh \
|
|
$(ZDEVDIR)/parse-zdev.sh \
|
|
$(DESTDIR)$(DRACUTMODDIR)/$(ZDEVDIR)/
|
|
endif
|