mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 00:33:30 +00:00
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:
parent
401032c67d
commit
54912308c8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314579
@ -275,6 +275,13 @@ BROKEN_OPTIONS+=SSP
|
||||
BROKEN_OPTIONS+=EFI
|
||||
.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>
|
||||
|
||||
#
|
||||
|
@ -895,6 +895,10 @@ DIRDEPS+= \
|
||||
usr.sbin/blacklistd
|
||||
.endif
|
||||
|
||||
.if ${MK_CXGBETOOL} != "no"
|
||||
DIRDEPS+= usr.sbin/cxgbetool
|
||||
.endif
|
||||
|
||||
.if ${MK_GPL_DTC} != "yes"
|
||||
DIRDEPS+= usr.bin/dtc
|
||||
.endif
|
||||
|
3
tools/build/options/WITHOUT_CXGBETOOL
Normal file
3
tools/build/options/WITHOUT_CXGBETOOL
Normal file
@ -0,0 +1,3 @@
|
||||
.\" $FreeBSD$
|
||||
Set to not build
|
||||
.Xr cxgbetool 8
|
3
tools/build/options/WITH_CXGBETOOL
Normal file
3
tools/build/options/WITH_CXGBETOOL
Normal file
@ -0,0 +1,3 @@
|
||||
.\" $FreeBSD$
|
||||
Set to build
|
||||
.Xr cxgbetool 8
|
@ -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>
|
@ -123,6 +123,7 @@ SUBDIR.${MK_BOOTPARAMD}+= bootparamd
|
||||
SUBDIR.${MK_BSDINSTALL}+= bsdinstall
|
||||
SUBDIR.${MK_BSNMP}+= bsnmpd
|
||||
SUBDIR.${MK_CTM}+= ctm
|
||||
SUBDIR.${MK_CXGBETOOL}+= cxgbetool
|
||||
SUBDIR.${MK_DIALOG}+= bsdconfig
|
||||
SUBDIR.${MK_EFI}+= efivar
|
||||
SUBDIR.${MK_FLOPPY}+= fdcontrol
|
||||
|
8
usr.sbin/cxgbetool/Makefile
Normal file
8
usr.sbin/cxgbetool/Makefile
Normal 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>
|
19
usr.sbin/cxgbetool/Makefile.depend
Normal file
19
usr.sbin/cxgbetool/Makefile.depend
Normal 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
|
Loading…
Reference in New Issue
Block a user