843e19887f64dde75055cf8842fc4db2171eff45johnlev# CDDL HEADER START
843e19887f64dde75055cf8842fc4db2171eff45johnlev# The contents of this file are subject to the terms of the
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Common Development and Distribution License (the "License").
843e19887f64dde75055cf8842fc4db2171eff45johnlev# You may not use this file except in compliance with the License.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
843e19887f64dde75055cf8842fc4db2171eff45johnlev# See the License for the specific language governing permissions
843e19887f64dde75055cf8842fc4db2171eff45johnlev# and limitations under the License.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# When distributing Covered Code, include this CDDL HEADER in each
843e19887f64dde75055cf8842fc4db2171eff45johnlev# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# If applicable, add the following below this CDDL HEADER, with the
843e19887f64dde75055cf8842fc4db2171eff45johnlev# fields enclosed by brackets "[]" replaced with your own identifying
843e19887f64dde75055cf8842fc4db2171eff45johnlev# information: Portions Copyright [yyyy] [name of copyright owner]
843e19887f64dde75055cf8842fc4db2171eff45johnlev# CDDL HEADER END
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Use is subject to license terms.
a0900badd8eb6bcca99411c8906b483e84f2da91Garrett D'Amore# Copyright 2013 Nexenta Systems, Inc. All rights reserved.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# This makefile drives the production of all implementation architecture
843e19887f64dde75055cf8842fc4db2171eff45johnlev# dependent modules for the i86xpv architecture.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# The following are x86 specific (rather than i86pc) specific modules
843e19887f64dde75055cf8842fc4db2171eff45johnlev# which are required for the i86pc kernel to completely lint. They are
843e19887f64dde75055cf8842fc4db2171eff45johnlev# not involved in the build in any other way. In order to minimize
843e19887f64dde75055cf8842fc4db2171eff45johnlev# build time, it is assumed that they are up to date.
843e19887f64dde75055cf8842fc4db2171eff45johnlevINTEL_LIB_DIR = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)
c0e7977a434048a8bc7386ea0e8befaa77a646cfJosef 'Jeff' Sipek.PARALLEL: $(PARALLEL_KMODS) $(XMODS) modlist modlist.intel
843e19887f64dde75055cf8842fc4db2171eff45johnlevdef all clean clobber clean.lint: setup genassym unix .WAIT \
843e19887f64dde75055cf8842fc4db2171eff45johnlevinstall: install_platforms setup genassym unix .WAIT \
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross# Need to clean in here too because of lint.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# list the modules under i86xpv.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# list the modules for Install -k i86xpv.
843e19887f64dde75055cf8842fc4db2171eff45johnlev @cd $(SRC)/uts/intel; pwd; $(MAKE) $(NO_STATE) modlist
843e19887f64dde75055cf8842fc4db2171eff45johnlev @if [ -f $@/Makefile ]; then \
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Definitions for the /platform directory aliases.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Currently none for i86xpv.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Make the /platform directories. This is hardwired here because
843e19887f64dde75055cf8842fc4db2171eff45johnlev# the first stage of the project (KBI) only implements the userland
843e19887f64dde75055cf8842fc4db2171eff45johnlev# changes, but the only reasonable place to record the aliases is
843e19887f64dde75055cf8842fc4db2171eff45johnlev# here in kernel land.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Full kernel lint target.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# workaround for multiply defined errors
843e19887f64dde75055cf8842fc4db2171eff45johnlevgloballint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross @-$(LINT) $(LINTFLAGS) $(LINT_LIB) $(LINT_LIBS) 2>&1 | $(LGREP.2)
843e19887f64dde75055cf8842fc4db2171eff45johnlevlint: lintlib .WAIT modlintlib .WAIT $(INTEL_LINTS) $(LINT_DEPS)
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Cross-reference customization: build a cross-reference over all of the
843e19887f64dde75055cf8842fc4db2171eff45johnlev# i86pc-related directories.