1551bc2a6Smrj# 2551bc2a6Smrj# CDDL HEADER START 3551bc2a6Smrj# 4551bc2a6Smrj# The contents of this file are subject to the terms of the 5551bc2a6Smrj# Common Development and Distribution License (the "License"). 6551bc2a6Smrj# You may not use this file except in compliance with the License. 7551bc2a6Smrj# 8551bc2a6Smrj# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9551bc2a6Smrj# or http://www.opensolaris.org/os/licensing. 10551bc2a6Smrj# See the License for the specific language governing permissions 11551bc2a6Smrj# and limitations under the License. 12551bc2a6Smrj# 13551bc2a6Smrj# When distributing Covered Code, include this CDDL HEADER in each 14551bc2a6Smrj# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15551bc2a6Smrj# If applicable, add the following below this CDDL HEADER, with the 16551bc2a6Smrj# fields enclosed by brackets "[]" replaced with your own identifying 17551bc2a6Smrj# information: Portions Copyright [yyyy] [name of copyright owner] 18551bc2a6Smrj# 19551bc2a6Smrj# CDDL HEADER END 20551bc2a6Smrj# 21551bc2a6Smrj# 22551bc2a6Smrj# uts/i86pc/Makefile.hvm 23551bc2a6Smrj# 24*7f0b8309SEdward Pilatowicz# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 25551bc2a6Smrj# Use is subject to license terms. 26551bc2a6Smrj# 27551bc2a6Smrj# This makefile provides support for building PV drivers that run 28551bc2a6Smrj# in an HVM environment. 29551bc2a6Smrj# 30551bc2a6Smrj 31eb0cc229SedpROOT_HVM_DIR = $(ROOT_PLAT_DIR)/i86hvm 32551bc2a6SmrjROOT_HVM_MOD_DIR = $(ROOT_HVM_DIR)/kernel 33551bc2a6SmrjROOT_HVM_DRV_DIR_32 = $(ROOT_HVM_MOD_DIR)/drv 34551bc2a6SmrjROOT_HVM_DRV_DIR_64 = $(ROOT_HVM_MOD_DIR)/drv/$(MACH64) 35551bc2a6SmrjROOT_HVM_DRV_DIR = $(ROOT_HVM_DRV_DIR_$(CLASS)) 3606bbe1e0SedpROOT_HVM_MISC_DIR_32 = $(ROOT_HVM_MOD_DIR)/misc 3706bbe1e0SedpROOT_HVM_MISC_DIR_64 = $(ROOT_HVM_MOD_DIR)/misc/$(MACH64) 3806bbe1e0SedpROOT_HVM_MISC_DIR = $(ROOT_HVM_MISC_DIR_$(CLASS)) 39eb0cc229SedpUSR_HVM_DIR = $(USR_PLAT_DIR)/i86hvm 40eb0cc229Sedp 41eb0cc229SedpHVM_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/i86hvm/lint-libs/$(OBJS_DIR) 42551bc2a6Smrj 43551bc2a6Smrj# 44eb0cc229Sedp# Define modules. 45551bc2a6Smrj# 46*7f0b8309SEdward PilatowiczHVM_DRV_KMODS = pv_cmdk pv_sd pv_rtls xdf xnf xpv xpvd 47*7f0b8309SEdward PilatowiczHVM_MISC_KMODS = hvm_bootstrap hvm_cmdk hvm_sd 48eb0cc229SedpHVM_KMODS = $(HVM_DRV_KMODS) $(HVM_MISC_KMODS) 49551bc2a6Smrj 50eb0cc229Sedpinclude $(UTSBASE)/i86pc/i86hvm/Makefile.files 51551bc2a6Smrj# 52eb0cc229Sedp# Include common rules. 53551bc2a6Smrj# 54eb0cc229Sedpinclude $(UTSBASE)/i86pc/Makefile.i86pc 55551bc2a6Smrj 56eb0cc229SedpLINTS_DIR = $(OBJS_DIR) 57eb0cc229SedpLINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/lint-libs/$(OBJS_DIR) 58551bc2a6Smrj 59eb0cc229Sedp# 60eb0cc229Sedp# Indicate that we are building for the i86hvm semi-platform. 61eb0cc229Sedp# Also use Solaris specific code in xen public header files. 62eb0cc229Sedp# 63eb0cc229SedpCPPFLAGS += -DXPV_HVM_DRIVER -D_SOLARIS 64eb0cc229SedpASFLAGS += -DXPV_HVM_DRIVER 65