Files
s390-tools/scripts/Makefile
Finn Callies 6a767408b3 ebc: Add new tool pvics
pvics (PV Image Customization Support) is a comprehensive tool for
converting existing qcow2 KVM guest images to IBM Secure Execution for
Linux (SEL) images with Early Boot Customization (EBC) support and
encrypted root filesystems.

The tool provides four main actions:
- list: Retrieve information about boot loader entries in a base image
- convert: Convert a base image to an EBC-ready SEL image
- encrypt: Encrypt the root filesystem and prepare EBC resources
- full: Perform both conversion and encryption in one operation

Assisted-by: IBM Bob:1.0.1
Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Finn Callies <fcallies@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
2026-04-30 13:47:26 +02:00

63 lines
1.5 KiB
Makefile

include ../common.mak
SCRIPTS = dbginfo.sh zfcpdbf zipl-switch-to-blscfg sclpdbf pvics
# Helper scripts controlled by corresponding systemd services
SD_HELPER_SCRIPTS = cpictl dumpconf
MAN_PAGES = dbginfo.sh.8 zfcpdbf.8 zipl-switch-to-blscfg.8 pvics.8
FILE_MAN_PAGES = pvics.yaml.5
all:
install:
$(INSTALL) -d -m 755 $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man8
@for i in $(SCRIPTS); \
do \
cat $$i | \
sed -e 's/%S390_TOOLS_VERSION%/$(S390_TOOLS_RELEASE)/' \
>$(DESTDIR)$(BINDIR)/$$i; \
chown $(OWNER):$(GROUP) $(DESTDIR)$(BINDIR)/$$i; \
chmod 755 $(DESTDIR)$(BINDIR)/$$i; \
done
@for i in $(SD_HELPER_SCRIPTS); \
do \
cat $$i | \
sed -e 's/%S390_TOOLS_VERSION%/$(S390_TOOLS_RELEASE)/' \
>$(DESTDIR)$(TOOLS_LIBDIR)/$$i; \
chown $(OWNER):$(GROUP) $(DESTDIR)$(TOOLS_LIBDIR)/$$i; \
chmod 755 $(DESTDIR)$(TOOLS_LIBDIR)/$$i; \
done
@for i in $(MAN_PAGES); \
do \
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 $$i \
$(DESTDIR)$(MANDIR)/man8; \
done
@for i in $(FILE_MAN_PAGES); \
do \
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 $$i \
$(DESTDIR)$(MANDIR)/man5; \
done
clean:
.zfcpdbf.ct: zfcpdbf
$(PERLC) $(ALL_PERLCFLAGS) zfcpdbf 2>$(@); \
if [ "$${?}" -ne 0 ]; then \
cat "$(@)" >&2 && rm "$(@)"; \
elif [ "$$(cat '$(@)' | wc -l)" -gt 1 ]; then \
cat "$(@)" >&2; \
elif [ " $(V)" = " 1" ]; then \
cat "$(@)"; \
fi
.PHONY: .zfcpdbf.ct-clean
.zfcpdbf.ct-clean:
rm -f .zfcpdbf.ct
all: .zfcpdbf.ct
clean: .zfcpdbf.ct-clean
.PHONY: all install clean