Makefile revision ae115bc77f6fcde83175c75b4206dc2e50747966
2cf1d5b0986d38e60db88a7b2360798e539d7636Tinderbox User# CDDL HEADER START
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# The contents of this file are subject to the terms of the
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# Common Development and Distribution License (the "License").
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# You may not use this file except in compliance with the License.
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d458ef4acb25b66d39525cca3ab5a64c4f210a0bTinderbox User# See the License for the specific language governing permissions
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# and limitations under the License.
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# When distributing Covered Code, include this CDDL HEADER in each
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# If applicable, add the following below this CDDL HEADER, with the
d458ef4acb25b66d39525cca3ab5a64c4f210a0bTinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# CDDL HEADER END
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# Use is subject to license terms.
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# ident "%Z%%M% %I% %E% SMI"
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# This makefile drives the production of all implementation architecture
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# dependent modules for the i86pc architecture.
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# The following are x86 specific (rather than i86pc) specific modules
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# which are required for the i86pc kernel to completely lint. They are
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# not involved in the build in any other way. In order to minimize
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# build time, it is assumed that they are up to date.
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox UserINTEL_LIB_DIR = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User $(GENUNIX_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User $(PARALLEL_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User $(CLOSED_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
9c8c1a04853db32f2578a269cab9239c4f4c8b9bTinderbox Usermodlist modlist.intel := NO_STATE= -K $$MODSTATE$$$$
9c8c1a04853db32f2578a269cab9239c4f4c8b9bTinderbox User.PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) \
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox Userdef all clean clobber clean.lint: setup genassym unix .WAIT \
9c8c1a04853db32f2578a269cab9239c4f4c8b9bTinderbox User $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS)
9c8c1a04853db32f2578a269cab9239c4f4c8b9bTinderbox Userinstall: install_platforms setup genassym unix .WAIT \
9c8c1a04853db32f2578a269cab9239c4f4c8b9bTinderbox User $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS)
9c8c1a04853db32f2578a269cab9239c4f4c8b9bTinderbox User# list the modules under i86pc.
9c8c1a04853db32f2578a269cab9239c4f4c8b9bTinderbox Usermodlist: unix $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS)
9c8c1a04853db32f2578a269cab9239c4f4c8b9bTinderbox User# list the modules for Install -k i86pc.
9c8c1a04853db32f2578a269cab9239c4f4c8b9bTinderbox User @cd $(SRC)/uts/intel; pwd; $(MAKE) $(NO_STATE) modlist
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User @if [ -f $@/Makefile ]; then \
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User cd $(CLOSED)/uts/i86pc/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User @if [ -f $(CLOSED)/uts/i86pc/$@/Makefile ]; then \
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# Definitions for the /platform directory aliases.
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# Currently none for i86pc.
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# Make the /platform directories. This is hardwired here because
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# the first stage of the project (KBI) only implements the userland
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# changes, but the only reasonable place to record the aliases is
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# here in kernel land.
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox Userinstall_platforms: $(ROOT_PSM_DIR) $(USR_PSM_DIR) \
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# Full kernel lint target.
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User# workaround for multiply defined errors
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox Usergloballint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User @-$(ECHO) "\nFULL KERNEL: global crosschecks:"
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox Userlint: lintlib .WAIT modlintlib .WAIT $(INTEL_LINTS) $(LINT_DEPS)
49f29a1d550c15d691b5a9162bc089d0fba12adfTinderbox User @cd $(UTSBASE)/intel/$@; pwd; $(MAKE) modlintlib
9c8c1a04853db32f2578a269cab9239c4f4c8b9bTinderbox User# Cross-reference customization: build a cross-reference over all of the
9c8c1a04853db32f2578a269cab9239c4f4c8b9bTinderbox User# i86pc-related directories.
9c8c1a04853db32f2578a269cab9239c4f4c8b9bTinderbox User$(CLOSED_BUILD)XRDIRS = $(SHARED_XRDIRS:../%=../% ../../../closed/uts/%)