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>