1d58fda43Sjbeloro# 206e46062Sjbeloro# CDDL HEADER START 306e46062Sjbeloro# 406e46062Sjbeloro# The contents of this file are subject to the terms of the 506e46062Sjbeloro# Common Development and Distribution License (the "License"). 606e46062Sjbeloro# You may not use this file except in compliance with the License. 706e46062Sjbeloro# 806e46062Sjbeloro# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 906e46062Sjbeloro# or http://www.opensolaris.org/os/licensing. 1006e46062Sjbeloro# See the License for the specific language governing permissions 1106e46062Sjbeloro# and limitations under the License. 1206e46062Sjbeloro# 1306e46062Sjbeloro# When distributing Covered Code, include this CDDL HEADER in each 1406e46062Sjbeloro# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1506e46062Sjbeloro# If applicable, add the following below this CDDL HEADER, with the 1606e46062Sjbeloro# fields enclosed by brackets "[]" replaced with your own identifying 1706e46062Sjbeloro# information: Portions Copyright [yyyy] [name of copyright owner] 1806e46062Sjbeloro# 1906e46062Sjbeloro# CDDL HEADER END 2006e46062Sjbeloro# 2106e46062Sjbeloro 2206e46062Sjbeloro# 23*1e49577aSRod Evans# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 24d58fda43Sjbeloro# 25d58fda43Sjbeloro# uts/sun4u/seattle/Makefile 26d58fda43Sjbeloro# 27d58fda43Sjbeloro# This makefile drives the production of the sun4u seattle platform 28d58fda43Sjbeloro# module. 29d58fda43Sjbeloro# 30d58fda43Sjbeloro# sun4u implementation architecture dependent 31d58fda43Sjbeloro# 32d58fda43Sjbeloro 33d58fda43Sjbeloro# 34d58fda43Sjbeloro# Path to the base of the uts directory tree (usually /usr/src/uts). 35d58fda43Sjbeloro# 36d58fda43SjbeloroUTSBASE = ../.. 37d58fda43Sjbeloro 38d58fda43Sjbeloro# 39d58fda43Sjbeloro# Include common rules. 40d58fda43Sjbeloro# 41d58fda43Sjbeloroinclude $(UTSBASE)/sun4u/seattle/Makefile.seattle 42d58fda43Sjbeloro 43d58fda43Sjbelorodef := TARGET= def 44d58fda43Sjbeloroall := TARGET= all 45d58fda43Sjbeloroinstall := TARGET= install 46d58fda43Sjbeloroinstall_h := TARGET= install_h 47d58fda43Sjbeloroclean := TARGET= clean 48d58fda43Sjbeloroclobber := TARGET= clobber 49d58fda43Sjbelorolint := TARGET= lint 50d58fda43Sjbelorolintlib := TARGET= lintlib 51d58fda43Sjbeloromodlintlib := TARGET= modlintlib 52fb9f9b97Skupfermodlist := TARGET= modlist 53fb9f9b97Skupfermodlist := NO_STATE= -K $$MODSTATE$$$$ 54d58fda43Sjbeloroclean.lint := TARGET= clean.lint 55d58fda43Sjbelorocheck := TARGET= check 56d58fda43Sjbeloro 57d58fda43Sjbeloro# 58d58fda43Sjbeloro# Default build targets. 59d58fda43Sjbeloro# 60d58fda43Sjbeloro.KEEP_STATE: 61d58fda43Sjbeloro 62fb9f9b97Skupferdef all clean clean.lint clobber modlist: $(SEATTLE_KMODS) 63d58fda43Sjbeloro 64d58fda43Sjbeloromodlintlib: $(SEATTLE_KMODS) 65d58fda43Sjbeloro 66d58fda43SjbeloroLINKED_PLATFORMS = SUNW,Sun-Fire-V245 67d58fda43Sjbeloro 68d58fda43Sjbeloroinstall: $(ROOT_SEATTLE_DIR) \ 69d58fda43Sjbeloro $(USR_SEATTLE_DIR) \ 70d58fda43Sjbeloro $(USR_SEATTLE_INC_DIR) \ 71d58fda43Sjbeloro $(USR_SEATTLE_SBIN_PRTDIAG) \ 7206e46062Sjbeloro $(USR_SEATTLE_SBIN_FRUADM) \ 73d58fda43Sjbeloro $(USR_SEATTLE_LIB_DIR) \ 74d58fda43Sjbeloro $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%) \ 75d58fda43Sjbeloro $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%) \ 76d58fda43Sjbeloro $(SEATTLE_CRYPTO_LINKS) \ 77d58fda43Sjbeloro .WAIT $(SEATTLE_KMODS) 78d58fda43Sjbeloro 79d58fda43Sjbelorocheck install_h: 80d58fda43Sjbeloro 81d58fda43Sjbelorolint: modlintlib 82d58fda43Sjbeloro 83d58fda43Sjbeloro# 84d58fda43Sjbeloro# The 'lint.platmod' target lints the seattle platform module against the sun4u 85d58fda43Sjbeloro# kernel. This ends up doing all the kernel cross-checks, so it takes a couple 86d58fda43Sjbeloro# of minutes. Due to the low ROI, it's not run by default, but it's a good 87d58fda43Sjbeloro# idea to run this if you change os/seattle.c. 88d58fda43Sjbeloro# 89d58fda43SjbeloroLINT_LIBS = $(LINT_LIB) \ 90d58fda43Sjbeloro -L$(SEATTLE_LINT_LIB_DIR) \ 91d58fda43Sjbeloro -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \ 92fb9f9b97Skupfer $(CLOSED_LINT_KMODS:%=-l%) \ 93d58fda43Sjbeloro -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%) 94d58fda43Sjbeloro 95d58fda43Sjbelorolint.platmod: modlintlib 96d58fda43Sjbeloro @-$(ECHO) "\nSeattle Platform-dependent module: global crosschecks:" 97d58fda43Sjbeloro @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) 98d58fda43Sjbeloro 99d58fda43Sjbeloro$(SEATTLE_KMODS): FRC 100fb9f9b97Skupfer @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) 101d58fda43Sjbeloro 102d58fda43Sjbeloro$(SEATTLE_CRYPTO_LINKS): $(ROOT_SEATTLE_CRYPTO_DIR_64) 103d58fda43Sjbeloro -$(RM) $(ROOT_SEATTLE_CRYPTO_DIR_64)/$@; 104d58fda43Sjbeloro $(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_SEATTLE_CRYPTO_DIR_64)/$@ 105d58fda43Sjbeloro 106d58fda43Sjbeloro 107d58fda43Sjbeloro# 108d58fda43Sjbeloro# Include common targets. 109d58fda43Sjbeloro# 110d58fda43Sjbeloroinclude $(UTSBASE)/sun4u/seattle/Makefile.targ 111