Makefile revision 67b33ca46cae443745cd6722c5b060f79e5fa109
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# This makefile drives the production of all implementation architecture
# dependent modules for the sun4v architecture.
#
UTSBASE = ..
#
# The following are SPARC specific (rather than sun4v) specific modules
# which are required for the sun4v kernel to completely lint. They are
# not involved in the build in any other way. In order to minimize
# build time, it is assumed that they are up to date. But since sun4v
# is really a separate architecture we cannot use the v7 sparc modules.
#
#
#
#
# Override for CPU_KMODS... they cannot be built
# in parallel
.NO_PARALLEL: $(CPU_KMODS)
# list the modules under sun4v.
# list the modules for Install -k sun4v.
$(IMPLEMENTATIONS): FRC
@if [ -f $@/Makefile ]; then \
else \
true; \
fi
$(CLOSED_XMODS): FRC
else \
true; \
fi
$(CLOSED_KMODS): FRC
#
# Rules for the /platforms directories. This is hardwired here because
# the first stage of the project (KBI) only implements the userland
# changes, but the only reasonable place to record the aliases is
# here in kernel land.
#
$(ROOT_PLAT_DIRS): $(ROOT_PLAT_DIR)
-$(INS.dir.root.sys)
$(INS.slink1)
#
# defined in $(IMPLEMENTED_PLATFORM)
#
# Foreach $(IMPLEMENTED_PLATFORM) there can be a list of $(LINKED_PLATFORMS)
# that are linked to it.
#
-$(INS.dir.root.sys)
#
# to it's corresponding $(IMPLEMENTED_PLATFORM).
#
$(USR_PLAT_DIRS): $(USR_PLAT_DIR)
$(INS.slink3)
#
# Make the /platforms directories. This is hardwired here because
# the first stage of the project (KBI) only implements the userland
# changes, but the only reasonable place to record the aliases is
# here in kernel land.
#
$(ROOT_PLAT_DIRS) $(USR_PLAT_DIRS) \
$(USR_DESKTOP_DIR) $(USR_DESKTOP_INC_DIR) \
$(USR_STPAUL_DIR) $(USR_STPAUL_SBIN_DIR) \
$(USR_STPAUL_LIB_DIR) \
$(USR_GLENDALE_LIB_DIR) \
$(USR_HURON_DIR) \
$(USR_HURON_SBIN_DIR) $(USR_HURON_LIB_DIR) \
$(USR_MARAMBA_DIR) $(USR_MARAMBA_SBIN_DIR) \
$(USR_MARAMBA_LIB_DIR) \
$(USR_THUNDER_DIR) $(USR_THUNDER_SBIN_DIR) \
$(USR_THUNDER_LIB_DIR) \
$(USR_TURGO_DIR) $(USR_TURGO_SBIN_DIR) \
$(USR_TURGO_LIB_DIR) \
$(USR_CONGO_DIR) $(USR_CONGO_SBIN_DIR) \
$(USR_CONGO_LIB_DIR) \
$(USR_MONZA_DIR) \
#
#
$(INS.slink4)
$(INS.slink5)
-$(INS.dir.root.bin)
$(USR_STPAUL_DIR): $(USR_SUN4V_PLAT_DIR)
-$(INS.dir.root.sys)
$(INS.slink5)
$(USR_STPAUL_LIB_DIR): $(USR_STPAUL_DIR)
-$(INS.dir.root.bin)
$(USR_HURON_DIR): $(USR_SUN4V_PLAT_DIR)
-$(INS.dir.root.sys)
$(USR_HURON_SBIN_DIR): $(USR_HURON_DIR)
$(INS.slink5)
$(USR_HURON_LIB_DIR): $(USR_HURON_DIR)
-$(INS.dir.root.bin)
-$(INS.dir.root.sys)
$(INS.slink5)
-$(INS.dir.root.bin)
-$(INS.dir.root.sys)
$(INS.slink5)
-$(INS.dir.root.bin)
-$(INS.dir.root.sys)
$(INS.slink5)
-$(INS.dir.root.bin)
$(USR_TURGO_DIR): $(USR_SUN4V_PLAT_DIR)
-$(INS.dir.root.sys)
$(USR_TURGO_SBIN_DIR): $(USR_TURGO_DIR)
$(INS.slink5)
$(USR_TURGO_LIB_DIR): $(USR_TURGO_DIR)
-$(INS.dir.root.bin)
$(USR_CONGO_DIR): $(USR_SUN4V_PLAT_DIR)
-$(INS.dir.root.sys)
$(USR_CONGO_SBIN_DIR): $(USR_CONGO_DIR)
$(INS.slink5)
$(USR_CONGO_LIB_DIR): $(USR_CONGO_DIR)
-$(INS.dir.root.bin)
$(USR_MONZA_DIR): $(USR_SUN4V_PLAT_DIR)
-$(INS.dir.root.sys)
$(USR_MONZA_SBIN_DIR): $(USR_MONZA_DIR)
-$(INS.dir.root.sys)
$(INS.slink7)
#
# Full kernel lint target.
#
@-$(ECHO) "\nSUN4V KERNEL: global crosschecks:"
# EXPORT DELETE START
sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
# EXPORT DELETE END
#
# Cross-reference customization: build a cross-reference over all of the
# sun4v-related directories.
#
CLOSED_XRDIRS = $(SHARED_XRDIRS:../%=../% ../../../closed/uts/%)
XRDIRS = $(SHARED_XRDIRS)
$(XREF) -x $@