summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-01-25 05:37:06 +0000
committerngie <ngie@FreeBSD.org>2015-01-25 05:37:06 +0000
commit8210fdf7e3a63c7ad055eb2de16c2ece11c91675 (patch)
tree0d7639f322908341246b5e0769202d4e7a2d6256
parent28b578742c71e172021c6d46a141585e33da55da (diff)
downloadFreeBSD-src-8210fdf7e3a63c7ad055eb2de16c2ece11c91675.zip
FreeBSD-src-8210fdf7e3a63c7ad055eb2de16c2ece11c91675.tar.gz
Build lib/libgpio if MK_GPIO != no
Fill in corresponding entries for MK_GPIO == no in OptionalObsoleteFiles.inc MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
-rw-r--r--lib/Makefile6
-rw-r--r--tools/build/mk/OptionalObsoleteFiles.inc25
2 files changed, 30 insertions, 1 deletions
diff --git a/lib/Makefile b/lib/Makefile
index c51ae96..83d9d63 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -53,7 +53,7 @@ SUBDIR= ${SUBDIR_ORDERED} \
libfetch \
libfigpar \
libgeom \
- libgpio \
+ ${_libgpio} \
${_libgssapi} \
${_librpcsec_gss} \
${_libiconv_modules} \
@@ -195,6 +195,10 @@ _cuse= libcuse
_libelftc= libelftc
.endif
+.if ${MK_GPIO} != "no"
+_libgpio= libgpio
+.endif
+
.if ${MK_GSSAPI} != "no"
_libgssapi= libgssapi
_librpcsec_gss= librpcsec_gss
diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc
index 77f4dd8..ecd4711 100644
--- a/tools/build/mk/OptionalObsoleteFiles.inc
+++ b/tools/build/mk/OptionalObsoleteFiles.inc
@@ -1550,7 +1550,32 @@ OLD_FILES+=usr/share/man/man1/kgdb.1.gz
.endif
.if ${MK_GPIO} == no
+OLD_FILES+=usr/include/libgpio.h
+OLD_FILES+=usr/lib/libgpio.a
+OLD_LIBS+=usr/lib/libgpio.so.0
+OLD_FILES+=usr/lib/libgpio_p.a
OLD_FILES+=usr/sbin/gpioctl
+OLD_FILES+=usr/share/man/man3/gpio.3.gz
+OLD_FILES+=usr/share/man/man3/gpio_close.3.gz
+OLD_FILES+=usr/share/man/man3/gpio_open.3.gz
+OLD_FILES+=usr/share/man/man3/gpio_open_device.3.gz
+OLD_FILES+=usr/share/man/man3/gpio_pin_config.3.gz
+OLD_FILES+=usr/share/man/man3/gpio_pin_get.3.gz
+OLD_FILES+=usr/share/man/man3/gpio_pin_high.3.gz
+OLD_FILES+=usr/share/man/man3/gpio_pin_input.3.gz
+OLD_FILES+=usr/share/man/man3/gpio_pin_invin.3.gz
+OLD_FILES+=usr/share/man/man3/gpio_pin_invout.3.gz
+OLD_FILES+=usr/share/man/man3/gpio_pin_list.3.gz
+OLD_FILES+=usr/share/man/man3/gpio_pin_low.3.gz
+OLD_FILES+=usr/share/man/man3/gpio_pin_opendrain.3.gz
+OLD_FILES+=usr/share/man/man3/gpio_pin_output.3.gz
+OLD_FILES+=usr/share/man/man3/gpio_pin_pulldown.3.gz
+OLD_FILES+=usr/share/man/man3/gpio_pin_pullup.3.gz
+OLD_FILES+=usr/share/man/man3/gpio_pin_pulsate.3.gz
+OLD_FILES+=usr/share/man/man3/gpio_pin_pushpull.3.gz
+OLD_FILES+=usr/share/man/man3/gpio_pin_set.3.gz
+OLD_FILES+=usr/share/man/man3/gpio_pin_set_flags.3.gz
+OLD_FILES+=usr/share/man/man3/gpio_pin_tristate.3.gz
OLD_FILES+=usr/share/man/man8/gpioctl.8.gz
.endif
OpenPOWER on IntegriCloud