Makefile revision 1e49577a7fcde812700ded04431b49d67cc57d6d
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews#
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# CDDL HEADER START
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User#
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User#
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# or http://www.opensolaris.org/os/licensing.
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# See the License for the specific language governing permissions
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# and limitations under the License.
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User#
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User# If applicable, add the following below this CDDL HEADER, with the
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# CDDL HEADER END
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# uts/sun4u/seattle/Makefile
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# This makefile drives the production of the sun4u seattle platform
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# module.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# sun4u implementation architecture dependent
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Path to the base of the uts directory tree (usually /usr/src/uts).
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserUTSBASE = ../..
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Include common rules.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userinclude $(UTSBASE)/sun4u/seattle/Makefile.seattle
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userdef := TARGET= def
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userall := TARGET= all
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userinstall := TARGET= install
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userinstall_h := TARGET= install_h
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userclean := TARGET= clean
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userclobber := TARGET= clobber
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userlint := TARGET= lint
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userlintlib := TARGET= lintlib
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox Usermodlintlib := TARGET= modlintlib
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Usermodlist := TARGET= modlist
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Usermodlist := NO_STATE= -K $$MODSTATE$$$$
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox Userclean.lint := TARGET= clean.lint
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Huntcheck := TARGET= check
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Default build targets.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User.KEEP_STATE:
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userdef all clean clean.lint clobber modlist: $(SEATTLE_KMODS)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Huntmodlintlib: $(SEATTLE_KMODS)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserLINKED_PLATFORMS = SUNW,Sun-Fire-V245
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Huntinstall: $(ROOT_SEATTLE_DIR) \
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt $(USR_SEATTLE_DIR) \
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt $(USR_SEATTLE_INC_DIR) \
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt $(USR_SEATTLE_SBIN_PRTDIAG) \
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt $(USR_SEATTLE_SBIN_FRUADM) \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(USR_SEATTLE_LIB_DIR) \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%) \
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%) \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(SEATTLE_CRYPTO_LINKS) \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User .WAIT $(SEATTLE_KMODS)
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Huntcheck install_h:
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userlint: modlintlib
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# The 'lint.platmod' target lints the seattle platform module against the sun4u
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# kernel. This ends up doing all the kernel cross-checks, so it takes a couple
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# of minutes. Due to the low ROI, it's not run by default, but it's a good
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# idea to run this if you change os/seattle.c.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan HuntLINT_LIBS = $(LINT_LIB) \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User -L$(SEATTLE_LINT_LIB_DIR) \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt $(CLOSED_LINT_KMODS:%=-l%) \
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userlint.platmod: modlintlib
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont @-$(ECHO) "\nSeattle Platform-dependent module: global crosschecks:"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont$(SEATTLE_KMODS): FRC
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(SEATTLE_CRYPTO_LINKS): $(ROOT_SEATTLE_CRYPTO_DIR_64)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User -$(RM) $(ROOT_SEATTLE_CRYPTO_DIR_64)/$@;
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt $(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_SEATTLE_CRYPTO_DIR_64)/$@
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt#
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# Include common targets.
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt#
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Huntinclude $(UTSBASE)/sun4u/seattle/Makefile.targ
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User