Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
d5b7ba26785d7494166d48876362ba30ff30b98awrowe#
c30ef289fe64ac7fedc44cfcc6b439f0f8458b4cgregames# CDDL HEADER START
c30ef289fe64ac7fedc44cfcc6b439f0f8458b4cgregames#
5541a81e194dc99521c0ecf904a940b0b65a93f2nd# The contents of this file are subject to the terms of the
c880637396a01f4acfcf7e35fe423ced2d86c3b4nd# Common Development and Distribution License (the "License").
c880637396a01f4acfcf7e35fe423ced2d86c3b4nd# You may not use this file except in compliance with the License.
c880637396a01f4acfcf7e35fe423ced2d86c3b4nd#
c880637396a01f4acfcf7e35fe423ced2d86c3b4nd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c880637396a01f4acfcf7e35fe423ced2d86c3b4nd# or http://www.opensolaris.org/os/licensing.
c880637396a01f4acfcf7e35fe423ced2d86c3b4nd# See the License for the specific language governing permissions
532a5de31e1a9732da4923f88e4931d0724ebe72nd# and limitations under the License.
532a5de31e1a9732da4923f88e4931d0724ebe72nd#
532a5de31e1a9732da4923f88e4931d0724ebe72nd# When distributing Covered Code, include this CDDL HEADER in each
219e31b849ef108cd8f58ba0eedae03414e5edb1thommay# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a98959721afc481c7f3a941f85c462f0b90defdathommay# If applicable, add the following below this CDDL HEADER, with the
a98959721afc481c7f3a941f85c462f0b90defdathommay# fields enclosed by brackets "[]" replaced with your own identifying
a98959721afc481c7f3a941f85c462f0b90defdathommay# information: Portions Copyright [yyyy] [name of copyright owner]
219e31b849ef108cd8f58ba0eedae03414e5edb1thommay#
dbb916b882c33a4e340b0dba7d75506cfdd85640trawick# CDDL HEADER END
dbb916b882c33a4e340b0dba7d75506cfdd85640trawick#
dbb916b882c33a4e340b0dba7d75506cfdd85640trawick#
dbb916b882c33a4e340b0dba7d75506cfdd85640trawick# uts/i86pc/xpv/Makefile
dbb916b882c33a4e340b0dba7d75506cfdd85640trawick#
a18a308d7a942230edcde1bf00d7ae9b4b143c90trawick# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
a18a308d7a942230edcde1bf00d7ae9b4b143c90trawick# Use is subject to license terms.
a18a308d7a942230edcde1bf00d7ae9b4b143c90trawick#
9efe68be3c81ee85225972195fb725dbfc2e8b24trawick
9098f795fab5db41a52b6b82fa475e8f9b3850f0trawick#
9098f795fab5db41a52b6b82fa475e8f9b3850f0trawick# This makefile drives the production of the xpv
9098f795fab5db41a52b6b82fa475e8f9b3850f0trawick# driver, which provides the necessary infrastructure for
9efe68be3c81ee85225972195fb725dbfc2e8b24trawick# paravirtualized front-end drivers in HVM systems.
3b872593fd5f61981d9dd69a4b0b5d5f5f668929trawick#
3b872593fd5f61981d9dd69a4b0b5d5f5f668929trawick# i86pc implementation architecture dependent
3b872593fd5f61981d9dd69a4b0b5d5f5f668929trawick#
fc25339741311efd7d460f18b6287ef38d76bbe6madhum
fc25339741311efd7d460f18b6287ef38d76bbe6madhum#
fc25339741311efd7d460f18b6287ef38d76bbe6madhum# Path to the base of the uts directory tree (usually /usr/src/uts).
fc25339741311efd7d460f18b6287ef38d76bbe6madhum#
fcdca175a52fe517f2317ba0e2b6e6d14522b869madhumUTSBASE = ../../..
19fdbc5566bf67dde644be9e8d38d62db4dd0ba5jerenkrantz
92a2439559cf1161742650ed9c50c6483bd029cemadhum#
92a2439559cf1161742650ed9c50c6483bd029cemadhum# Define the module and object file sets.
92a2439559cf1161742650ed9c50c6483bd029cemadhum#
92a2439559cf1161742650ed9c50c6483bd029cemadhumMODULE = xpv
ebecc16986604cce1369d5075eff65032e3dd0deianhOBJECTS = $(XPV_OBJS:%=$(OBJS_DIR)/%)
0d60370bedd05f9632f54e85c417ce472d463674madhumLINTS = $(XPV_OBJS:%.o=$(LINTS_DIR)/%.ln)
ebecc16986604cce1369d5075eff65032e3dd0deianhROOTMODULE = $(ROOT_HVM_DRV_DIR)/$(MODULE)
764315969cef40e50cdc6a5e9638454e10c1c06endCONF_SRCDIR = $(UTSBASE)/i86pc/i86hvm/io/xpv
764315969cef40e50cdc6a5e9638454e10c1c06end
764315969cef40e50cdc6a5e9638454e10c1c06end#
764315969cef40e50cdc6a5e9638454e10c1c06end# Include common rules.
bfb54bd96690887dcdf184fd9083c2e167898ce2nd#
a2c036f0ca71e35c085b4cd9451a6d3718bc65daakeinclude $(UTSBASE)/i86pc/i86hvm/Makefile.i86hvm
a2c036f0ca71e35c085b4cd9451a6d3718bc65daake
a2c036f0ca71e35c085b4cd9451a6d3718bc65daake#
a2c036f0ca71e35c085b4cd9451a6d3718bc65daake# Define targets
b92cba59a0890be43b14aaf1ce30606140be9593nd#
b92cba59a0890be43b14aaf1ce30606140be9593ndALL_TARGET = $(BINARY) $(CONFMOD)
b92cba59a0890be43b14aaf1ce30606140be9593ndLINT_TARGET = $(MODULE).lint
b92cba59a0890be43b14aaf1ce30606140be9593ndINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
402d23baca89e8c4fcb4e52ad8b2d66a6904baaetrawick
402d23baca89e8c4fcb4e52ad8b2d66a6904baaetrawickCPPFLAGS += -DHVMPV_XPV_VERS=1
402d23baca89e8c4fcb4e52ad8b2d66a6904baaetrawickLDFLAGS += -dy -N mach/pcplusmp
4caa28863a3418d26cc20a998dc368c3de3b7e19jerenkrantz
4caa28863a3418d26cc20a998dc368c3de3b7e19jerenkrantz#
4caa28863a3418d26cc20a998dc368c3de3b7e19jerenkrantz# The Xen header files do not lint cleanly. Since the troublesome
a3f2646ef3d8a3a5234a5601de0f95f10308c2a6jerenkrantz# structures form part of the externally defined interface to the
a3f2646ef3d8a3a5234a5601de0f95f10308c2a6jerenkrantz# hypervisor, we're stuck with the noise.
a3f2646ef3d8a3a5234a5601de0f95f10308c2a6jerenkrantz#
9e398d701dd430f073ff5418fb720642e064046ajerenkrantzLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
9e398d701dd430f073ff5418fb720642e064046ajerenkrantzLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
9e398d701dd430f073ff5418fb720642e064046ajerenkrantzLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
1a5b9e0071f0c662036250b482d566ad87ff0b4bjerenkrantz
1a5b9e0071f0c662036250b482d566ad87ff0b4bjerenkrantzCERRWARN += -_gcc=-Wno-unused-label
1a5b9e0071f0c662036250b482d566ad87ff0b4bjerenkrantz
a7ac9b52c3d9f7ce937f078a0d585023db626c55jerenkrantz#
a7ac9b52c3d9f7ce937f078a0d585023db626c55jerenkrantz# Default build targets.
a7ac9b52c3d9f7ce937f078a0d585023db626c55jerenkrantz#
ba6c07204bd224fa5d4cd0e6b8bf256d6daffb74nd.KEEP_STATE:
ba6c07204bd224fa5d4cd0e6b8bf256d6daffb74nd
ba6c07204bd224fa5d4cd0e6b8bf256d6daffb74nddef: $(DEF_DEPS)
db5837bbc9bef214303e755fa52122140366cb6fianh
db5837bbc9bef214303e755fa52122140366cb6fianhall: $(ALL_DEPS)
db5837bbc9bef214303e755fa52122140366cb6fianh
aac2b82fe4f1ac117e2a0702438d6615542642dandclean: $(CLEAN_DEPS)
aac2b82fe4f1ac117e2a0702438d6615542642dand
aac2b82fe4f1ac117e2a0702438d6615542642dandclobber: $(CLOBBER_DEPS)
a793d402c74e50326a2401cfbdc562c5781948fdnd
a793d402c74e50326a2401cfbdc562c5781948fdndlint: $(LINT_DEPS)
0a209fcb17b8c9a42a6149a1758e61cf6527d367nd
a793d402c74e50326a2401cfbdc562c5781948fdndmodlintlib: $(MODLINTLIB_DEPS)
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantzclean.lint: $(CLEAN_LINT_DEPS)
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz
3ded62d7f2c9b12616d718b8c97d3044baa9ecdbjerenkrantzinstall: $(INSTALL_DEPS)
3ded62d7f2c9b12616d718b8c97d3044baa9ecdbjerenkrantz
3ded62d7f2c9b12616d718b8c97d3044baa9ecdbjerenkrantz#
ab8c0315521735c73ce16c8072f91e17c406ca5bnd# Include common targets.
ab8c0315521735c73ce16c8072f91e17c406ca5bnd#
ab8c0315521735c73ce16c8072f91e17c406ca5bndinclude $(UTSBASE)/i86pc/i86hvm/Makefile.targ
b9e99e0d3154bbebe3e1b8d11d6c15bde79510a5nd