xref: /titanic_52/usr/src/uts/i86pc/i86hvm/Makefile.i86hvm (revision 051aabe6136ff13e81542a427e9693ffe1503525)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# uts/i86pc/Makefile.hvm
23#
24# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27#ident	"%Z%%M%	%I%	%E% SMI"
28#
29#	This makefile provides support for building PV drivers that run
30#	in an HVM environment.
31#
32
33ROOT_HVM_DIR		= $(ROOT_PLAT_DIR)/i86hvm
34ROOT_HVM_MOD_DIR	= $(ROOT_HVM_DIR)/kernel
35ROOT_HVM_DRV_DIR_32	= $(ROOT_HVM_MOD_DIR)/drv
36ROOT_HVM_DRV_DIR_64	= $(ROOT_HVM_MOD_DIR)/drv/$(MACH64)
37ROOT_HVM_DRV_DIR	= $(ROOT_HVM_DRV_DIR_$(CLASS))
38ROOT_HVM_MISC_DIR_32	= $(ROOT_HVM_MOD_DIR)/misc
39ROOT_HVM_MISC_DIR_64	= $(ROOT_HVM_MOD_DIR)/misc/$(MACH64)
40ROOT_HVM_MISC_DIR	= $(ROOT_HVM_MISC_DIR_$(CLASS))
41USR_HVM_DIR		= $(USR_PLAT_DIR)/i86hvm
42
43HVM_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/i86hvm/lint-libs/$(OBJS_DIR)
44
45#
46#       Define modules.
47#
48HVM_DRV_KMODS	= pv_cmdk pv_rtls xdf xnf xpv xpvd
49HVM_MISC_KMODS	= hvm_bootstrap
50HVM_KMODS	= $(HVM_DRV_KMODS) $(HVM_MISC_KMODS)
51
52include $(UTSBASE)/i86pc/i86hvm/Makefile.files
53#
54#       Include common rules.
55#
56include $(UTSBASE)/i86pc/Makefile.i86pc
57
58LINTS_DIR	= $(OBJS_DIR)
59LINT_LIB_DIR	= $(UTSBASE)/$(PLATFORM)/lint-libs/$(OBJS_DIR)
60
61#
62# Indicate that we are building for the i86hvm semi-platform.
63# Also use Solaris specific code in xen public header files.
64#
65CPPFLAGS	+= -DXPV_HVM_DRIVER -D_SOLARIS
66ASFLAGS		+= -DXPV_HVM_DRIVER
67