1843e1988Sjohnlev# 2843e1988Sjohnlev# CDDL HEADER START 3843e1988Sjohnlev# 4843e1988Sjohnlev# The contents of this file are subject to the terms of the 5843e1988Sjohnlev# Common Development and Distribution License (the "License"). 6843e1988Sjohnlev# You may not use this file except in compliance with the License. 7843e1988Sjohnlev# 8843e1988Sjohnlev# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9843e1988Sjohnlev# or http://www.opensolaris.org/os/licensing. 10843e1988Sjohnlev# See the License for the specific language governing permissions 11843e1988Sjohnlev# and limitations under the License. 12843e1988Sjohnlev# 13843e1988Sjohnlev# When distributing Covered Code, include this CDDL HEADER in each 14843e1988Sjohnlev# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15843e1988Sjohnlev# If applicable, add the following below this CDDL HEADER, with the 16843e1988Sjohnlev# fields enclosed by brackets "[]" replaced with your own identifying 17843e1988Sjohnlev# information: Portions Copyright [yyyy] [name of copyright owner] 18843e1988Sjohnlev# 19843e1988Sjohnlev# CDDL HEADER END 20843e1988Sjohnlev# 21843e1988Sjohnlev# 22843e1988Sjohnlev# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23843e1988Sjohnlev# Use is subject to license terms. 24843e1988Sjohnlev# 25a0900badSGarrett D'Amore# Copyright 2013 Nexenta Systems, Inc. All rights reserved. 26843e1988Sjohnlev# 27843e1988Sjohnlev# This makefile drives the production of all implementation architecture 28843e1988Sjohnlev# dependent modules for the i86xpv architecture. 29843e1988Sjohnlev# 30843e1988Sjohnlev 31843e1988SjohnlevUTSBASE = .. 32843e1988Sjohnlev 33843e1988Sjohnlevinclude Makefile.i86xpv 34843e1988Sjohnlev 35843e1988Sjohnlevdef := TARGET= def 36843e1988Sjohnlevall := TARGET= all 37843e1988Sjohnlevinstall := TARGET= install 38843e1988Sjohnlevclean := TARGET= clean 39843e1988Sjohnlevclobber := TARGET= clobber 40843e1988Sjohnlevmodlist := TARGET= modlist 41843e1988Sjohnlevmodlist modlist.intel := NO_STATE= -K $$MODSTATE$$$$ 42843e1988Sjohnlevcheck := TARGET= check 43843e1988Sjohnlev 44843e1988Sjohnlev.KEEP_STATE: 45843e1988Sjohnlev 46c0e7977aSJosef 'Jeff' Sipek.PARALLEL: $(PARALLEL_KMODS) $(XMODS) modlist modlist.intel 47843e1988Sjohnlev 48843e1988SjohnlevINITIAL_TARGETS = \ 49843e1988Sjohnlev genassym \ 50a0900badSGarrett D'Amore unix \ 51a0900badSGarrett D'Amore cpu/scripts 52843e1988Sjohnlev 53*0aaef2f5SRichard Lowedef all clean clobber: setup genassym unix .WAIT \ 54c0e7977aSJosef 'Jeff' Sipek $(KMODS) $(XMODS) 55843e1988Sjohnlev 56843e1988Sjohnlevinstall: install_platforms setup genassym unix .WAIT \ 57c0e7977aSJosef 'Jeff' Sipek $(KMODS) $(XMODS) 58843e1988Sjohnlev 59*0aaef2f5SRichard Loweclean: 60b6805bf7SGordon Ross 61843e1988Sjohnlev# list the modules under i86xpv. 62c0e7977aSJosef 'Jeff' Sipekmodlist: unix $(KMODS) $(XMODS) 63843e1988Sjohnlev 64843e1988Sjohnlev# list the modules for Install -k i86xpv. 65843e1988Sjohnlevmodlist.karch: modlist modlist.intel 66843e1988Sjohnlev 67843e1988Sjohnlevmodlist.intel: 68843e1988Sjohnlev @cd $(SRC)/uts/intel; pwd; $(MAKE) $(NO_STATE) modlist 69843e1988Sjohnlev 70843e1988Sjohnlevgenassym unix $(KMODS): FRC 71843e1988Sjohnlev @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) 72843e1988Sjohnlev 73843e1988Sjohnlevsetup: FRC 74a0900badSGarrett D'Amore @cd cpu/scripts; pwd; $(MAKE) $(TARGET) 75843e1988Sjohnlev 76843e1988Sjohnlev$(XMODS): FRC 77843e1988Sjohnlev @if [ -f $@/Makefile ]; then \ 78843e1988Sjohnlev cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \ 79843e1988Sjohnlev else \ 80843e1988Sjohnlev true; \ 81843e1988Sjohnlev fi 82843e1988Sjohnlev 83843e1988Sjohnlevinstall_h check: FRC 84843e1988Sjohnlev @cd sys; pwd; $(MAKE) $(TARGET) 85843e1988Sjohnlev 86843e1988Sjohnlev# 87843e1988Sjohnlev# Definitions for the /platform directory aliases. 88843e1988Sjohnlev# Currently none for i86xpv. 89843e1988Sjohnlev# 90843e1988SjohnlevPLAT_LINKS = 91843e1988Sjohnlev 92843e1988Sjohnlev# 93843e1988Sjohnlev# Make the /platform directories. This is hardwired here because 94843e1988Sjohnlev# the first stage of the project (KBI) only implements the userland 95843e1988Sjohnlev# changes, but the only reasonable place to record the aliases is 96843e1988Sjohnlev# here in kernel land. 97843e1988Sjohnlev# 98843e1988Sjohnlevinstall_platforms: $(ROOT_PSM_DIR) $(USR_PSM_DIR) \ 99843e1988Sjohnlev $(ROOT_PLAT_LINKS) $(USR_PLAT_LINKS) \ 100843e1988Sjohnlev $(OEM_USR_PLAT_LINKS) 101843e1988Sjohnlev 102843e1988SjohnlevFRC: 103843e1988Sjohnlev 104843e1988Sjohnlevinclude ../Makefile.targ 105843e1988Sjohnlev 106843e1988Sjohnlev# 107843e1988Sjohnlev# Cross-reference customization: build a cross-reference over all of the 108843e1988Sjohnlev# i86pc-related directories. 109843e1988Sjohnlev# 110c0e7977aSJosef 'Jeff' SipekXRDIRS = ../i86xpv ../i86pc ../intel ../common 111843e1988SjohnlevXRPRUNE = sun4v sun4u sun4 sfmmu sparc 112843e1988Sjohnlev 113843e1988Sjohnlevcscope.out tags: FRC 114843e1988Sjohnlev $(XREF) -x $@ 115