summaryrefslogtreecommitdiff
path: root/usr/src/uts/i86pc/i86hvm/Makefile.i86hvm
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/i86pc/i86hvm/Makefile.i86hvm')
-rw-r--r--usr/src/uts/i86pc/i86hvm/Makefile.i86hvm66
1 files changed, 66 insertions, 0 deletions
diff --git a/usr/src/uts/i86pc/i86hvm/Makefile.i86hvm b/usr/src/uts/i86pc/i86hvm/Makefile.i86hvm
new file mode 100644
index 0000000000..0e414c5fb1
--- /dev/null
+++ b/usr/src/uts/i86pc/i86hvm/Makefile.i86hvm
@@ -0,0 +1,66 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+#
+# uts/i86pc/Makefile.hvm
+#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#ident "%Z%%M% %I% %E% SMI"
+#
+# This makefile provides support for building PV drivers that run
+# in an HVM environment.
+#
+
+ROOT_HVM_DIR = $(ROOT_PLAT_DIR)/i86hvm
+ROOT_HVM_MOD_DIR = $(ROOT_HVM_DIR)/kernel
+ROOT_HVM_DRV_DIR_32 = $(ROOT_HVM_MOD_DIR)/drv
+ROOT_HVM_DRV_DIR_64 = $(ROOT_HVM_MOD_DIR)/drv/$(MACH64)
+ROOT_HVM_DRV_DIR = $(ROOT_HVM_DRV_DIR_$(CLASS))
+ROOT_HVM_MISC_DIR_32 = $(ROOT_HVM_MOD_DIR)/misc
+ROOT_HVM_MISC_DIR_64 = $(ROOT_HVM_MOD_DIR)/misc/$(MACH64)
+ROOT_HVM_MISC_DIR = $(ROOT_HVM_MISC_DIR_$(CLASS))
+USR_HVM_DIR = $(USR_PLAT_DIR)/i86hvm
+
+HVM_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/i86hvm/lint-libs/$(OBJS_DIR)
+
+#
+# Define modules.
+#
+HVM_DRV_KMODS = pv_cmdk pv_rtls xdf xnf xpv xpvd
+HVM_MISC_KMODS = hvm_bootstrap
+HVM_KMODS = $(HVM_DRV_KMODS) $(HVM_MISC_KMODS)
+
+include $(UTSBASE)/i86pc/i86hvm/Makefile.files
+#
+# Include common rules.
+#
+include $(UTSBASE)/i86pc/Makefile.i86pc
+
+LINTS_DIR = $(OBJS_DIR)
+LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/lint-libs/$(OBJS_DIR)
+
+#
+# Indicate that we are building for the i86hvm semi-platform.
+# Also use Solaris specific code in xen public header files.
+#
+CPPFLAGS += -DXPV_HVM_DRIVER -D_SOLARIS
+ASFLAGS += -DXPV_HVM_DRIVER