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 sun4u architecture.
#
UTSBASE = ..
#
# The following are SPARC specific (rather than sun4u) specific modules
# which are required for the sun4u 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 sun4u
# 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 sun4u.
# list the modules for Install -k sun4u.
#
# Privilege constants
#
# NOTE: The rules for generating priv_const.c file are shared between all
# processor architectures and should be kept in sync. If they are changed in
# this file make sure that x86 rules are updated as well.
#
#
# Prerequisites
#
# sun4u and sun4v are all built in parallel. Also this Makefile specifies that
# all IMPLEMENTATIONS sun4u sub-platforms are built in parallel. This requires
# appends the '.prereq' string to the original target and executes this Makefile
# to build any prerequisites needed before the full parallel build can start.
# After that make continues with normal targets.
#
# Any build prerequisites for sun4 and IMPLEMENTATIONS builds should be
# described here.
#
# genassym is used to build dtrace and genunix, so it should be built first.
#
# priv_const.c is required to build genunix.
#
# prerequisites.
#
# unix is not required by itself but several sun4u platforms require
#
#
# Various sun4u platforms expect proto/root_sparc/platform/sun4u/include to be
# first.
#
#
# linted in parallel.
#
.PARALLEL: $(LINT_PREREQ)
$(LINT_PREREQ):
#
# Nothing to do with any other prerequisites
#
%.prereq:
#
# Platform inter-dependencies
#
#
# The genunix requires priv_const.c file to be generated first.
#
#
# Rules
#
$(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)
#
# defined in $(IMPLEMENTED_PLATFORM)
# (eg. SUNW,Ultra-1)
#
# 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) \
#
#
$(INS.slink4)
$(INS.slink5)
-$(INS.dir.root.bin)
#
# Full kernel lint target.
#
@pwd
@-$(ECHO) "\nSUN4U 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
# sun4u-related directories.
#
CLOSED_XRDIRS = $(SHARED_XRDIRS:../%=../% ../../../closed/uts/%)
XRDIRS = $(SHARED_XRDIRS)
$(XREF) -x $@