mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Add hook script to allow zkey utilities to be used in initramfs. Closes: https://github.com/ibm-s390-linux/s390-tools/pull/42 Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com> Reviewd-by Ingo Franzki <ifranzki@linux.ibm.com> [hoeppner@linux.ibm.com: removed / in Makefile and updated commit message] Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
22 lines
670 B
Makefile
22 lines
670 B
Makefile
# Common definitions
|
|
include ../../common.mak
|
|
|
|
INITRAMFSDIR := /usr/share/initramfs-tools
|
|
HOOKDIR := $(INITRAMFSDIR)/hooks
|
|
INITTOP := $(INITRAMFSDIR)/scripts/init-top
|
|
|
|
# HAVE_INITRAMFS
|
|
#
|
|
# This install time parameter determines whether the zkey initramfs support is
|
|
# installed (HAVE_INITRAMFS=1) or not (default). When installed, the module
|
|
# performs the following functions when mkinitramfs is run:
|
|
#
|
|
# - install a hook to include zkey related utilities and zkey repository in
|
|
# the initramfs
|
|
#
|
|
ifeq ($(HAVE_INITRAMFS),1)
|
|
install:
|
|
$(INSTALL) -m 755 -d $(DESTDIR)$(HOOKDIR) $(DESTDIR)$(INITTOP)
|
|
$(INSTALL) -m 755 hooks/s390-tools-zkey $(DESTDIR)$(HOOKDIR)
|
|
endif
|