Makefile revision 337fc9e235877b459e389f54daf9833bbc645439
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# CDDL HEADER START
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# The contents of this file are subject to the terms of the
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# Common Development and Distribution License (the "License").
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# You may not use this file except in compliance with the License.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# or http://www.opensolaris.org/os/licensing.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# See the License for the specific language governing permissions
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# and limitations under the License.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# When distributing Covered Code, include this CDDL HEADER in each
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# If applicable, add the following below this CDDL HEADER, with the
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# CDDL HEADER END
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# Use is subject to license terms.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#ident "%Z%%M% %I% %E% SMI"
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# This makefile drives the production of the kernel/misc/pciehpc module
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# for PCI-E hotplug controller support in PCI-E nexus drivers.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# i86pc implementation architecture dependent
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# Path to the base of the uts directory tree (usually /usr/src/uts).
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserUTSBASE = ../..
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# Define the module and object file sets.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserMODULE = pciehpc
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserOBJECTS = $(PCIEHPCNEXUS_OBJS:%=$(OBJS_DIR)/%)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserLINTS = $(PCIEHPCNEXUS_OBJS:%.o=$(LINTS_DIR)/%.ln)
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Include common rules.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userinclude $(UTSBASE)/i86pc/Makefile.i86pc
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Define targets
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserALL_TARGET = $(BINARY)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntLINT_TARGET = $(MODULE).lint
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# depends on misc/hpcsvc, misc/acpica and misc/pcie
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# For Hotplug support, the misc/hpcsvc module provides various hooks
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# to support hotplug operations.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# acpica supplies ACPI access routines
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# pcie supplies PCI Express fabric error support
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserLDFLAGS += -dy -Nmisc/hpcsvc -Nmisc/acpica -Nmisc/pcie
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# For now, disable these lint checks; maintainers should endeavor
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# to investigate and remove these for maximum lint coverage.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# Please do not carry these forward to new Makefiles.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserLINTTAGS += -erroff=E_STATIC_UNUSED
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# Default build targets.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User.KEEP_STATE:
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userdef: $(DEF_DEPS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userall: $(ALL_DEPS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox Userclean: $(CLEAN_DEPS)
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox Userclobber: $(CLOBBER_DEPS)
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox Userlint: $(LINT_DEPS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Usermodlintlib: $(MODLINTLIB_DEPS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userclean.lint: $(CLEAN_LINT_DEPS)
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox Userinstall: $(INSTALL_DEPS)
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# Include common targets.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox Userinclude $(UTSBASE)/i86pc/Makefile.targ
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User