Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
cfba646ddfa9d543f0c40e4c7788c65b4a24b34dPhill Cunnington#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# CDDL HEADER START
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# The contents of this file are subject to the terms of the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Common Development and Distribution License (the "License").
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# You may not use this file except in compliance with the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# or http://www.opensolaris.org/os/licensing.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# See the License for the specific language governing permissions
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# and limitations under the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# When distributing Covered Code, include this CDDL HEADER in each
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# If applicable, add the following below this CDDL HEADER, with the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# fields enclosed by brackets "[]" replaced with your own identifying
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# information: Portions Copyright [yyyy] [name of copyright owner]
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# CDDL HEADER END
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# uts/sun4v/ebus/Makefile
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Use is subject to license terms.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
e6c3a72a023407f5d1fface64356e1cc81f1af31Phill Cunnington#
f6ed2652133dbe16345b6d7b5b9cd967e8e7e9caKohei Tamura# This makefile drives the production of the ebus driver kernel module
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# sun4v implementation architecture dependent
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Path to the base of the uts directory tree (usually /usr/src/uts).
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
cfba646ddfa9d543f0c40e4c7788c65b4a24b34dPhill CunningtonUTSBASE = ../..
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Define the module and object file sets.
4bbe3c444008393d516e54018387a5833694dc8ejeff.schenk#
ce4d3fddc8fe2eddd68a20af9570b3cc63ece5abNeil MaddenMODULE = ebus
ce4d3fddc8fe2eddd68a20af9570b3cc63ece5abNeil MaddenOBJECTS = $(EBUS_OBJS:%=$(OBJS_DIR)/%)
ce4d3fddc8fe2eddd68a20af9570b3cc63ece5abNeil MaddenLINTS = $(EBUS_OBJS:%.o=$(LINTS_DIR)/%.ln)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunnington
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunnington#
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunnington# Include common rules.
f6ed2652133dbe16345b6d7b5b9cd967e8e7e9caKohei Tamura#
f6ed2652133dbe16345b6d7b5b9cd967e8e7e9caKohei Tamurainclude $(UTSBASE)/sun4v/Makefile.sun4v
ce4d3fddc8fe2eddd68a20af9570b3cc63ece5abNeil Madden
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Define targets
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterALL_TARGET = $(BINARY)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterLINT_TARGET = $(MODULE).lint
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Turn this on once compiler understands v9 in it's backend
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#INLINES += $(UTSBASE)/sun4v/io/ebus.il
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# lint pass one enforcement
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8bb3e4cda81612f01c0254c263155f65506a018cjeff.schenkCFLAGS += $(CCVERBOSE)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Turn on doubleword alignment for 64 bit registers
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCFLAGS += -dalign
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# For now, disable these lint checks; maintainers should endeavor
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# to investigate and remove these for maximum lint coverage.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Please do not carry these forward to new Makefiles.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCERRWARN += -_gcc=-Wno-switch
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCERRWARN += -_gcc=-Wno-uninitialized
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Default build targets.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster.KEEP_STATE:
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterdef: $(DEF_DEPS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterall: $(ALL_DEPS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterclean: $(CLEAN_DEPS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
cfba646ddfa9d543f0c40e4c7788c65b4a24b34dPhill Cunningtonclobber: $(CLOBBER_DEPS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterlint: $(LINT_DEPS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fostermodlintlib: $(MODLINTLIB_DEPS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterclean.lint: $(CLEAN_LINT_DEPS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinstall: $(INSTALL_DEPS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Include common targets.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinclude $(UTSBASE)/sun4v/Makefile.targ
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster