Makefile revision ae115bc77f6fcde83175c75b4206dc2e50747966
c313914d0e66b20969215e519bbf2ab4ecf39512Tinderbox User#
c80e152862cc3e3207dc837fde7116bd4c0e4b9dTinderbox User# CDDL HEADER START
c80e152862cc3e3207dc837fde7116bd4c0e4b9dTinderbox User#
8d1b3ceb4d491ce32572f1702f37ed585eede993Evan Hunt# The contents of this file are subject to the terms of the
8d1b3ceb4d491ce32572f1702f37ed585eede993Evan Hunt# Common Development and Distribution License (the "License").
d77cb075aae5595e460e3299bfc1e8ea5d42b560Evan Hunt# You may not use this file except in compliance with the License.
d77cb075aae5595e460e3299bfc1e8ea5d42b560Evan Hunt#
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# or http://www.opensolaris.org/os/licensing.
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# See the License for the specific language governing permissions
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# and limitations under the License.
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews#
701a93f5a592e4652343e049aa495d409c3ee133Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
7ec97ae74e42ec21b354fd2d1366313b41d947d6Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
701a93f5a592e4652343e049aa495d409c3ee133Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
701a93f5a592e4652343e049aa495d409c3ee133Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
002f1373374a0b72fc0329baa682917929bef168Tony Finch# information: Portions Copyright [yyyy] [name of copyright owner]
002f1373374a0b72fc0329baa682917929bef168Tony Finch#
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews# CDDL HEADER END
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews#
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews#
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
73cf0ba4e82c6baef638ecc4e31321223f841d28Mark Andrews# Use is subject to license terms.
73cf0ba4e82c6baef638ecc4e31321223f841d28Mark Andrews#
73cf0ba4e82c6baef638ecc4e31321223f841d28Mark Andrews# ident "%Z%%M% %I% %E% SMI"
d8351dfc9b725b0d727be7acab6247d7d501d9a0Mark Andrews#
d8351dfc9b725b0d727be7acab6247d7d501d9a0Mark Andrews# uts/sun4u/seattle/Makefile
d8351dfc9b725b0d727be7acab6247d7d501d9a0Mark Andrews#
3a29ce9c08dd31709c73e7187aebda0d360c537bEvan Hunt# This makefile drives the production of the sun4u seattle platform
3a29ce9c08dd31709c73e7187aebda0d360c537bEvan Hunt# module.
5c78f1f50e53d8e2ed51a187efc2c9a0f43b4b1bMark Andrews#
f1740da065d4555039fe8bb53beb4153e3f94de3Mark Andrews# sun4u implementation architecture dependent
f1740da065d4555039fe8bb53beb4153e3f94de3Mark Andrews#
f1740da065d4555039fe8bb53beb4153e3f94de3Mark Andrews
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark Andrews#
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark Andrews# Path to the base of the uts directory tree (usually /usr/src/uts).
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark Andrews#
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark AndrewsUTSBASE = ../..
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark Andrews
ad309e8dfa0601d6053aaa12770a98a6940f89deEvan Hunt#
ad309e8dfa0601d6053aaa12770a98a6940f89deEvan Hunt# Include common rules.
635e4351b04fd61ca6d853bdac6268c090b55129Mark Andrews#
635e4351b04fd61ca6d853bdac6268c090b55129Mark Andrewsinclude $(UTSBASE)/sun4u/seattle/Makefile.seattle
fc04365d2f83f197c8a54545dd9cd4ce6a209940Mark Andrews
fc04365d2f83f197c8a54545dd9cd4ce6a209940Mark Andrewsdef := TARGET= def
7cbac360bf98c0a52b2d6866ad887616c32d4d3aMark Andrewsall := TARGET= all
7cbac360bf98c0a52b2d6866ad887616c32d4d3aMark Andrewsinstall := TARGET= install
7cbac360bf98c0a52b2d6866ad887616c32d4d3aMark Andrewsinstall_h := TARGET= install_h
1cf118a656f5fd210787908b845362077fc507f8Evan Huntclean := TARGET= clean
1cf118a656f5fd210787908b845362077fc507f8Evan Huntclobber := TARGET= clobber
1cf118a656f5fd210787908b845362077fc507f8Evan Huntlint := TARGET= lint
1cf118a656f5fd210787908b845362077fc507f8Evan Huntlintlib := TARGET= lintlib
1cf118a656f5fd210787908b845362077fc507f8Evan Huntmodlintlib := TARGET= modlintlib
1cf118a656f5fd210787908b845362077fc507f8Evan Huntmodlist := TARGET= modlist
1cf118a656f5fd210787908b845362077fc507f8Evan Huntmodlist := NO_STATE= -K $$MODSTATE$$$$
1cf118a656f5fd210787908b845362077fc507f8Evan Huntclean.lint := TARGET= clean.lint
6fb3db01acad7f5c1f4e23789fb0f2ce56cc07deMukund Sivaramancheck := TARGET= check
6fb3db01acad7f5c1f4e23789fb0f2ce56cc07deMukund Sivaraman
6fb3db01acad7f5c1f4e23789fb0f2ce56cc07deMukund Sivaraman#
fd82c70695888c134287b8018296028c252d100eMukund Sivaraman# Default build targets.
fd82c70695888c134287b8018296028c252d100eMukund Sivaraman#
fd82c70695888c134287b8018296028c252d100eMukund Sivaraman.KEEP_STATE:
fd82c70695888c134287b8018296028c252d100eMukund Sivaraman
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrewsdef all clean clean.lint clobber modlist: $(SEATTLE_KMODS)
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrewsmodlintlib: $(SEATTLE_KMODS)
2cf0fe3b8092f64f8f68ae3693fe2e73e90ad1a4Mark Andrews
2cf0fe3b8092f64f8f68ae3693fe2e73e90ad1a4Mark AndrewsLINKED_PLATFORMS = SUNW,Sun-Fire-V245
2cf0fe3b8092f64f8f68ae3693fe2e73e90ad1a4Mark Andrews
2cf0fe3b8092f64f8f68ae3693fe2e73e90ad1a4Mark Andrews# EXPORT DELETE START
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan Hunt#
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan Hunt# aes256 is delivered in the SUNWcryr package which is removed from
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan Hunt# the EXPORT_SRC build.
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan Hunt#
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan HuntSEATTLE_CRYPTO_LINKS += aes256
f9c410d93711fbf312a0162f1e2d3f2a5ede69afFrancis Dupont# EXPORT DELETE END
f9c410d93711fbf312a0162f1e2d3f2a5ede69afFrancis Dupont
f9c410d93711fbf312a0162f1e2d3f2a5ede69afFrancis Dupontinstall: $(ROOT_SEATTLE_DIR) \
f9c410d93711fbf312a0162f1e2d3f2a5ede69afFrancis Dupont $(USR_SEATTLE_DIR) \
e526027287b849f0b6ab6e069156697cbafa22c1Michał Kępień $(USR_SEATTLE_INC_DIR) \
e526027287b849f0b6ab6e069156697cbafa22c1Michał Kępień $(USR_SEATTLE_SBIN_PRTDIAG) \
e526027287b849f0b6ab6e069156697cbafa22c1Michał Kępień $(USR_SEATTLE_SBIN_TRAPSTAT) \
e526027287b849f0b6ab6e069156697cbafa22c1Michał Kępień $(USR_SEATTLE_SBIN_FRUADM) \
929329d2d66a7e1083c70a9c918381935bf12799Mukund Sivaraman $(USR_SEATTLE_LIB_DIR) \
929329d2d66a7e1083c70a9c918381935bf12799Mukund Sivaraman $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%) \
929329d2d66a7e1083c70a9c918381935bf12799Mukund Sivaraman $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%) \
7e1a62eea2e4ba9d6c3fc718e679b965fa514f69Mark Andrews $(SEATTLE_CRYPTO_LINKS) \
ec29d217ba3a2bf3e617a7b5b6708ae221bee999Mark Andrews .WAIT $(SEATTLE_KMODS)
ec29d217ba3a2bf3e617a7b5b6708ae221bee999Mark Andrews
afefd754734f896bf3e0590177fff83e7cdfdf35Mark Andrewscheck install_h:
afefd754734f896bf3e0590177fff83e7cdfdf35Mark Andrews
afefd754734f896bf3e0590177fff83e7cdfdf35Mark Andrewslint: modlintlib
f0353a586c2bfbae999193cb644b6bc94c7944d8Mark Andrews
f0353a586c2bfbae999193cb644b6bc94c7944d8Mark Andrews#
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt# The 'lint.platmod' target lints the seattle platform module against the sun4u
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt# kernel. This ends up doing all the kernel cross-checks, so it takes a couple
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt# of minutes. Due to the low ROI, it's not run by default, but it's a good
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt# idea to run this if you change os/seattle.c.
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt#
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan HuntLINT_LIBS = $(LINT_LIB) \
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt -L$(SEATTLE_LINT_LIB_DIR) \
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt $(CLOSED_LINT_KMODS:%=-l%) \
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
cad79077bd5b2616bc4a7a6b3cbc0953bef8917fMark Andrews
cad79077bd5b2616bc4a7a6b3cbc0953bef8917fMark Andrewslint.platmod: modlintlib
cad79077bd5b2616bc4a7a6b3cbc0953bef8917fMark Andrews @-$(ECHO) "\nSeattle Platform-dependent module: global crosschecks:"
cad79077bd5b2616bc4a7a6b3cbc0953bef8917fMark Andrews @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
adfe58e8e5cd1890585e92b67f1fd01989a1fa7dMark Andrews
adfe58e8e5cd1890585e92b67f1fd01989a1fa7dMark Andrews$(SEATTLE_KMODS): FRC
adfe58e8e5cd1890585e92b67f1fd01989a1fa7dMark Andrews @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
c3237dec879f82855403ff7e3ba87b298172efd5Mark Andrews
c3237dec879f82855403ff7e3ba87b298172efd5Mark Andrews$(SEATTLE_CRYPTO_LINKS): $(ROOT_SEATTLE_CRYPTO_DIR_64)
c3237dec879f82855403ff7e3ba87b298172efd5Mark Andrews -$(RM) $(ROOT_SEATTLE_CRYPTO_DIR_64)/$@;
c3237dec879f82855403ff7e3ba87b298172efd5Mark Andrews $(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_SEATTLE_CRYPTO_DIR_64)/$@
c3237dec879f82855403ff7e3ba87b298172efd5Mark Andrews
cb616c6d5c2ece1fac37fa6e0bca2b53d4043098Mark Andrews# EXPORT DELETE START
cb616c6d5c2ece1fac37fa6e0bca2b53d4043098Mark Andrews
cb616c6d5c2ece1fac37fa6e0bca2b53d4043098Mark AndrewsEXPORT_SRC:
c0a2210466dec0cc81ebf2ffbe21693b57b9c29cMark Andrews $(RM) Makefile+
c0a2210466dec0cc81ebf2ffbe21693b57b9c29cMark Andrews sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
c0a2210466dec0cc81ebf2ffbe21693b57b9c29cMark Andrews < Makefile > Makefile+
534057c9f91a3eb6e0541f3526459c716239b337Mark Andrews $(MV) Makefile+ Makefile
534057c9f91a3eb6e0541f3526459c716239b337Mark Andrews $(CHMOD) 444 Makefile
534057c9f91a3eb6e0541f3526459c716239b337Mark Andrews
0f14b041328c062b1fa391887376388dfc8b2fe5Mark Andrews# EXPORT DELETE END
0f14b041328c062b1fa391887376388dfc8b2fe5Mark Andrews
0f14b041328c062b1fa391887376388dfc8b2fe5Mark Andrews#
0f14b041328c062b1fa391887376388dfc8b2fe5Mark Andrews#
f7f4730e563a2749629fe7fef4cd9513cd2bfab7Mark Andrews# Include common targets.
f7f4730e563a2749629fe7fef4cd9513cd2bfab7Mark Andrews#
1848d38f441ebf70ab21f6151bc3487a92d25b63Mark Andrewsinclude $(UTSBASE)/sun4u/seattle/Makefile.targ
1848d38f441ebf70ab21f6151bc3487a92d25b63Mark Andrews