6ee13c54da
Both ATA and NVME have an identify command. They are completely different, but to the user they are the same. Leverage nvmecontrol's print_controller code to provide that functionality to camcontrol identify. Query the path to see what kind of protocol it supports, and send the most appropriate command down. Refactor nvme_print_dev a little to make it easy to get the nvme cdata. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D15371
24 lines
509 B
Makefile
24 lines
509 B
Makefile
# $FreeBSD$
|
|
|
|
PACKAGE=runtime
|
|
PROG= camcontrol
|
|
SRCS= camcontrol.c util.c
|
|
.if !defined(RELEASE_CRUNCH)
|
|
SRCS+= attrib.c epc.c fwdownload.c modeedit.c persist.c progress.c timestamp.c zone.c
|
|
.else
|
|
CFLAGS+= -DMINIMALISTIC
|
|
.endif
|
|
.PATH: ${SRCTOP}/sbin/nvmecontrol
|
|
CFLAGS+= -I${SRCTOP}/sbin/nvmecontrol
|
|
SRCS+= identify_ext.c nc_util.c
|
|
.PATH: ${SRCTOP}/sys/dev/nvme
|
|
SRCS+= nvme_util.c
|
|
# This is verboten
|
|
.if ${MACHINE_CPUARCH} == "arm"
|
|
WARNS?= 3
|
|
.endif
|
|
LIBADD= cam sbuf util
|
|
MAN= camcontrol.8
|
|
|
|
.include <bsd.prog.mk>
|