summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2010-10-05 21:19:20 +0000
committergonzo <gonzo@FreeBSD.org>2010-10-05 21:19:20 +0000
commit4d0a93a2e155867fabab418b727d02a0b5e53867 (patch)
tree19de694f7fbb6c8d2141deb5345fe8b8278f9763
parentb942a323706046076fe8c04fdc4db45c0c9d4a4c (diff)
downloadFreeBSD-src-4d0a93a2e155867fabab418b727d02a0b5e53867.zip
FreeBSD-src-4d0a93a2e155867fabab418b727d02a0b5e53867.tar.gz
- Introduce WITH_GPIO knob and disable building gpioctl
by default. Most systems do not need it.
-rw-r--r--share/mk/bsd.own.mk1
-rw-r--r--usr.sbin/Makefile5
2 files changed, 5 insertions, 1 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk
index 477a83a..076579a 100644
--- a/share/mk/bsd.own.mk
+++ b/share/mk/bsd.own.mk
@@ -422,6 +422,7 @@ MK_${var}:= yes
BSD_GREP \
${_clang_no} \
FDT \
+ GPIO \
HESIOD \
IDEA
.if defined(WITH_${var}) && defined(WITHOUT_${var})
diff --git a/usr.sbin/Makefile b/usr.sbin/Makefile
index 0669b09..a3863d0 100644
--- a/usr.sbin/Makefile
+++ b/usr.sbin/Makefile
@@ -27,7 +27,6 @@ SUBDIR= adduser \
fwcontrol \
getfmac \
getpmac \
- gpioctl \
gstat \
i2c \
ifmcstat \
@@ -160,6 +159,10 @@ SUBDIR+= freebsd-update
SUBDIR+= gssd
.endif
+.if ${MK_GPIO} != "no"
+SUBDIR+= gpioctl
+.endif
+
.if ${MK_INET6} != "no"
SUBDIR+= faithd
SUBDIR+= ip6addrctl
OpenPOWER on IntegriCloud