xref: /titanic_51/usr/src/uts/intel/pci_autoconfig/Makefile (revision 385cc6b4ad1792caef3f84eb61eed3f27085801f)
1ae115bc7Smrj#
2ae115bc7Smrj# CDDL HEADER START
3ae115bc7Smrj#
4ae115bc7Smrj# The contents of this file are subject to the terms of the
5ae115bc7Smrj# Common Development and Distribution License (the "License").
6ae115bc7Smrj# You may not use this file except in compliance with the License.
7ae115bc7Smrj#
8ae115bc7Smrj# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9ae115bc7Smrj# or http://www.opensolaris.org/os/licensing.
10ae115bc7Smrj# See the License for the specific language governing permissions
11ae115bc7Smrj# and limitations under the License.
12ae115bc7Smrj#
13ae115bc7Smrj# When distributing Covered Code, include this CDDL HEADER in each
14ae115bc7Smrj# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15ae115bc7Smrj# If applicable, add the following below this CDDL HEADER, with the
16ae115bc7Smrj# fields enclosed by brackets "[]" replaced with your own identifying
17ae115bc7Smrj# information: Portions Copyright [yyyy] [name of copyright owner]
18ae115bc7Smrj#
19ae115bc7Smrj# CDDL HEADER END
20ae115bc7Smrj#
21ae115bc7Smrj#
22ae115bc7Smrj# uts/intel/pci_autoconfig/Makefile
2326947304SEvan Yan# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24ae115bc7Smrj# Use is subject to license terms.
25ae115bc7Smrj#
26*385cc6b4SJerry Jelinek# Copyright 2016 Joyent, Inc.
27*385cc6b4SJerry Jelinek#
28ae115bc7Smrj#	This makefile drives the production of the PCI autoconfiguration
29ae115bc7Smrj#	kernel module.
30ae115bc7Smrj#
31ae115bc7Smrj#	intel platform dependent
32ae115bc7Smrj#
33ae115bc7Smrj
34ae115bc7Smrj#
35ae115bc7Smrj#	Path to the base of the uts directory tree (usually /usr/src/uts).
36ae115bc7Smrj#
37ae115bc7SmrjUTSBASE	= ../..
38ae115bc7Smrj
39ae115bc7Smrj#
40ae115bc7Smrj#	Define the module and object file sets.
41ae115bc7Smrj#
42ae115bc7SmrjMODULE		= pci_autoconfig
4326947304SEvan YanOBJECTS		= $(PCI_AUTOCONFIG_OBJS:%=$(OBJS_DIR)/%)
4426947304SEvan YanLINTS		= $(PCI_AUTOCONFIG_OBJS:%.o=$(LINTS_DIR)/%.ln)
45ae115bc7SmrjROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
46ae115bc7SmrjINC_PATH	+= -I$(UTSBASE)/i86pc
47ae115bc7Smrj
48ae115bc7Smrj#
49ae115bc7Smrj#	Include common rules.
50ae115bc7Smrj#
51ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.intel
52ae115bc7Smrj
53ae115bc7Smrj#
54ae115bc7Smrj#	Define targets
55ae115bc7Smrj#
56ae115bc7SmrjALL_TARGET	= $(BINARY)
57ae115bc7SmrjLINT_TARGET	= $(MODULE).lint
58ae115bc7SmrjINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
59ae115bc7Smrj
60ae115bc7Smrj#
61c0da6274SZhi-Jun Robin Fu# Depends on acpica ACPI CA interpreter and PCI-E framework
62ae115bc7Smrj#
6326947304SEvan YanLDFLAGS		+= -dy -Nmisc/acpica -Nmisc/pcie
64ae115bc7Smrj
65ae115bc7Smrj#
66ae115bc7Smrj# For now, disable these lint checks; maintainers should endeavor
67ae115bc7Smrj# to investigate and remove these for maximum lint coverage.
68ae115bc7Smrj# Please do not carry these forward to new Makefiles.
69ae115bc7Smrj#
70ae115bc7SmrjLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
71ae115bc7SmrjLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
72ae115bc7Smrj
737014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
74*385cc6b4SJerry Jelinek$(OBJS_DIR)/pci_boot.o :=	CERRWARN += -_gcc=-Wno-unused-function
75*385cc6b4SJerry Jelinek$(OBJS_DIR)/pci_resource.o :=	CERRWARN += -_gcc=-Wno-unused-function
767014882cSRichard Lowe
77ae115bc7Smrj#
78ae115bc7Smrj#	Default build targets.
79ae115bc7Smrj#
80ae115bc7Smrj.KEEP_STATE:
81ae115bc7Smrj
82ae115bc7Smrjdef:		$(DEF_DEPS)
83ae115bc7Smrj
84ae115bc7Smrjall:		$(ALL_DEPS)
85ae115bc7Smrj
86ae115bc7Smrjclean:		$(CLEAN_DEPS)
87ae115bc7Smrj
88ae115bc7Smrjclobber:	$(CLOBBER_DEPS)
89ae115bc7Smrj
90ae115bc7Smrjlint:		$(LINT_DEPS)
91ae115bc7Smrj
92ae115bc7Smrjmodlintlib:	$(MODLINTLIB_DEPS)
93ae115bc7Smrj
94ae115bc7Smrjclean.lint:	$(CLEAN_LINT_DEPS)
95ae115bc7Smrj
96ae115bc7Smrjinstall:	$(INSTALL_DEPS)
97ae115bc7Smrj
98ae115bc7Smrj#
99ae115bc7Smrj#	Include common targets.
100ae115bc7Smrj#
101ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.targ
102