Makefile revision 152213
1# $FreeBSD: head/sys/modules/twa/Makefile 152213 2005-11-08 22:51:43Z vkashyap $ 2# 3# Copyright (c) 2004 Applied Micro Circuits Corporation. 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: 9# 1. Redistributions of source code must retain the above copyright 10# notice, this list of conditions and the following disclaimer. 11# 2. Redistributions in binary form must reproduce the above copyright 12# notice, this list of conditions and the following disclaimer in the 13# documentation and/or other materials provided with the distribution. 14# 15# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# 27 28# 29# 3ware driver for 9000 series storage controllers. 30# 31# Author: Vinod Kashyap 32# 33 34 35 36# 37# In the line following this comment, a value of 0 on the right hand 38# side will not cause firmware to be bundled. Change this value to 1 39# to bundle the firmware with the driver, which may be flashed onto 40# the controller, if the firmware on the controller is older than the 41# one bundled, and needs to be upgraded. The size of the driver will 42# increase significantly (to over 500kB) if this option is selected. 43# Typically, the firmware image bundled (in tw_cl_fwimg.c) corresponds 44# to the latest controller architecture as of the date of the release. 45# If the firmware for an earlier controller architecture needs to be 46# flashed, the (older) driver with the appropriate firmware image 47# bundled can be downloaded from the 3ware website, used to flash the 48# firmware, and then the newer driver can be switched to. Alternatively, 49# the appropriate firmware image (tw_cl_fwimg.c) from the older driver can 50# be used to re-build the newer driver. In this case, the branch 51# (TWA_CURRENT_FW_BRANCH_*) and build (TWA_CURRENT_FW_BUILD_*) numbers for 52# the bundled firmware need to be appropriately updated in tw_cl_fwif.h 53# before building the driver. 54# 55TWA_FLASH_FIRMWARE?=0 56 57KMOD = twa 58.PATH: ${.CURDIR}/../../dev/${KMOD} 59SRCS= tw_osl_freebsd.c tw_osl_cam.c \ 60 tw_cl_init.c tw_cl_io.c tw_cl_intr.c tw_cl_misc.c \ 61 bus_if.h device_if.h pci_if.h opt_scsi.h opt_cam.h opt_twa.h 62 63# Uncomment the following line to turn on Enclosure Services support. 64#CFLAGS+= -DTWA_ENCLOSURE_SUPPORT 65 66#CFLAGS+= -DTWA_DEBUG=0 67CFLAGS+= -I${.CURDIR}/../../dev/${KMOD} 68 69.if $(TWA_FLASH_FIRMWARE) != 0 70CFLAGS+= -DTWA_FLASH_FIRMWARE 71SRCS+= tw_cl_fwimg.c 72.endif 73 74.include <bsd.kmod.mk> 75 76