70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# CDDL HEADER START
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# The contents of this file are subject to the terms of the
d89fccd8788afe1e920f842edd883fe192a1b8feschwartz# Common Development and Distribution License (the "License").
d89fccd8788afe1e920f842edd883fe192a1b8feschwartz# You may not use this file except in compliance with the License.
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
70025d765b044c6d8594bb965a2247a61e991a99johnny# or http://www.opensolaris.org/os/licensing.
70025d765b044c6d8594bb965a2247a61e991a99johnny# See the License for the specific language governing permissions
70025d765b044c6d8594bb965a2247a61e991a99johnny# and limitations under the License.
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# When distributing Covered Code, include this CDDL HEADER in each
70025d765b044c6d8594bb965a2247a61e991a99johnny# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
70025d765b044c6d8594bb965a2247a61e991a99johnny# If applicable, add the following below this CDDL HEADER, with the
70025d765b044c6d8594bb965a2247a61e991a99johnny# fields enclosed by brackets "[]" replaced with your own identifying
70025d765b044c6d8594bb965a2247a61e991a99johnny# information: Portions Copyright [yyyy] [name of copyright owner]
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# CDDL HEADER END
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# uts/i86pc/npe/Makefile
337fc9e235877b459e389f54daf9833bbc645439anish#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
70025d765b044c6d8594bb965a2247a61e991a99johnny# Use is subject to license terms.
70025d765b044c6d8594bb965a2247a61e991a99johnny#
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry Jelinek# Copyright 2016 Joyent, Inc.
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry Jelinek#
70025d765b044c6d8594bb965a2247a61e991a99johnny# This makefile drives the production of the PCI-E nexus driver
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# i86pc implementation architecture dependent
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# Path to the base of the uts directory tree (usually /usr/src/uts).
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnnyUTSBASE = ../..
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# Define the module and object file sets.
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnnyMODULE = npe
70025d765b044c6d8594bb965a2247a61e991a99johnnyOBJECTS = $(PCI_E_NEXUS_OBJS:%=$(OBJS_DIR)/%)
70025d765b044c6d8594bb965a2247a61e991a99johnnyLINTS = $(PCI_E_NEXUS_OBJS:%.o=$(LINTS_DIR)/%.ln)
70025d765b044c6d8594bb965a2247a61e991a99johnnyROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# Include common rules.
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnnyinclude $(UTSBASE)/i86pc/Makefile.i86pc
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# Define targets
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnnyALL_TARGET = $(BINARY)
70025d765b044c6d8594bb965a2247a61e991a99johnnyLINT_TARGET = $(MODULE).lint
70025d765b044c6d8594bb965a2247a61e991a99johnnyINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnny#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# depends on misc/acpica and misc/pcie
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# acpica supplies ACPI access routines
70025d765b044c6d8594bb965a2247a61e991a99johnny#
337fc9e235877b459e389f54daf9833bbc645439anish# pcie supplies PCI Express fabric error support
337fc9e235877b459e389f54daf9833bbc645439anish#
269473047d747f7815af570197e4ef7322d3632cEvan YanLDFLAGS += -dy -Nmisc/acpica -Nmisc/pcie
70025d765b044c6d8594bb965a2247a61e991a99johnny
d89fccd8788afe1e920f842edd883fe192a1b8feschwartz#
d89fccd8788afe1e920f842edd883fe192a1b8feschwartz# Name of the module is needed by the source, to distinguish from other
d89fccd8788afe1e920f842edd883fe192a1b8feschwartz# PCI/PCI-express nexi
d89fccd8788afe1e920f842edd883fe192a1b8feschwartz#
d89fccd8788afe1e920f842edd883fe192a1b8feschwartzCFLAGS += -D_MODULE_NAME="\"$(MODULE)\""
d89fccd8788afe1e920f842edd883fe192a1b8feschwartzLINTFLAGS += -D_MODULE_NAME="\"$(MODULE)\""
d89fccd8788afe1e920f842edd883fe192a1b8feschwartz
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# For now, disable these lint checks; maintainers should endeavor
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# to investigate and remove these for maximum lint coverage.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# Please do not carry these forward to new Makefiles.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry JelinekCERRWARN += -_gcc=-Wno-unused-function
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# Default build targets.
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny.KEEP_STATE:
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnydef: $(DEF_DEPS)
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyall: $(ALL_DEPS)
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyclean: $(CLEAN_DEPS)
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyclobber: $(CLOBBER_DEPS)
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnylint: $(LINT_DEPS)
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnymodlintlib: $(MODLINTLIB_DEPS)
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyclean.lint: $(CLEAN_LINT_DEPS)
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyinstall: $(INSTALL_DEPS)
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# Include common targets.
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnnyinclude $(UTSBASE)/i86pc/Makefile.targ