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:
parent
0d095c23a0
commit
eac8e82796
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=341659
|
@ -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>
|
||||
|
|
5
sbin/nvmecontrol/modules/Makefile
Normal file
5
sbin/nvmecontrol/modules/Makefile
Normal file
|
@ -0,0 +1,5 @@
|
|||
# $FreeBSD$
|
||||
|
||||
SUBDIR= intel wdc
|
||||
|
||||
.include <bsd.subdir.mk>
|
12
sbin/nvmecontrol/modules/Makefile.inc
Normal file
12
sbin/nvmecontrol/modules/Makefile.inc
Normal 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
|
6
sbin/nvmecontrol/modules/intel/Makefile
Normal file
6
sbin/nvmecontrol/modules/intel/Makefile
Normal file
|
@ -0,0 +1,6 @@
|
|||
# $FreeBSD$
|
||||
|
||||
LIB= intel
|
||||
SRCS= intel.c
|
||||
|
||||
.include <bsd.lib.mk>
|
6
sbin/nvmecontrol/modules/wdc/Makefile
Normal file
6
sbin/nvmecontrol/modules/wdc/Makefile
Normal file
|
@ -0,0 +1,6 @@
|
|||
# $FreeBSD$
|
||||
|
||||
LIB= wdc
|
||||
SRCS= wdc.c
|
||||
|
||||
.include <bsd.lib.mk>
|
Loading…
Reference in New Issue
Block a user