1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# CDDL HEADER START
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# The contents of this file are subject to the terms of the
ae115bc77f6fcde83175c75b4206dc2e50747966mrj# Common Development and Distribution License (the "License").
ae115bc77f6fcde83175c75b4206dc2e50747966mrj# You may not use this file except in compliance with the License.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# or http://www.opensolaris.org/os/licensing.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# See the License for the specific language governing permissions
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# and limitations under the License.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# When distributing Covered Code, include this CDDL HEADER in each
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# If applicable, add the following below this CDDL HEADER, with the
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# fields enclosed by brackets "[]" replaced with your own identifying
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# information: Portions Copyright [yyyy] [name of copyright owner]
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# CDDL HEADER END
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# This makefile drives the production of the sun4u schumacher platform
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# module.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# sun4u implementation architecture dependent
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# Path to the base of the uts directory tree (usually /usr/src/uts).
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonUTSBASE = ../..
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# Include common rules.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsoninclude $(UTSBASE)/sun4u/schumacher/Makefile.schumacher
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsondef := TARGET= def
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonall := TARGET= all
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsoninstall := TARGET= install
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsoninstall_h := TARGET= install_h
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonclean := TARGET= clean
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonclobber := TARGET= clobber
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonlint := TARGET= lint
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonlintlib := TARGET= lintlib
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonmodlintlib := TARGET= modlintlib
fb9f9b975cb9214fec5dab37d461199adab9b964kupfermodlist := TARGET= modlist
fb9f9b975cb9214fec5dab37d461199adab9b964kupfermodlist := NO_STATE= -K $$MODSTATE$$$$
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonclean.lint := TARGET= clean.lint
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsoncheck := TARGET= check
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# Default build targets.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson.KEEP_STATE:
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
fb9f9b975cb9214fec5dab37d461199adab9b964kupferdef all clean clean.lint clobber modlist: $(SCHUMACHER_KMODS)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonmodlintlib: $(SCHUMACHER_KMODS)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsoninstall: $(ROOT_SCHUMACHER_DIR) \
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson $(USR_SCHUMACHER_DIR) \
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson $(USR_SCHUMACHER_INC_DIR) \
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson $(USR_SCHUMACHER_SBIN_DIR) \
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson $(USR_SCHUMACHER_SBIN_PRTDIAG) \
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson $(USR_SCHUMACHER_SBIN_FRUADM) \
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson $(USR_SCHUMACHER_LIB_DIR) \
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson $(SCHUMACHER_CRYPTO_LINKS) \
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson $(SCHUMACHER_KMODS)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsoncheck install_h:
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonlint: modlintlib
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# The 'lint.platmod' target lints the schumacher platform module against the sun4u
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# kernel. This ends up doing all the kernel cross-checks, so it takes a couple
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# of minutes.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonLINT_LIBS = $(LINT_LIB) \
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson -L$(SCHUMACHER_LINT_LIB_DIR) \
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
fb9f9b975cb9214fec5dab37d461199adab9b964kupfer $(CLOSED_LINT_KMODS:%=-l%) \
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonlint.platmod: modlintlib
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson @-$(ECHO) "\nSchumacher Platform-dependent module: global crosschecks:"
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson$(SCHUMACHER_KMODS): FRC
fb9f9b975cb9214fec5dab37d461199adab9b964kupfer @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson$(SCHUMACHER_CRYPTO_LINKS): $(ROOT_SCHUMACHER_CRYPTO_DIR_64)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson -$(RM) $(ROOT_SCHUMACHER_CRYPTO_DIR_64)/$@;
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson $(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_SCHUMACHER_CRYPTO_DIR_64)/$@
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# Include common targets.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsoninclude $(UTSBASE)/sun4u/schumacher/Makefile.targ