While very useful by itself, it also makes `nvmecontrol` not depend on hardcoded device names parsing, that in its turn makes simple to take nvdX (and potentially any other) device names as arguments. Also added IOCTL bypass from nvdX to respective nvmeYnsZ makes them interchangeable for management purposes. MFC after: 2 weeks Sponsored by: iXsystems, Inc.
19 lines
391 B
Makefile
19 lines
391 B
Makefile
# $FreeBSD$
|
|
|
|
PACKAGE=runtime
|
|
PROG= nvmecontrol
|
|
SRCS= comnd.c nvmecontrol.c
|
|
SRCS+= devlist.c firmware.c format.c identify.c logpage.c ns.c nsid.c
|
|
SRCS+= perftest.c power.c reset.c
|
|
#SRCS+= passthru.c
|
|
SRCS+= identify_ext.c nvme_util.c nc_util.c
|
|
MAN= nvmecontrol.8
|
|
LDFLAGS+= -rdynamic
|
|
LIBADD+= util
|
|
SUBDIR= modules
|
|
|
|
.PATH: ${SRCTOP}/sys/dev/nvme
|
|
|
|
.include <bsd.prog.mk>
|
|
.include <bsd.subdir.mk>
|