Makefile revision fb9f9b975cb9214fec5dab37d461199adab9b964
c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen#
c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen# CDDL HEADER START
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen# The contents of this file are subject to the terms of the
d9fdacd5fb3e07997e5c389739d2054f0c8441d8Timo Sirainen# Common Development and Distribution License (the "License").
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# You may not use this file except in compliance with the License.
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen#
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5fb3bff645380804c9db2510940c41db6b8fdb01Timo Sirainen# or http://www.opensolaris.org/os/licensing.
5fb3bff645380804c9db2510940c41db6b8fdb01Timo Sirainen# See the License for the specific language governing permissions
15b9759df8e4f6fb00c115353827a2aebbebfebcTimo Sirainen# and limitations under the License.
15b9759df8e4f6fb00c115353827a2aebbebfebcTimo Sirainen#
15b9759df8e4f6fb00c115353827a2aebbebfebcTimo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen#
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen# CDDL HEADER END
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen#
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Sirainen#
d6badc27cd6e8d3398877b6766cb0aaeef3a7800Timo Sirainen# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
d6badc27cd6e8d3398877b6766cb0aaeef3a7800Timo Sirainen# Use is subject to license terms.
d6badc27cd6e8d3398877b6766cb0aaeef3a7800Timo Sirainen#
f7539a17ea306191b53b8f5e752e228937df9ec3Timo Sirainen# ident "%Z%%M% %I% %E% SMI"
2dd39e478269d6fb0bb26d12b394aa30ee965e38Timo Sirainen#
2dd39e478269d6fb0bb26d12b394aa30ee965e38Timo Sirainen# uts/sun4u/boston/Makefile
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# This makefile drives the production of the sun4u boston platform
6ef7e31619edfaa17ed044b45861d106a86191efTimo Sirainen# module.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# sun4u implementation architecture dependent
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
04ab375449dd97eed50ada88dd0df2abab01cfeeTimo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Path to the base of the uts directory tree (usually /usr/src/uts).
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
6ef7e31619edfaa17ed044b45861d106a86191efTimo SirainenUTSBASE = ../..
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Sirainen
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Sirainen#
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen# Include common rules.
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen#
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Siraineninclude $(UTSBASE)/sun4u/boston/Makefile.boston
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainendef := TARGET= def
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Sirainenall := TARGET= all
57a8c6a95e4bce3eeaba36985adb81c07dd683ffTimo Siraineninstall := TARGET= install
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Siraineninstall_h := TARGET= install_h
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Sirainenclean := TARGET= clean
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Sirainenclobber := TARGET= clobber
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenlint := TARGET= lint
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenlintlib := TARGET= lintlib
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Sirainenmodlintlib := TARGET= modlintlib
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Sirainenmodlist := TARGET= modlist
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainenmodlist := NO_STATE= -K $$MODSTATE$$$$
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainenclean.lint := TARGET= clean.lint
ff7056842f14fd3b30a2d327dfab165b9d15dd30Timo Sirainencheck := TARGET= check
e8490a52a1bc71bc53034e68f464435684ad810fTimo Sirainen
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen#
ccc895c0358108d2304239063e940b7d75f364abTimo Sirainen# Default build targets.
ccc895c0358108d2304239063e940b7d75f364abTimo Sirainen#
8d630c15a8ed6f85553467c3a231a273defca5f6Timo Sirainen.KEEP_STATE:
cb05ecbd96ddb5e53c1850d27434541138a3f284Timo Sirainen
cb05ecbd96ddb5e53c1850d27434541138a3f284Timo Sirainendef all clean clean.lint clobber modlist: $(BOSTON_KMODS)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
c5ab90cfad9cc3e33bcb1baeb30ffc82a7b7053aTimo Sirainenmodlintlib: $(BOSTON_KMODS)
c5ab90cfad9cc3e33bcb1baeb30ffc82a7b7053aTimo Sirainen
c5ab90cfad9cc3e33bcb1baeb30ffc82a7b7053aTimo Sirainen# EXPORT DELETE START
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Sirainen#
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen# aes256 is delivered in the SUNWcryr package which is removed from
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# the EXPORT_SRC build.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo SirainenBOSTON_CRYPTO_LINKS += aes256
6ef7e31619edfaa17ed044b45861d106a86191efTimo Sirainen# EXPORT DELETE END
6ef7e31619edfaa17ed044b45861d106a86191efTimo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Siraineninstall: $(ROOT_BOSTON_DIR) \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen $(USR_BOSTON_DIR) \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen $(USR_BOSTON_INC_DIR) \
88187ee880b4829443e0d55ea7d145d9d5880217Timo Sirainen $(USR_BOSTON_SBIN_EEPROM) \
88187ee880b4829443e0d55ea7d145d9d5880217Timo Sirainen $(USR_BOSTON_SBIN_PRTDIAG) \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen $(USR_BOSTON_SBIN_FRUADM) \
d3442384ca53d4b18a493db7dd0b000f470419cfTimo Sirainen $(USR_BOSTON_SBIN_TRAPSTAT) \
d3442384ca53d4b18a493db7dd0b000f470419cfTimo Sirainen $(USR_BOSTON_LIB_DIR) \
d3442384ca53d4b18a493db7dd0b000f470419cfTimo Sirainen $(BOSTON_CRYPTO_LINKS) \
d3442384ca53d4b18a493db7dd0b000f470419cfTimo Sirainen .WAIT $(BOSTON_KMODS)
d3442384ca53d4b18a493db7dd0b000f470419cfTimo Sirainen
d3442384ca53d4b18a493db7dd0b000f470419cfTimo Sirainencheck install_h:
d3442384ca53d4b18a493db7dd0b000f470419cfTimo Sirainen
d3442384ca53d4b18a493db7dd0b000f470419cfTimo Sirainenlint: modlintlib
d3442384ca53d4b18a493db7dd0b000f470419cfTimo Sirainen
d3442384ca53d4b18a493db7dd0b000f470419cfTimo Sirainen#
d756ebcfa96bd7cff02097c8f26df9df368b81b1Timo Sirainen# The 'lint.platmod' target lints the boston platform module against the sun4u
d756ebcfa96bd7cff02097c8f26df9df368b81b1Timo Sirainen# kernel. This ends up doing all the kernel cross-checks, so it takes a couple
d756ebcfa96bd7cff02097c8f26df9df368b81b1Timo Sirainen# of minutes. Due to the low ROI, it's not run by default, but it's a good
c979eeda1f46483d9c963e265786b701d7683d77Timo Sirainen# idea to run this if you change os/boston.c.
c979eeda1f46483d9c963e265786b701d7683d77Timo Sirainen#
d756ebcfa96bd7cff02097c8f26df9df368b81b1Timo SirainenLINT_LIBS = $(LINT_LIB) \
5fb3bff645380804c9db2510940c41db6b8fdb01Timo Sirainen -L$(BOSTON_LINT_LIB_DIR) \
d756ebcfa96bd7cff02097c8f26df9df368b81b1Timo Sirainen -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
d756ebcfa96bd7cff02097c8f26df9df368b81b1Timo Sirainen $(CLOSED_LINT_KMODS:%=-l%) \
4b41116563110d00330896a568eff1078c382827Timo Sirainen -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
4b41116563110d00330896a568eff1078c382827Timo Sirainen
4b41116563110d00330896a568eff1078c382827Timo Sirainenlint.platmod: modlintlib
5137d2d80255938a0f5fb8f3c1a21b34cf11ada3Timo Sirainen @-$(ECHO) "\nBoston Platform-dependent module: global crosschecks:"
5137d2d80255938a0f5fb8f3c1a21b34cf11ada3Timo Sirainen @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
5137d2d80255938a0f5fb8f3c1a21b34cf11ada3Timo Sirainen
f81f4bc282cd1944cec187bae89c0701a416ed2aTimo Sirainen$(BOSTON_KMODS): FRC
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Sirainen$(BOSTON_CRYPTO_LINKS): $(ROOT_BOSTON_CRYPTO_DIR_64)
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Sirainen -$(RM) $(ROOT_BOSTON_CRYPTO_DIR_64)/$@;
b2c1349cf07410aefab0f5b17153af9e5cfcf48fTimo Sirainen $(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_BOSTON_CRYPTO_DIR_64)/$@
ccec5f82349eae44087900c0e64ed1fd5a1a6fcaTimo Sirainen
4d2211dac61c615c5bdfd501ea54d46c89d41b0fTimo Sirainen# EXPORT DELETE START
4d2211dac61c615c5bdfd501ea54d46c89d41b0fTimo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenEXPORT_SRC:
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen $(RM) Makefile+
61f5256ef248d35459b53534ae428bf6d016e1c5Timo Sirainen sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
cb05ecbd96ddb5e53c1850d27434541138a3f284Timo Sirainen < Makefile > Makefile+
cb05ecbd96ddb5e53c1850d27434541138a3f284Timo Sirainen $(MV) Makefile+ Makefile
cb05ecbd96ddb5e53c1850d27434541138a3f284Timo Sirainen $(CHMOD) 444 Makefile
61f5256ef248d35459b53534ae428bf6d016e1c5Timo Sirainen
16c89b1260c9d07c01c83a9219424d3727069b2eTimo Sirainen# EXPORT DELETE END
88187ee880b4829443e0d55ea7d145d9d5880217Timo Sirainen
88187ee880b4829443e0d55ea7d145d9d5880217Timo Sirainen#
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Sirainen# Include common targets.
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Sirainen#
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Siraineninclude $(UTSBASE)/sun4u/boston/Makefile.targ
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Sirainen