Files
s390-tools/ipl_tools/Makefile
Jason J. Herne 0472b5ea5c ipl-tools: Add nvme device support to lsreipl/chreipl
Support is added to lsreipl to detect the nvme reipl type and list the
appropriate parameters.

Support is added to chreipl to specify and populate sysfs reipl entries
with nvme device targets.

Signed-off-by: Jason J. Herne <jjherne@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
2020-05-12 17:03:28 +02:00

42 lines
1.0 KiB
Makefile

include ../common.mak
libs = $(rootdir)/libutil/libutil.a
all: chreipl lsreipl chshut lsshut
objects = main.o ccw.o fcp.o nvme.o system.o shutdown.o \
cmd_lsshut.o cmd_chshut.o cmd_lsreipl.o cmd_chreipl.o proc.o
chreipl: $(objects) $(libs)
$(LINK) $(ALL_LDFLAGS) $^ $(LDLIBS) -o $@
lsreipl:
ln -sf chreipl lsreipl
chshut:
ln -sf chreipl chshut
lsshut:
ln -sf chreipl lsshut
clean:
rm -f *.o lsreipl chreipl chshut lsshut
install: all
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 755 chreipl \
$(DESTDIR)$(USRSBINDIR)
ln -f -s chreipl $(DESTDIR)$(USRSBINDIR)/lsreipl
ln -f -s chreipl $(DESTDIR)$(USRSBINDIR)/chshut
ln -f -s chreipl $(DESTDIR)$(USRSBINDIR)/lsshut
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 man/chreipl.8 \
$(DESTDIR)$(MANDIR)/man8
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 man/lsreipl.8 \
$(DESTDIR)$(MANDIR)/man8
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 man/lsshut.8 \
$(DESTDIR)$(MANDIR)/man8
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 man/chshut.8 \
$(DESTDIR)$(MANDIR)/man8
.PHONY: all install clean