Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
f743002678eb67b99bbc29fee116b65d9530fec0wrowe#
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg# CDDL HEADER START
6736c640e65e06990ef33af71ee81fac4df4ff5fjim#
57db302f0875a6c93a79333b8941cea4c1827272jim# The contents of this file are subject to the terms of the
57db302f0875a6c93a79333b8941cea4c1827272jim# Common Development and Distribution License (the "License").
57db302f0875a6c93a79333b8941cea4c1827272jim# You may not use this file except in compliance with the License.
57db302f0875a6c93a79333b8941cea4c1827272jim#
92b1631880b0bf43fe8b2663a03c8571eb04e433jim# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92b1631880b0bf43fe8b2663a03c8571eb04e433jim# or http://www.opensolaris.org/os/licensing.
92b1631880b0bf43fe8b2663a03c8571eb04e433jim# See the License for the specific language governing permissions
89225e8e84d38b07a8335922497997e83d872e75jim# and limitations under the License.
89225e8e84d38b07a8335922497997e83d872e75jim#
89225e8e84d38b07a8335922497997e83d872e75jim# When distributing Covered Code, include this CDDL HEADER in each
78f94f1d06c4e6828ce04d618221e0fcecb57849humbedooh# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
78f94f1d06c4e6828ce04d618221e0fcecb57849humbedooh# If applicable, add the following below this CDDL HEADER, with the
78f94f1d06c4e6828ce04d618221e0fcecb57849humbedooh# fields enclosed by brackets "[]" replaced with your own identifying
f5e28c78424d2f71c61ba457009f100bba38bc68chrisd# information: Portions Copyright [yyyy] [name of copyright owner]
f5e28c78424d2f71c61ba457009f100bba38bc68chrisd#
f5e28c78424d2f71c61ba457009f100bba38bc68chrisd# CDDL HEADER END
f4a715f904b014060ea6237fe29481ed21f5c7d0jorton#
f4a715f904b014060ea6237fe29481ed21f5c7d0jorton#
f4a715f904b014060ea6237fe29481ed21f5c7d0jorton# uts/i86pc/xpv/Makefile
536d2e7cd1fdec1255b8c3bdf41fdc714c506a54trawick#
536d2e7cd1fdec1255b8c3bdf41fdc714c506a54trawick# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
536d2e7cd1fdec1255b8c3bdf41fdc714c506a54trawick# Use is subject to license terms.
536d2e7cd1fdec1255b8c3bdf41fdc714c506a54trawick#
70caa242e6b90e0d6f0fabb56b8c5c2fb51717b3jorton
985a4368b93c3e9171a57897ad9454c8dbf4cdf6jorton#
70caa242e6b90e0d6f0fabb56b8c5c2fb51717b3jorton# This makefile drives the production of the xpv
70caa242e6b90e0d6f0fabb56b8c5c2fb51717b3jorton# driver, which provides the necessary infrastructure for
109e2a09790de3fb315d36d6232a14ab66c8eb0ahumbedooh# paravirtualized front-end drivers in HVM systems.
109e2a09790de3fb315d36d6232a14ab66c8eb0ahumbedooh#
109e2a09790de3fb315d36d6232a14ab66c8eb0ahumbedooh# i86pc implementation architecture dependent
4be250c774bdac977eef29a02183ca78de29fb41rjung#
4be250c774bdac977eef29a02183ca78de29fb41rjung
4be250c774bdac977eef29a02183ca78de29fb41rjung#
12b5dc9afa1844df5ac8acab98fb538432a2fa1crjung# Path to the base of the uts directory tree (usually /usr/src/uts).
12b5dc9afa1844df5ac8acab98fb538432a2fa1crjung#
12b5dc9afa1844df5ac8acab98fb538432a2fa1crjungUTSBASE = ../../..
12b5dc9afa1844df5ac8acab98fb538432a2fa1crjung
74e7a30182af5e68f14ccb8d57918b22b982db8bhumbedooh#
74e7a30182af5e68f14ccb8d57918b22b982db8bhumbedooh# Define the module and object file sets.
74e7a30182af5e68f14ccb8d57918b22b982db8bhumbedooh#
10961a2f60207cb873d889bb28b1f0ef707a4311humbedoohMODULE = xpv
10961a2f60207cb873d889bb28b1f0ef707a4311humbedoohOBJECTS = $(XPV_OBJS:%=$(OBJS_DIR)/%)
10961a2f60207cb873d889bb28b1f0ef707a4311humbedoohLINTS = $(XPV_OBJS:%.o=$(LINTS_DIR)/%.ln)
0448378b899e8df0c060360f17c0af692adf17bchumbedoohROOTMODULE = $(ROOT_HVM_DRV_DIR)/$(MODULE)
0448378b899e8df0c060360f17c0af692adf17bchumbedoohCONF_SRCDIR = $(UTSBASE)/i86pc/i86hvm/io/xpv
0448378b899e8df0c060360f17c0af692adf17bchumbedooh
60a765cccbd3f3b5997b65b0034220c79f78369etrawick#
60a765cccbd3f3b5997b65b0034220c79f78369etrawick# Include common rules.
60a765cccbd3f3b5997b65b0034220c79f78369etrawick#
e7ca863b04ee2a7aea7738cadbf51ce5e6c5245dhumbedoohinclude $(UTSBASE)/i86pc/i86hvm/Makefile.i86hvm
e7ca863b04ee2a7aea7738cadbf51ce5e6c5245dhumbedooh
e7ca863b04ee2a7aea7738cadbf51ce5e6c5245dhumbedooh#
e7ca863b04ee2a7aea7738cadbf51ce5e6c5245dhumbedooh# Define targets
91654e263480f0fdc2a03d782ff23f8dad07cf79humbedooh#
91814c869ca39ce45dfe147307d2a831cac6ecbehumbedoohALL_TARGET = $(BINARY) $(CONFMOD)
91654e263480f0fdc2a03d782ff23f8dad07cf79humbedoohLINT_TARGET = $(MODULE).lint
79c5787b92ac5f0e1cc82393816c77a006399316trawickINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
79c5787b92ac5f0e1cc82393816c77a006399316trawick
79c5787b92ac5f0e1cc82393816c77a006399316trawickCPPFLAGS += -DHVMPV_XPV_VERS=1
79c5787b92ac5f0e1cc82393816c77a006399316trawickLDFLAGS += -dy -N mach/pcplusmp
79c5787b92ac5f0e1cc82393816c77a006399316trawick
79c5787b92ac5f0e1cc82393816c77a006399316trawick#
79c5787b92ac5f0e1cc82393816c77a006399316trawick# The Xen header files do not lint cleanly. Since the troublesome
79c5787b92ac5f0e1cc82393816c77a006399316trawick# structures form part of the externally defined interface to the
79c5787b92ac5f0e1cc82393816c77a006399316trawick# hypervisor, we're stuck with the noise.
12b987b969f03ef98d9175a53d849ab62f5684fecovener#
12b987b969f03ef98d9175a53d849ab62f5684fecovenerLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
099c357f282d4aebf2b32264f7dce6ffc0497c37sfLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
099c357f282d4aebf2b32264f7dce6ffc0497c37sfLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
099c357f282d4aebf2b32264f7dce6ffc0497c37sf
099c357f282d4aebf2b32264f7dce6ffc0497c37sfCERRWARN += -_gcc=-Wno-unused-label
50f8c80eb4d3989ebf3f1341aeef4d2d302af162sf
50f8c80eb4d3989ebf3f1341aeef4d2d302af162sf#
4bb0a88a01fb7b494bb02a8b881b5eab0308bda6sf# Default build targets.
50f8c80eb4d3989ebf3f1341aeef4d2d302af162sf#
7b395e4e878c28a4784919cfd2e704ddd14a3390jorton.KEEP_STATE:
7b395e4e878c28a4784919cfd2e704ddd14a3390jorton
7b395e4e878c28a4784919cfd2e704ddd14a3390jortondef: $(DEF_DEPS)
7b395e4e878c28a4784919cfd2e704ddd14a3390jorton
536e48c08d674acac5d44929318f2ad928edc361jortonall: $(ALL_DEPS)
536e48c08d674acac5d44929318f2ad928edc361jorton
e81785da447b469da66f218b3f0244aab507958djortonclean: $(CLEAN_DEPS)
e81785da447b469da66f218b3f0244aab507958djorton
3e4e54d4e3fc0123c63d57aa84ac7ad7a8c73ff8jortonclobber: $(CLOBBER_DEPS)
3e4e54d4e3fc0123c63d57aa84ac7ad7a8c73ff8jorton
3e4e54d4e3fc0123c63d57aa84ac7ad7a8c73ff8jortonlint: $(LINT_DEPS)
459eaf0826f995b73a0dc066f59ea10d2824e72dsf
459eaf0826f995b73a0dc066f59ea10d2824e72dsfmodlintlib: $(MODLINTLIB_DEPS)
459eaf0826f995b73a0dc066f59ea10d2824e72dsf
459eaf0826f995b73a0dc066f59ea10d2824e72dsfclean.lint: $(CLEAN_LINT_DEPS)
53e9b27aba029b18be814df40bcf6f0428771d1efuankg
53e9b27aba029b18be814df40bcf6f0428771d1efuankginstall: $(INSTALL_DEPS)
53e9b27aba029b18be814df40bcf6f0428771d1efuankg
53e9b27aba029b18be814df40bcf6f0428771d1efuankg#
53e9b27aba029b18be814df40bcf6f0428771d1efuankg# Include common targets.
6bb524f1895f30265a1431afc460977d391cb36bsf#
6bb524f1895f30265a1431afc460977d391cb36bsfinclude $(UTSBASE)/i86pc/i86hvm/Makefile.targ
ca61ccd0c306c2c72df153688ba1b49f3eceed80sf