Move intel and wdc files to their own modules

Move the intel and wdc vendor specific stuff to their own modules.

Sponsored by: Netflix
Differential Revision:  https://reviews.freebsd.org/D18460
This commit is contained in:
Warner Losh 2018-12-06 22:58:55 +00:00
parent 0d095c23a0
commit eac8e82796
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=341659
7 changed files with 31 additions and 1 deletions

View File

@ -4,10 +4,11 @@ PACKAGE=runtime
PROG= nvmecontrol
SRCS= nvmecontrol.c devlist.c firmware.c format.c identify.c identify_ext.c logpage.c \
perftest.c reset.c ns.c nvme_util.c power.c nc_util.c
SRCS+= wdc.c intel.c
MAN= nvmecontrol.8
LDFLAGS+= -rdynamic
SUBDIR= modules
.PATH: ${SRCTOP}/sys/dev/nvme
.include <bsd.prog.mk>
.include <bsd.subdir.mk>

View File

@ -0,0 +1,5 @@
# $FreeBSD$
SUBDIR= intel wdc
.include <bsd.subdir.mk>

View File

@ -0,0 +1,12 @@
# $FreeBSD$
PACKAGE=runtime
NVMECONTROLDIR= ${SRCTOP}/sbin/nvmecontrol
MK_INSTALLLIB= no
MK_PROFILE= no
CFLAGS+= -I${NVMECONTROLDIR}
SHLIB_NAME?= ${LIB}.so
LIBDIR= /lib/nvmecontrol

View File

@ -0,0 +1,6 @@
# $FreeBSD$
LIB= intel
SRCS= intel.c
.include <bsd.lib.mk>

View File

@ -0,0 +1,6 @@
# $FreeBSD$
LIB= wdc
SRCS= wdc.c
.include <bsd.lib.mk>