17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 588543b5cSkrishna# Common Development and Distribution License (the "License"). 688543b5cSkrishna# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 227adfacf3Sml# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 25fe7a23c8SAndy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association. 26fe7a23c8SAndy Fiddaman# 277c478bd9Sstevel@tonic-gate# This makefile drives the production of all implementation architecture 287c478bd9Sstevel@tonic-gate# dependent modules for the i86pc architecture. 297c478bd9Sstevel@tonic-gate# 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gateUTSBASE = .. 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gateinclude Makefile.i86pc 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gate# 367c478bd9Sstevel@tonic-gate# 377c478bd9Sstevel@tonic-gate# 387c478bd9Sstevel@tonic-gatedef := TARGET= def 397c478bd9Sstevel@tonic-gateall := TARGET= all 407c478bd9Sstevel@tonic-gateinstall := TARGET= install 41a546187aSedpinstall_h := TARGET= install_h 427c478bd9Sstevel@tonic-gateclean := TARGET= clean 437c478bd9Sstevel@tonic-gateclobber := TARGET= clobber 44fb9f9b97Skupfermodlist := TARGET= modlist 45fb9f9b97Skupfermodlist modlist.intel := NO_STATE= -K $$MODSTATE$$$$ 467c478bd9Sstevel@tonic-gatecheck := TARGET= check 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gate.KEEP_STATE: 497c478bd9Sstevel@tonic-gate 50c0e7977aSJosef 'Jeff' Sipek.PARALLEL: $(PARALLEL_KMODS) $(XMODS) modlist modlist.intel 517c478bd9Sstevel@tonic-gate 527aec1d6eScindiINITIAL_TARGETS = \ 537aec1d6eScindi genassym \ 547aec1d6eScindi unix \ 557aec1d6eScindi cpu/scripts 567aec1d6eScindi 57fe7a23c8SAndy Fiddamandef all clean clobber: setup genassym unix .WAIT \ 58c0e7977aSJosef 'Jeff' Sipek $(KMODS) $(XMODS) $(IMPLEMENTATIONS) 597c478bd9Sstevel@tonic-gate 607aec1d6eScindiinstall: install_platforms setup genassym unix .WAIT \ 61c0e7977aSJosef 'Jeff' Sipek $(KMODS) $(XMODS) $(IMPLEMENTATIONS) 62fb9f9b97Skupfer 63fb9f9b97Skupfer# list the modules under i86pc. 64c0e7977aSJosef 'Jeff' Sipekmodlist: unix $(KMODS) $(XMODS) $(IMPLEMENTATIONS) 65fb9f9b97Skupfer 66fb9f9b97Skupfer# list the modules for Install -k i86pc. 67fb9f9b97Skupfermodlist.karch: modlist modlist.intel 68fb9f9b97Skupfer 69fb9f9b97Skupfermodlist.intel: 70fb9f9b97Skupfer @cd $(SRC)/uts/intel; pwd; $(MAKE) $(NO_STATE) modlist 717c478bd9Sstevel@tonic-gate 727c478bd9Sstevel@tonic-gategenassym unix $(KMODS): FRC 73fb9f9b97Skupfer @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) 747c478bd9Sstevel@tonic-gate 757aec1d6eScindisetup: FRC 764156fc34Sgavinm @cd cpu/scripts; pwd; $(MAKE) $(TARGET) 777aec1d6eScindi 78eb0cc229Sedp$(IMPLEMENTATIONS): FRC 79eb0cc229Sedp @cd $@; pwd; THISIMPL=$@ $(MAKE) $(NO_STATE) $(TARGET) 80eb0cc229Sedp 817c478bd9Sstevel@tonic-gate$(XMODS): FRC 82*3aa6c130SRichard Lowe cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) 83fb9f9b97Skupfer 84eb0cc229Sedpinstall_h check: $(IMPLEMENTATIONS) FRC 857c478bd9Sstevel@tonic-gate @cd sys; pwd; $(MAKE) $(TARGET) 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gate# 887c478bd9Sstevel@tonic-gate# Definitions for the /platform directory aliases. 897c478bd9Sstevel@tonic-gate# Currently none for i86pc. 907c478bd9Sstevel@tonic-gate# 917c478bd9Sstevel@tonic-gatePLAT_LINKS = 927c478bd9Sstevel@tonic-gate 937c478bd9Sstevel@tonic-gate# 947c478bd9Sstevel@tonic-gate# Make the /platform directories. This is hardwired here because 957c478bd9Sstevel@tonic-gate# the first stage of the project (KBI) only implements the userland 967c478bd9Sstevel@tonic-gate# changes, but the only reasonable place to record the aliases is 977c478bd9Sstevel@tonic-gate# here in kernel land. 987c478bd9Sstevel@tonic-gate# 997c478bd9Sstevel@tonic-gateinstall_platforms: $(ROOT_PSM_DIR) $(USR_PSM_DIR) \ 1007c478bd9Sstevel@tonic-gate $(ROOT_PLAT_LINKS) $(USR_PLAT_LINKS) \ 1017c478bd9Sstevel@tonic-gate $(OEM_USR_PLAT_LINKS) 1027c478bd9Sstevel@tonic-gate 1037c478bd9Sstevel@tonic-gateinclude ../Makefile.targ 1047c478bd9Sstevel@tonic-gate 1057c478bd9Sstevel@tonic-gate# 1067c478bd9Sstevel@tonic-gate# Cross-reference customization: build a cross-reference over all of the 1077c478bd9Sstevel@tonic-gate# i86pc-related directories. 1087c478bd9Sstevel@tonic-gate# 109c0e7977aSJosef 'Jeff' SipekXRDIRS = ../i86pc ../intel ../common 1109b3a7842SCheng Sean Ye 1117c478bd9Sstevel@tonic-gateXRPRUNE = sun4u sun4 1127c478bd9Sstevel@tonic-gate 1137c478bd9Sstevel@tonic-gatecscope.out tags: FRC 1147c478bd9Sstevel@tonic-gate $(XREF) -x $@ 115