xref: /freebsd/sys/modules/gpio/gpioled/Makefile (revision 031beb4e239bfce798af17f5fe8dba8bcaf13d99)
13cf391a1SAdrian Chadd#
23cf391a1SAdrian Chadd# Copyright (c) 2012 Adrian Chadd, Xenion Pty Ltd
33cf391a1SAdrian 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#    without modification.
113cf391a1SAdrian Chadd# 2. Redistributions in binary form must reproduce at minimum a disclaimer
123cf391a1SAdrian Chadd#    similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
133cf391a1SAdrian Chadd#    redistribution must be conditioned upon including a substantially
143cf391a1SAdrian Chadd#    similar Disclaimer requirement for further binary redistribution.
153cf391a1SAdrian Chadd#
163cf391a1SAdrian Chadd# NO WARRANTY
173cf391a1SAdrian Chadd# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
183cf391a1SAdrian Chadd# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
193cf391a1SAdrian Chadd# LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
203cf391a1SAdrian Chadd# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
213cf391a1SAdrian Chadd# THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
223cf391a1SAdrian Chadd# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
233cf391a1SAdrian Chadd# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
243cf391a1SAdrian Chadd# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
253cf391a1SAdrian Chadd# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
263cf391a1SAdrian Chadd# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
273cf391a1SAdrian Chadd# THE POSSIBILITY OF SUCH DAMAGES.
283cf391a1SAdrian Chadd#
293cf391a1SAdrian Chadd#
303cf391a1SAdrian Chadd
31*193d9e76SEnji Cooper.PATH:	${SRCTOP}/sys/dev/gpio/
323cf391a1SAdrian Chadd
333cf391a1SAdrian ChaddKMOD=	gpioled
34aabc5ce0SOleksandr Tymoshenko.if !empty(OPT_FDT)
35aabc5ce0SOleksandr TymoshenkoSRCS=	gpioled_fdt.c
36aabc5ce0SOleksandr Tymoshenko.else
373cf391a1SAdrian ChaddSRCS=	gpioled.c
38aabc5ce0SOleksandr Tymoshenko.endif
39606efbc7SIan LeporeSRCS+=	device_if.h bus_if.h gpio_if.h gpiobus_if.h opt_platform.h ofw_bus_if.h
403cf391a1SAdrian Chadd
41*193d9e76SEnji CooperCFLAGS+=  -I. -I${SRCTOP}/sys/dev/gpio/
423cf391a1SAdrian Chadd
433cf391a1SAdrian Chadd.include <bsd.kmod.mk>
44