WITH_GPIO and obsolete files

Alexander Best arundel at freebsd.org
Sun Nov 14 14:27:45 UTC 2010


hi there,

this patch will remove gpioctl and gpioctl.8 when WITH_GPIO was not specified
in src.conf.

also i just noticed that src.conf needs to be regenerated, because it's missing the
WITH_GPIO description.

cheers.
alex

-- 
a13x
-------------- next part --------------
diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc
index 4ce9968..d9b4e35 100644
--- a/tools/build/mk/OptionalObsoleteFiles.inc
+++ b/tools/build/mk/OptionalObsoleteFiles.inc
@@ -808,6 +808,11 @@ OLD_FILES+=usr/lib32/libgpib_p.a
 .endif
 .endif
 
+.if ${MK_GPIO} == no
+OLD_FILES+=usr/sbin/gpioctl
+OLD_FILES+=usr/share/man/man8/gpioctl.8.gz
+.endif
+
 .if ${MK_GSSAPI} == no
 OLD_FILES+=usr/lib/libgssapi.a
 OLD_FILES+=usr/lib/libgssapi.so


More information about the freebsd-hackers mailing list