xref: /freebsd/sys/modules/gpio/Makefile (revision 6540ac118473dde29cb02f786c79c64f73834ca1)
13cf391a1SAdrian Chadd#
23cf391a1SAdrian Chadd#
33cf391a1SAdrian Chadd# Copyright (c) 2011 Adrian Chadd.  All rights reserved.
43cf391a1SAdrian Chadd#
53cf391a1SAdrian Chadd# Redistribution and use in source and binary forms, with or without
63cf391a1SAdrian Chadd# modification, are permitted provided that the following conditions
73cf391a1SAdrian Chadd# are met:
83cf391a1SAdrian Chadd# 1. Redistributions of source code must retain the above copyright
93cf391a1SAdrian Chadd#    notice, this list of conditions and the following disclaimer.
103cf391a1SAdrian Chadd# 2. Redistributions in binary form must reproduce the above copyright
113cf391a1SAdrian Chadd#    notice, this list of conditions and the following disclaimer in the
123cf391a1SAdrian Chadd#    documentation and/or other materials provided with the distribution.
133cf391a1SAdrian Chadd#
143cf391a1SAdrian Chadd# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
153cf391a1SAdrian Chadd# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
163cf391a1SAdrian Chadd# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
173cf391a1SAdrian Chadd# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
183cf391a1SAdrian Chadd# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
193cf391a1SAdrian Chadd# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
203cf391a1SAdrian Chadd# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
213cf391a1SAdrian Chadd# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
223cf391a1SAdrian Chadd# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
233cf391a1SAdrian Chadd# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
243cf391a1SAdrian Chadd# SUCH DAMAGE.
253cf391a1SAdrian Chadd#
263cf391a1SAdrian Chadd
27*6540ac11SColin PercivalSUBDIR = gpiobus gpioiic gpioled gpiospi gpioths
2899819ca0SIan Lepore
2999819ca0SIan Lepore.if !empty(OPT_FDT)
3012889df7SOleksandr TymoshenkoSUBDIR += gpiokeys gpiopps
3199819ca0SIan Lepore.endif
323cf391a1SAdrian Chadd
33*6540ac11SColin Percival.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
34*6540ac11SColin PercivalSUBDIR += gpioaei
35*6540ac11SColin Percival.endif
36*6540ac11SColin Percival
373cf391a1SAdrian Chadd.include <bsd.subdir.mk>
38