xref: /freebsd/sys/modules/qlxgbe/Makefile (revision 031beb4e239bfce798af17f5fe8dba8bcaf13d99)
1f10a77bbSDavid C Somayajulu#/*
235291c22SDavid C Somayajulu# * Copyright (c) 2011-2016 Qlogic Corporation
3f10a77bbSDavid C Somayajulu# * All rights reserved.
4f10a77bbSDavid C Somayajulu# *
5f10a77bbSDavid C Somayajulu# *  Redistribution and use in source and binary forms, with or without
6f10a77bbSDavid C Somayajulu# *  modification, are permitted provided that the following conditions
7f10a77bbSDavid C Somayajulu# *  are met:
8f10a77bbSDavid C Somayajulu# *
9f10a77bbSDavid C Somayajulu# *  1. Redistributions of source code must retain the above copyright
10f10a77bbSDavid C Somayajulu# *     notice, this list of conditions and the following disclaimer.
11f10a77bbSDavid C Somayajulu# *  2. Redistributions in binary form must reproduce the above copyright
12f10a77bbSDavid C Somayajulu# *     notice, this list of conditions and the following disclaimer in the
13f10a77bbSDavid C Somayajulu# *     documentation and/or other materials provided with the distribution.
14f10a77bbSDavid C Somayajulu# *
15f10a77bbSDavid C Somayajulu# *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16f10a77bbSDavid C Somayajulu# *  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17f10a77bbSDavid C Somayajulu# *  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18f10a77bbSDavid C Somayajulu# *  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
19f10a77bbSDavid C Somayajulu# *  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20f10a77bbSDavid C Somayajulu# *  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21f10a77bbSDavid C Somayajulu# *  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22f10a77bbSDavid C Somayajulu# *  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23f10a77bbSDavid C Somayajulu# *  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24f10a77bbSDavid C Somayajulu# *  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25f10a77bbSDavid C Somayajulu# *  POSSIBILITY OF SUCH DAMAGE.
26f10a77bbSDavid C Somayajulu# */
27f10a77bbSDavid C Somayajulu#/*
28f10a77bbSDavid C Somayajulu# * File : Makefile
29f10a77bbSDavid C Somayajulu# * Author : David C Somayajulu, Qlogic Corporation, Aliso Viejo, CA 92656.
30f10a77bbSDavid C Somayajulu# */
31f10a77bbSDavid C Somayajulu#
32f10a77bbSDavid C Somayajulu#
33f10a77bbSDavid C Somayajulu
34193d9e76SEnji Cooper.PATH: ${SRCTOP}/sys/dev/qlxgbe
357fb51846SDavid C Somayajulu#.PATH: ${.CURDIR}
36f10a77bbSDavid C Somayajulu
37f10a77bbSDavid C SomayajuluKMOD=if_qlxgbe
38f10a77bbSDavid C SomayajuluSRCS=ql_os.c ql_dbg.c ql_hw.c ql_misc.c ql_isr.c ql_ioctl.c
39f10a77bbSDavid C SomayajuluSRCS+= ql_reset.c
4035291c22SDavid C SomayajuluSRCS+= ql_fw.c
4135291c22SDavid C SomayajuluSRCS+= ql_boot.c
4235291c22SDavid C SomayajuluSRCS+= ql_minidump.c
4335291c22SDavid C Somayajulu
44*32467e47SEugene GrosbeinSRCS+= device_if.h bus_if.h pci_if.h opt_inet.h
45f10a77bbSDavid C Somayajulu
467fb51846SDavid C SomayajuluCFLAGS += -DQLA_LOCK_NO_SLEEP=1
477fb51846SDavid C Somayajulu#CFLAGS += -DQL_DBG -g
4835291c22SDavid C Somayajulu# Please turn off QL_LDFLASH_FW when you enable QL_ENABLE_ISCSI_TLV
4935291c22SDavid C Somayajulu# You may comment out both QL_LDFLASH_FW and QL_ENABLE_ISCSI_TLV if you like
5035291c22SDavid C Somayajulu# the firmware and boot loader compiled into the driver
5135291c22SDavid C Somayajulu#CFLAGS += -DQL_ENABLE_ISCSI_TLV
5235291c22SDavid C Somayajulu#CFLAGS += -DQL_LDFLASH_FW
5335291c22SDavid C Somayajulu
54f10a77bbSDavid C Somayajulu
55f10a77bbSDavid C Somayajulu.include <bsd.kmod.mk>
56