Makefile.snowbird revision 1e49577a7fcde812700ded04431b49d67cc57d6d
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington#
816e576f77e2c46df3e3d97d65822aa8aded7c4bDavid Lawrence# CDDL HEADER START
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson#
bc13425bc389e526329bff6164952c4e3841cb70Andreas Gustafsson# The contents of this file are subject to the terms of the
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# Common Development and Distribution License (the "License").
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# You may not use this file except in compliance with the License.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson#
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# or http://www.opensolaris.org/os/licensing.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# See the License for the specific language governing permissions
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# and limitations under the License.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson#
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson#
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# CDDL HEADER END
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson#
77527513f94fe78413221a63fd6d383cec32bcafAndreas Gustafsson#
77527513f94fe78413221a63fd6d383cec32bcafAndreas Gustafsson# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson#
021a3183ec1db24e2b9627bdd059a121c56ab886Andreas Gustafsson#
021a3183ec1db24e2b9627bdd059a121c56ab886Andreas Gustafsson# Global definitions for sun4u snowbird implementation specific modules.
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# uts/sun4u/snowbird/Makefile.snowbird
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson#
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson
72e278abc7c73059de68017eceae7d5138ee98c1Andreas Gustafsson#
72e278abc7c73059de68017eceae7d5138ee98c1Andreas Gustafsson# Define directories.
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson#
a1bb4b0e4f71fb2878050905087d279cfa87b786Andreas GustafssonMONTECARLO = SUNW,UltraSPARC-IIi-Netract
a1bb4b0e4f71fb2878050905087d279cfa87b786Andreas GustafssonSNOWBIRD = SUNW,Netra-CP2300
a1bb4b0e4f71fb2878050905087d279cfa87b786Andreas GustafssonROOT_MONTECARLO_DIR = $(ROOT_PLAT_DIR)/$(MONTECARLO)
a1bb4b0e4f71fb2878050905087d279cfa87b786Andreas GustafssonROOT_SNOWBIRD_DIR = $(ROOT_PLAT_DIR)/SUNW,Netra-CP2300
b976f9c60a09f4a098852d0653ad5df6842557a7Andreas GustafssonROOT_SNOWBIRD_MOD_DIR = $(ROOT_SNOWBIRD_DIR)/kernel
a1bb4b0e4f71fb2878050905087d279cfa87b786Andreas GustafssonROOT_SNOWBIRD_MISC_DIR_32 = $(ROOT_SNOWBIRD_DIR)/kernel/misc
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas GustafssonROOT_SNOWBIRD_MISC_DIR_64 = $(ROOT_SNOWBIRD_MISC_DIR_32)/$(SUBDIR64)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonROOT_SNOWBIRD_KERN_DIR_32 = $(ROOT_SNOWBIRD_MOD_DIR)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonROOT_SNOWBIRD_KERN_DIR_64 = $(ROOT_SNOWBIRD_MOD_DIR)/$(SUBDIR64)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonROOT_SNOWBIRD_DRV_DIR_32 = $(ROOT_SNOWBIRD_MOD_DIR)/drv
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonROOT_SNOWBIRD_DRV_DIR_64 = $(ROOT_SNOWBIRD_MOD_DIR)/drv/$(SUBDIR64)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonROOT_SNOWBIRD_DRV_LINK_32 = $(ROOT_SNOWBIRD_DRV_DIR_32:$(ROOT_SNOWBIRD_DIR)%=../../../$(MONTECARLO)%)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonROOT_SNOWBIRD_TOD_DIR_32 = $(ROOT_SNOWBIRD_MOD_DIR)/tod
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonROOT_SNOWBIRD_TOD_DIR_64 = $(ROOT_SNOWBIRD_MOD_DIR)/tod/$(SUBDIR64)
f7aa8ce0b3cf7f5df618a42beecf8d5517c000acAndreas GustafssonROOT_SNOWBIRD_DACF_DIR_32 = $(ROOT_SNOWBIRD_MOD_DIR)/dacf
f7aa8ce0b3cf7f5df618a42beecf8d5517c000acAndreas GustafssonROOT_SNOWBIRD_DACF_DIR_64 = $(ROOT_SNOWBIRD_MOD_DIR)/dacf/$(SUBDIR64)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonROOT_SNOWBIRD_DACF_LINK_64 = $(ROOT_SNOWBIRD_DACF_DIR_64:$(ROOT_SNOWBIRD_DIR)%=../../../../$(MONTECARLO)%)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonROOT_SNOWBIRD_KERN_DIR = $(ROOT_SNOWBIRD_KERN_DIR_$(CLASS))
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonROOT_SNOWBIRD_DRV_DIR = $(ROOT_SNOWBIRD_DRV_DIR_$(CLASS))
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonROOT_SNOWBIRD_TOD_DIR = $(ROOT_SNOWBIRD_TOD_DIR_$(CLASS))
f7aa8ce0b3cf7f5df618a42beecf8d5517c000acAndreas GustafssonROOT_SNOWBIRD_MISC_DIR = $(ROOT_SNOWBIRD_MISC_DIR_$(CLASS))
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonROOT_SNOWBIRD_DACF_DIR = $(ROOT_SNOWBIRD_DACF_DIR_$(CLASS))
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonROOT_PLAT_MOD_DIRS += $(ROOT_SNOWBIRD_MOD_DIR)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonROOT_PLAT_MISC_DIRS += $(ROOT_SNOWBIRD_MISC_DIR)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonROOT_PLAT_DRV_DIRS += $(ROOT_SNOWBIRD_DRV_DIR)
72e278abc7c73059de68017eceae7d5138ee98c1Andreas GustafssonROOT_PLAT_DACF_DIRS += $(ROOT_SNOWBIRD_DACF_DIR)
72e278abc7c73059de68017eceae7d5138ee98c1Andreas Gustafsson
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas GustafssonROOT_SNOWBIRD_DACF_LINK = $(ROOT_SNOWBIRD_DACF_LINK_$(CLASS))
3d4a70fe38769e42b943717256208b63fec05f32Andreas GustafssonROOT_SNOWBIRD_DRV_LINK = $(ROOT_SNOWBIRD_DRV_LINK_$(CLASS))
3d4a70fe38769e42b943717256208b63fec05f32Andreas Gustafsson
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas GustafssonUSR_SNOWBIRD_DIR = $(USR_PLAT_DIR)/SUNW,Netra-CP2300
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas GustafssonUSR_SNOWBIRD_INC_DIR = $(USR_SNOWBIRD_DIR)/include
3d4a70fe38769e42b943717256208b63fec05f32Andreas GustafssonUSR_SNOWBIRD_SBIN_DIR = $(USR_SNOWBIRD_DIR)/sbin
3d4a70fe38769e42b943717256208b63fec05f32Andreas GustafssonUSR_SNOWBIRD_SBIN_PRTDIAG = $(USR_SNOWBIRD_SBIN_DIR)/prtdiag
3d4a70fe38769e42b943717256208b63fec05f32Andreas GustafssonUSR_SNOWBIRD_SBIN_FRUADM = $(USR_SNOWBIRD_SBIN_DIR)/fruadm
3d4a70fe38769e42b943717256208b63fec05f32Andreas GustafssonUSR_SNOWBIRD_LIB_DIR = $(USR_SNOWBIRD_DIR)/lib
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas GustafssonUSR_SNOWBIRD_ISYS_DIR = $(USR_SNOWBIRD_INC_DIR)/sys
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson
04bdb234571448ed6194e1d4048e6512f2446f1cDavid LawrenceSNOWBIRD_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/snowbird/lint-libs/$(OBJS_DIR)
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence
f7aa8ce0b3cf7f5df618a42beecf8d5517c000acAndreas Gustafsson
f7aa8ce0b3cf7f5df618a42beecf8d5517c000acAndreas Gustafsson# Define Objects
f7aa8ce0b3cf7f5df618a42beecf8d5517c000acAndreas Gustafsson#
04bdb234571448ed6194e1d4048e6512f2446f1cDavid LawrenceSNOWBIRD_OBJS = snowbird.o
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence
021a3183ec1db24e2b9627bdd059a121c56ab886Andreas Gustafsson#
021a3183ec1db24e2b9627bdd059a121c56ab886Andreas Gustafsson# Define modules.
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence#
1ae59f0202d4dd5f41f978804b092115c6e053eaDavid LawrenceSNOWBIRD_KMODS = todds1307 platmod
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence#
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence# Include the makefiles which define build rule templates, the
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence# collection of files per module, and a few specific flags. Note
1ae59f0202d4dd5f41f978804b092115c6e053eaDavid Lawrence# that order is significant, just as with an include path. The
1ae59f0202d4dd5f41f978804b092115c6e053eaDavid Lawrence# first build rule template which matches the files name will be
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence# used. By including these in order from most machine dependent
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence# to most machine independent, we allow a machine dependent file
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence# to be used in preference over a machine independent version
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence# (Such as a machine specific optimization, which preserves the
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence# interfaces.)
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence#
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrenceinclude $(UTSBASE)/sun4u/snowbird/Makefile.files
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence#
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence# Include common rules.
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence#
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrenceinclude $(UTSBASE)/sun4u/Makefile.sun4u
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence#
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence# Define the actual specific platforms
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence#
04bdb234571448ed6194e1d4048e6512f2446f1cDavid LawrenceMACHINE_DEFS += -D$(PLATFORM) -D_MACHDEP -DSFMMU
04bdb234571448ed6194e1d4048e6512f2446f1cDavid LawrenceMACHINE_DEFS += -D_SNOWBIRD
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence#
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence# For now, disable these lint checks; maintainers should endeavor
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence# to investigate and remove these for maximum lint coverage.
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence# Please do not carry these forward to new Makefiles.
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence#
1ae59f0202d4dd5f41f978804b092115c6e053eaDavid LawrenceLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
1ae59f0202d4dd5f41f978804b092115c6e053eaDavid Lawrence
1ae59f0202d4dd5f41f978804b092115c6e053eaDavid Lawrence