Makefile revision 77f19097b42b4eadd47d2824a7a919b5275dcad0
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn#
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# CDDL HEADER START
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn#
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# The contents of this file are subject to the terms of the
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# Common Development and Distribution License (the "License").
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# You may not use this file except in compliance with the License.
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn#
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# or http://www.opensolaris.org/os/licensing.
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# See the License for the specific language governing permissions
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# and limitations under the License.
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn#
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# When distributing Covered Code, include this CDDL HEADER in each
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# If applicable, add the following below this CDDL HEADER, with the
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# fields enclosed by brackets "[]" replaced with your own identifying
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# information: Portions Copyright [yyyy] [name of copyright owner]
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn#
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# CDDL HEADER END
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn#
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn#
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
2c8454e288252bcfa5e77ea3d35bfed05266b869hajma# Use is subject to license terms.
d5af1880773b35da2da505be54be517b746e7410ludovicp#
d5af1880773b35da2da505be54be517b746e7410ludovicp# ident "%Z%%M% %I% %E% SMI"
d5af1880773b35da2da505be54be517b746e7410ludovicp#
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# This makefile drives the production of all implementation architecture
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# dependent modules for the i86xpv architecture.
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn#
d5af1880773b35da2da505be54be517b746e7410ludovicp
d5af1880773b35da2da505be54be517b746e7410ludovicpUTSBASE = ..
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbninclude Makefile.i86xpv
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn#
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# The following are x86 specific (rather than i86pc) specific modules
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# which are required for the i86pc kernel to completely lint. They are
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# not involved in the build in any other way. In order to minimize
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn# build time, it is assumed that they are up to date.
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn#
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbnINTEL_LIB_DIR = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbnINTEL_LINTS = genunix
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbnLINT_LIBS = $(LINT_LIB) \
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn $(GENUNIX_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn $(PARALLEL_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn $(CLOSED_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbn $(INTEL_LINTS:%=$(INTEL_LIB_DIR)/llib-l%.ln)
d5af1880773b35da2da505be54be517b746e7410ludovicp
d5af1880773b35da2da505be54be517b746e7410ludovicp#
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swift#
d5af1880773b35da2da505be54be517b746e7410ludovicp#
d5af1880773b35da2da505be54be517b746e7410ludovicpdef := TARGET= def
d5af1880773b35da2da505be54be517b746e7410ludovicpall := TARGET= all
d5af1880773b35da2da505be54be517b746e7410ludovicpinstall := TARGET= install
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swiftclean := TARGET= clean
d5af1880773b35da2da505be54be517b746e7410ludovicpclobber := TARGET= clobber
d5af1880773b35da2da505be54be517b746e7410ludovicplint := TARGET= lint
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swiftlintlib := TARGET= lintlib
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swiftmachmodlintlib := TARGET= modlintlib
d550ed97bd4eb1658565af49c77579295d60c46ahajmamodlist := TARGET= modlist
d5af1880773b35da2da505be54be517b746e7410ludovicpmodlist modlist.intel := NO_STATE= -K $$MODSTATE$$$$
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swiftclean.lint := TARGET= clean.lint
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swiftcheck := TARGET= check
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swift
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swift.KEEP_STATE:
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swift
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swift.PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) \
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swift modlist modlist.intel
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swift
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swiftINITIAL_TARGETS = \
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swift genassym \
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swift unix
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbndef all clean clobber clean.lint: setup genassym unix .WAIT \
6df86604699d401d24863654538c078d3750963ashankar_mbn $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS)
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbninstall: install_platforms setup genassym unix .WAIT \
6df86604699d401d24863654538c078d3750963ashankar_mbn $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS)
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbn# list the modules under i86xpv.
6df86604699d401d24863654538c078d3750963ashankar_mbnmodlist: unix $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS)
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbn# list the modules for Install -k i86xpv.
6df86604699d401d24863654538c078d3750963ashankar_mbnmodlist.karch: modlist modlist.intel
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbnmodlist.intel:
6df86604699d401d24863654538c078d3750963ashankar_mbn @cd $(SRC)/uts/intel; pwd; $(MAKE) $(NO_STATE) modlist
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbnlintlib: unix
6df86604699d401d24863654538c078d3750963ashankar_mbn
9def8137e705ec92bc3a2881a8457795c860fdb1shankar_mbnmodlintlib: $(KMODS) $(CLOSED_KMODS)
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbngenassym unix $(KMODS): FRC
6df86604699d401d24863654538c078d3750963ashankar_mbn @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbnsetup: FRC
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbn$(XMODS): FRC
6df86604699d401d24863654538c078d3750963ashankar_mbn @if [ -f $@/Makefile ]; then \
747612c740f3dae2c06b9402fa4679344d115a5ahajma cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
6df86604699d401d24863654538c078d3750963ashankar_mbn else \
6df86604699d401d24863654538c078d3750963ashankar_mbn true; \
6df86604699d401d24863654538c078d3750963ashankar_mbn fi
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbn$(CLOSED_KMODS): FRC
6df86604699d401d24863654538c078d3750963ashankar_mbn cd $(CLOSED)/uts/i86xpv/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbn$(CLOSED_XMODS): FRC
6df86604699d401d24863654538c078d3750963ashankar_mbn @if [ -f $(CLOSED)/uts/i86xpv/$@/Makefile ]; then \
6df86604699d401d24863654538c078d3750963ashankar_mbn cd $(CLOSED)/uts/i86xpv/$@; pwd; \
6df86604699d401d24863654538c078d3750963ashankar_mbn $(MAKE) $(NO_STATE) $(TARGET); \
6df86604699d401d24863654538c078d3750963ashankar_mbn else \
6df86604699d401d24863654538c078d3750963ashankar_mbn true; \
6df86604699d401d24863654538c078d3750963ashankar_mbn fi
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbninstall_h check: FRC
6df86604699d401d24863654538c078d3750963ashankar_mbn @cd sys; pwd; $(MAKE) $(TARGET)
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbn#
6df86604699d401d24863654538c078d3750963ashankar_mbn# Definitions for the /platform directory aliases.
6df86604699d401d24863654538c078d3750963ashankar_mbn# Currently none for i86xpv.
6df86604699d401d24863654538c078d3750963ashankar_mbn#
6df86604699d401d24863654538c078d3750963ashankar_mbnPLAT_LINKS =
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbn#
6df86604699d401d24863654538c078d3750963ashankar_mbn# Make the /platform directories. This is hardwired here because
6df86604699d401d24863654538c078d3750963ashankar_mbn# the first stage of the project (KBI) only implements the userland
6df86604699d401d24863654538c078d3750963ashankar_mbn# changes, but the only reasonable place to record the aliases is
6df86604699d401d24863654538c078d3750963ashankar_mbn# here in kernel land.
6df86604699d401d24863654538c078d3750963ashankar_mbn#
6df86604699d401d24863654538c078d3750963ashankar_mbninstall_platforms: $(ROOT_PSM_DIR) $(USR_PSM_DIR) \
6df86604699d401d24863654538c078d3750963ashankar_mbn $(ROOT_PLAT_LINKS) $(USR_PLAT_LINKS) \
6df86604699d401d24863654538c078d3750963ashankar_mbn $(OEM_USR_PLAT_LINKS)
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbn#
6df86604699d401d24863654538c078d3750963ashankar_mbn# Full kernel lint target.
6df86604699d401d24863654538c078d3750963ashankar_mbn#
6df86604699d401d24863654538c078d3750963ashankar_mbnLINT_TARGET = globallint
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbn# workaround for multiply defined errors
6df86604699d401d24863654538c078d3750963ashankar_mbngloballint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbngloballint:
6df86604699d401d24863654538c078d3750963ashankar_mbn @-$(ECHO) "\nFULL KERNEL: global crosschecks:"
6df86604699d401d24863654538c078d3750963ashankar_mbn @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbnlint: lintlib .WAIT modlintlib .WAIT $(INTEL_LINTS) $(LINT_DEPS)
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbn$(INTEL_LINTS): FRC
6df86604699d401d24863654538c078d3750963ashankar_mbn @cd $(UTSBASE)/intel/$@; pwd; $(MAKE) modlintlib
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbnFRC:
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbninclude ../Makefile.targ
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbn#
6df86604699d401d24863654538c078d3750963ashankar_mbn# Cross-reference customization: build a cross-reference over all of the
6df86604699d401d24863654538c078d3750963ashankar_mbn# i86pc-related directories.
6df86604699d401d24863654538c078d3750963ashankar_mbn#
6df86604699d401d24863654538c078d3750963ashankar_mbnSHARED_XRDIRS = ../i86xpv ../i86pc ../intel ../common
6df86604699d401d24863654538c078d3750963ashankar_mbnXRDIRS = $(SHARED_XRDIRS)
6df86604699d401d24863654538c078d3750963ashankar_mbnCLOSED_XRDIRS1 = $(SHARED_XRDIRS:../%=../% ../../../closed/uts/%)
6df86604699d401d24863654538c078d3750963ashankar_mbnCLOSED_XRDIRS2 = $(CLOSED_XRDIRS1:../../../closed/uts/i86pc=)
6df86604699d401d24863654538c078d3750963ashankar_mbn$(CLOSED_BUILD)XRDIRS = $(CLOSED_XRDIRS2:../../../closed/uts/i86xpv=)
6df86604699d401d24863654538c078d3750963ashankar_mbnXRPRUNE = sun4v sun4u sun4 sfmmu sparc
6df86604699d401d24863654538c078d3750963ashankar_mbn
6df86604699d401d24863654538c078d3750963ashankar_mbncscope.out tags: FRC
6df86604699d401d24863654538c078d3750963ashankar_mbn $(XREF) -x $@
6df86604699d401d24863654538c078d3750963ashankar_mbn