Add cxgbetool(8) to the base system.

Move cxgbetool from tools/tools to usr.sbin. Compile and install it on
platforms where cxgbe(4) is built by default.  Knobs (WITH_CXGBETOOL and
WITHOUT_CXGBETOOL) have been added so that the user can override the
default setting.

Reviewed by:	ngie@, gnn@, bdrewery@
MFC after:	1 month
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D9854
This commit is contained in:
Navdeep Parhar 2017-03-03 03:11:58 +00:00
parent 401032c67d
commit 54912308c8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314579
14 changed files with 45 additions and 9 deletions

View File

@ -275,6 +275,13 @@ BROKEN_OPTIONS+=SSP
BROKEN_OPTIONS+=EFI BROKEN_OPTIONS+=EFI
.endif .endif
.if ${__T} == "aarch64" || ${__T} == "amd64" || ${__T} == "i386" || \
${__T} == "powerpc64" || ${__T} == "sparc64"
__DEFAULT_YES_OPTIONS+=CXGBETOOL
.else
__DEFAULT_NO_OPTIONS+=CXGBETOOL
.endif
.include <bsd.mkopt.mk> .include <bsd.mkopt.mk>
# #

View File

@ -895,6 +895,10 @@ DIRDEPS+= \
usr.sbin/blacklistd usr.sbin/blacklistd
.endif .endif
.if ${MK_CXGBETOOL} != "no"
DIRDEPS+= usr.sbin/cxgbetool
.endif
.if ${MK_GPL_DTC} != "yes" .if ${MK_GPL_DTC} != "yes"
DIRDEPS+= usr.bin/dtc DIRDEPS+= usr.bin/dtc
.endif .endif

View File

@ -0,0 +1,3 @@
.\" $FreeBSD$
Set to not build
.Xr cxgbetool 8

View File

@ -0,0 +1,3 @@
.\" $FreeBSD$
Set to build
.Xr cxgbetool 8

View File

@ -1,9 +0,0 @@
# $FreeBSD$
PROG= cxgbetool
SRCS= cxgbetool.c
MAN= cxgbetool.8
CFLAGS+= -I${.CURDIR}/../../../sys/dev/cxgbe -I${.CURDIR}/../../../sys -I.
BINDIR?= /usr/sbin
.include <bsd.prog.mk>

View File

@ -123,6 +123,7 @@ SUBDIR.${MK_BOOTPARAMD}+= bootparamd
SUBDIR.${MK_BSDINSTALL}+= bsdinstall SUBDIR.${MK_BSDINSTALL}+= bsdinstall
SUBDIR.${MK_BSNMP}+= bsnmpd SUBDIR.${MK_BSNMP}+= bsnmpd
SUBDIR.${MK_CTM}+= ctm SUBDIR.${MK_CTM}+= ctm
SUBDIR.${MK_CXGBETOOL}+= cxgbetool
SUBDIR.${MK_DIALOG}+= bsdconfig SUBDIR.${MK_DIALOG}+= bsdconfig
SUBDIR.${MK_EFI}+= efivar SUBDIR.${MK_EFI}+= efivar
SUBDIR.${MK_FLOPPY}+= fdcontrol SUBDIR.${MK_FLOPPY}+= fdcontrol

View File

@ -0,0 +1,8 @@
# $FreeBSD$
PROG= cxgbetool
MAN= cxgbetool.8
CFLAGS+= -I${SRCTOP}/sys/dev/cxgbe -I${SRCTOP}/sys -I.
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -0,0 +1,19 @@
# $FreeBSD$
# Autogenerated - do NOT edit!
DIRDEPS = \
gnu/lib/csu \
gnu/lib/libgcc \
include \
include/arpa \
include/xlocale \
lib/${CSU_DIR} \
lib/libc \
lib/libcompiler_rt \
.include <dirdeps.mk>
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
# local dependencies - needed for -jN in clean tree
.endif