1eb0cc229Sedp# 2eb0cc229Sedp# CDDL HEADER START 3eb0cc229Sedp# 4eb0cc229Sedp# The contents of this file are subject to the terms of the 5eb0cc229Sedp# Common Development and Distribution License (the "License"). 6eb0cc229Sedp# You may not use this file except in compliance with the License. 7eb0cc229Sedp# 8eb0cc229Sedp# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9eb0cc229Sedp# or http://www.opensolaris.org/os/licensing. 10eb0cc229Sedp# See the License for the specific language governing permissions 11eb0cc229Sedp# and limitations under the License. 12eb0cc229Sedp# 13eb0cc229Sedp# When distributing Covered Code, include this CDDL HEADER in each 14eb0cc229Sedp# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15eb0cc229Sedp# If applicable, add the following below this CDDL HEADER, with the 16eb0cc229Sedp# fields enclosed by brackets "[]" replaced with your own identifying 17eb0cc229Sedp# information: Portions Copyright [yyyy] [name of copyright owner] 18eb0cc229Sedp# 19eb0cc229Sedp# CDDL HEADER END 20eb0cc229Sedp# 21eb0cc229Sedp# 22eb0cc229Sedp# uts/i86pc/Makefile.hvm 23eb0cc229Sedp# 24*7f0b8309SEdward Pilatowicz# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 25eb0cc229Sedp# Use is subject to license terms. 26eb0cc229Sedp# 27eb0cc229Sedp# This makefile provides support for building PV drivers that run 28eb0cc229Sedp# in an HVM environment. 29eb0cc229Sedp# 30eb0cc229Sedp 31eb0cc229SedpROOT_HVM_DIR = $(ROOT_PLAT_DIR)/i86hvm 32eb0cc229SedpROOT_HVM_MOD_DIR = $(ROOT_HVM_DIR)/kernel 33eb0cc229SedpROOT_HVM_DRV_DIR_32 = $(ROOT_HVM_MOD_DIR)/drv 34eb0cc229SedpROOT_HVM_DRV_DIR_64 = $(ROOT_HVM_MOD_DIR)/drv/$(MACH64) 35eb0cc229SedpROOT_HVM_DRV_DIR = $(ROOT_HVM_DRV_DIR_$(CLASS)) 36eb0cc229SedpROOT_HVM_MISC_DIR_32 = $(ROOT_HVM_MOD_DIR)/misc 37eb0cc229SedpROOT_HVM_MISC_DIR_64 = $(ROOT_HVM_MOD_DIR)/misc/$(MACH64) 38eb0cc229SedpROOT_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) 42eb0cc229Sedp 43eb0cc229Sedp# 44eb0cc229Sedp# Define modules. 45eb0cc229Sedp# 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) 49eb0cc229Sedp 50eb0cc229Sedpinclude $(UTSBASE)/i86pc/i86hvm/Makefile.files 51eb0cc229Sedp# 52eb0cc229Sedp# Include common rules. 53eb0cc229Sedp# 54eb0cc229Sedpinclude $(UTSBASE)/i86pc/Makefile.i86pc 55eb0cc229Sedp 56eb0cc229SedpLINTS_DIR = $(OBJS_DIR) 57eb0cc229SedpLINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/lint-libs/$(OBJS_DIR) 58eb0cc229Sedp 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