usr/src/uts/intel/ata/Makefile
author Bayard Bell <buffer.g.overflow@gmail.com>
Thu, 15 Sep 2011 18:27:52 +0100
changeset 13452 6bec9720e054
parent 7671 561e0c8d4bc8
child 13834 58bc6f85b799
permissions -rw-r--r--
1073 migrate kernel modules from ancient _depends_on to true ELF dependencies Reviewed by: Adam Leventhal <[email protected]> Reviewed by: Garrett D'Amore <[email protected]> Approved by: Richard Lowe <[email protected]>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1709
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
     1
#
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
     2
# CDDL HEADER START
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
     3
#
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
     7
#
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    10
# See the License for the specific language governing permissions
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    11
# and limitations under the License.
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    12
#
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    18
#
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    19
# CDDL HEADER END
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    20
#
3446
5903aece022d PSARC 2006/469 EOF and removal of eeprom -I
mrj
parents: 3066
diff changeset
    21
# uts/intel/ata/Makefile
1709
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    22
#
7671
561e0c8d4bc8 6743570 clean lint tag -erroff=E_SUSPICIOUS_COMPARISON and -erroff=E_ASSIGN_NARROW_CONV from the ata dirver
zhongyan gu - Sun Microsystems - Beijing China <Zhongyan.Gu@Sun.COM>
parents: 3446
diff changeset
    23
# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
1709
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    24
# Use is subject to license terms.
13452
6bec9720e054 1073 migrate kernel modules from ancient _depends_on to true ELF dependencies
Bayard Bell <buffer.g.overflow@gmail.com>
parents: 7671
diff changeset
    25
# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
1709
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    26
#
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    27
#
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    28
#	This makefile drives the production of the ata "drv"
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    29
#	kernel module.
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    30
#
3446
5903aece022d PSARC 2006/469 EOF and removal of eeprom -I
mrj
parents: 3066
diff changeset
    31
#	intel architecture dependent
1709
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    32
#
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    33
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    34
#
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    35
#	Path to the base of the uts directory tree (usually /usr/src/uts).
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    36
#
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    37
UTSBASE	  = ../..
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    38
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    39
#
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    40
#	Define the module and object file sets.
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    41
#
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    42
MODULE		= ata
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    43
OBJECTS		= $(ATA_OBJS:%=$(OBJS_DIR)/%)
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    44
LINTS		= $(ATA_OBJS:%.o=$(LINTS_DIR)/%.ln)
3446
5903aece022d PSARC 2006/469 EOF and removal of eeprom -I
mrj
parents: 3066
diff changeset
    45
ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
1709
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    46
CONF_SRCDIR	= $(UTSBASE)/intel/io/dktp/controller/ata
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    47
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    48
#
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    49
#	Include common rules.
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    50
#
3446
5903aece022d PSARC 2006/469 EOF and removal of eeprom -I
mrj
parents: 3066
diff changeset
    51
include $(UTSBASE)/intel/Makefile.intel
1709
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    52
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    53
#
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    54
#	Define targets
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    55
#
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    56
ALL_TARGET	= $(BINARY) $(CONFMOD)
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    57
LINT_TARGET	= $(MODULE).lint
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    58
INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    59
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    60
#
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    61
#	Overrides.
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    62
#
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    63
#DEBUG_FLGS	= -DATA_DEBUG -DGHD_DEBUG -DDEBUG
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    64
DEBUG_FLGS	= 
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    65
DEBUG_DEFS	+= $(DEBUG_FLGS)
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    66
INC_PATH	+= -I$(UTSBASE)/intel/io/dktp/hba/ghd
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    67
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    68
#
3066
2a2af34f0642 6470037 remove global disable of some potentially useful lint warnings from the kernel lint build
jg
parents: 1709
diff changeset
    69
# For now, disable these lint checks; maintainers should endeavor
2a2af34f0642 6470037 remove global disable of some potentially useful lint warnings from the kernel lint build
jg
parents: 1709
diff changeset
    70
# to investigate and remove these for maximum lint coverage.
2a2af34f0642 6470037 remove global disable of some potentially useful lint warnings from the kernel lint build
jg
parents: 1709
diff changeset
    71
# Please do not carry these forward to new Makefiles.
2a2af34f0642 6470037 remove global disable of some potentially useful lint warnings from the kernel lint build
jg
parents: 1709
diff changeset
    72
#
2a2af34f0642 6470037 remove global disable of some potentially useful lint warnings from the kernel lint build
jg
parents: 1709
diff changeset
    73
LINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
2a2af34f0642 6470037 remove global disable of some potentially useful lint warnings from the kernel lint build
jg
parents: 1709
diff changeset
    74
2a2af34f0642 6470037 remove global disable of some potentially useful lint warnings from the kernel lint build
jg
parents: 1709
diff changeset
    75
#
13452
6bec9720e054 1073 migrate kernel modules from ancient _depends_on to true ELF dependencies
Bayard Bell <buffer.g.overflow@gmail.com>
parents: 7671
diff changeset
    76
# Depends on scsi
6bec9720e054 1073 migrate kernel modules from ancient _depends_on to true ELF dependencies
Bayard Bell <buffer.g.overflow@gmail.com>
parents: 7671
diff changeset
    77
#
6bec9720e054 1073 migrate kernel modules from ancient _depends_on to true ELF dependencies
Bayard Bell <buffer.g.overflow@gmail.com>
parents: 7671
diff changeset
    78
LDFLAGS         += -dy -N misc/scsi
6bec9720e054 1073 migrate kernel modules from ancient _depends_on to true ELF dependencies
Bayard Bell <buffer.g.overflow@gmail.com>
parents: 7671
diff changeset
    79
6bec9720e054 1073 migrate kernel modules from ancient _depends_on to true ELF dependencies
Bayard Bell <buffer.g.overflow@gmail.com>
parents: 7671
diff changeset
    80
#
1709
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    81
#	Default build targets.
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    82
#
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    83
.KEEP_STATE:
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    84
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    85
def:		$(DEF_DEPS)
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    86
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    87
all:		$(ALL_DEPS)
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    88
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    89
clean:		$(CLEAN_DEPS)
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    90
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    91
clobber:	$(CLOBBER_DEPS)
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    92
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    93
lint:		$(LINT_DEPS)
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    94
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    95
modlintlib:	$(MODLINTLIB_DEPS)
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    96
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    97
clean.lint:	$(CLEAN_LINT_DEPS)
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    98
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
    99
install:	$(INSTALL_DEPS)
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
   100
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
   101
#
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
   102
#	Include common targets.
39a1331cb1e3 6392614 x86: ata driver should be open sourced
mlf
parents:
diff changeset
   103
#
3446
5903aece022d PSARC 2006/469 EOF and removal of eeprom -I
mrj
parents: 3066
diff changeset
   104
include $(UTSBASE)/intel/Makefile.targ