xref: /titanic_50/usr/src/uts/intel/uathfw/Makefile (revision b6805bf78d2bbbeeaea8909a05623587b42d58b3)
156f9a274Sfei feng - Sun Microsystems - Beijing China#
256f9a274Sfei feng - Sun Microsystems - Beijing China# CDDL HEADER START
356f9a274Sfei feng - Sun Microsystems - Beijing China#
456f9a274Sfei feng - Sun Microsystems - Beijing China# The contents of this file are subject to the terms of the
556f9a274Sfei feng - Sun Microsystems - Beijing China# Common Development and Distribution License (the "License").
656f9a274Sfei feng - Sun Microsystems - Beijing China# You may not use this file except in compliance with the License.
756f9a274Sfei feng - Sun Microsystems - Beijing China#
856f9a274Sfei feng - Sun Microsystems - Beijing China# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
956f9a274Sfei feng - Sun Microsystems - Beijing China# or http://www.opensolaris.org/os/licensing.
1056f9a274Sfei feng - Sun Microsystems - Beijing China# See the License for the specific language governing permissions
1156f9a274Sfei feng - Sun Microsystems - Beijing China# and limitations under the License.
1256f9a274Sfei feng - Sun Microsystems - Beijing China#
1356f9a274Sfei feng - Sun Microsystems - Beijing China# When distributing Covered Code, include this CDDL HEADER in each
1456f9a274Sfei feng - Sun Microsystems - Beijing China# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1556f9a274Sfei feng - Sun Microsystems - Beijing China# If applicable, add the following below this CDDL HEADER, with the
1656f9a274Sfei feng - Sun Microsystems - Beijing China# fields enclosed by brackets "[]" replaced with your own identifying
1756f9a274Sfei feng - Sun Microsystems - Beijing China# information: Portions Copyright [yyyy] [name of copyright owner]
1856f9a274Sfei feng - Sun Microsystems - Beijing China#
1956f9a274Sfei feng - Sun Microsystems - Beijing China# CDDL HEADER END
2056f9a274Sfei feng - Sun Microsystems - Beijing China#
2156f9a274Sfei feng - Sun Microsystems - Beijing China#
2256f9a274Sfei feng - Sun Microsystems - Beijing China# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2356f9a274Sfei feng - Sun Microsystems - Beijing China# Use is subject to license terms.
2456f9a274Sfei feng - Sun Microsystems - Beijing China#
2556f9a274Sfei feng - Sun Microsystems - Beijing China#
2656f9a274Sfei feng - Sun Microsystems - Beijing China#	This makefile drives the production of the hwa1480_fw kernel module.
2756f9a274Sfei feng - Sun Microsystems - Beijing China#
2856f9a274Sfei feng - Sun Microsystems - Beijing China#
2956f9a274Sfei feng - Sun Microsystems - Beijing China#	Path to the base of the uts directory tree (usually /usr/src/uts).
3056f9a274Sfei feng - Sun Microsystems - Beijing China#
3156f9a274Sfei feng - Sun Microsystems - Beijing ChinaUTSBASE	= ../..
3256f9a274Sfei feng - Sun Microsystems - Beijing China
3356f9a274Sfei feng - Sun Microsystems - Beijing China#
3456f9a274Sfei feng - Sun Microsystems - Beijing China#	Define the module and object file sets.
3556f9a274Sfei feng - Sun Microsystems - Beijing China#
3656f9a274Sfei feng - Sun Microsystems - Beijing ChinaMODULE		= uathfw
3756f9a274Sfei feng - Sun Microsystems - Beijing ChinaOBJECTS		= $(UATHFW_OBJS:%=$(OBJS_DIR)/%)
3856f9a274Sfei feng - Sun Microsystems - Beijing ChinaLINTS		= $(UATHFW_OBJS:%.o=$(LINTS_DIR)/%.ln)
3956f9a274Sfei feng - Sun Microsystems - Beijing ChinaROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
4056f9a274Sfei feng - Sun Microsystems - Beijing China
4156f9a274Sfei feng - Sun Microsystems - Beijing ChinaFWOBJ		= $(OBJS_DIR)/$(MODULE).o
4256f9a274Sfei feng - Sun Microsystems - Beijing China
4356f9a274Sfei feng - Sun Microsystems - Beijing ChinaOBJECTS		+= $(FWOBJ)
4456f9a274Sfei feng - Sun Microsystems - Beijing China
4556f9a274Sfei feng - Sun Microsystems - Beijing China#
4656f9a274Sfei feng - Sun Microsystems - Beijing China#	Include common rules.
4756f9a274Sfei feng - Sun Microsystems - Beijing China#
4856f9a274Sfei feng - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.intel
4956f9a274Sfei feng - Sun Microsystems - Beijing China
5056f9a274Sfei feng - Sun Microsystems - Beijing ChinaLDFLAGS	=
5156f9a274Sfei feng - Sun Microsystems - Beijing China#
5256f9a274Sfei feng - Sun Microsystems - Beijing China#	Define targets
5356f9a274Sfei feng - Sun Microsystems - Beijing China#
5456f9a274Sfei feng - Sun Microsystems - Beijing ChinaALL_TARGET	= $(BINARY)
5556f9a274Sfei feng - Sun Microsystems - Beijing ChinaLINT_TARGET	= $(MODULE).lint
5656f9a274Sfei feng - Sun Microsystems - Beijing ChinaINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
5756f9a274Sfei feng - Sun Microsystems - Beijing China
5856f9a274Sfei feng - Sun Microsystems - Beijing China#
5956f9a274Sfei feng - Sun Microsystems - Beijing China# For now, disable these lint checks; maintainers should endeavor
6056f9a274Sfei feng - Sun Microsystems - Beijing China# to investigate and remove these for maximum lint coverage.
6156f9a274Sfei feng - Sun Microsystems - Beijing China# Please do not carry these forward to new Makefiles.
6256f9a274Sfei feng - Sun Microsystems - Beijing China#
6356f9a274Sfei feng - Sun Microsystems - Beijing ChinaLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
6456f9a274Sfei feng - Sun Microsystems - Beijing ChinaLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
6556f9a274Sfei feng - Sun Microsystems - Beijing ChinaLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
6656f9a274Sfei feng - Sun Microsystems - Beijing ChinaLINTTAGS	+= -erroff=E_STATIC_UNUSED
6756f9a274Sfei feng - Sun Microsystems - Beijing China
6856f9a274Sfei feng - Sun Microsystems - Beijing China#
6956f9a274Sfei feng - Sun Microsystems - Beijing China#	Default build targets.
7056f9a274Sfei feng - Sun Microsystems - Beijing China#
7156f9a274Sfei feng - Sun Microsystems - Beijing China.KEEP_STATE:
7256f9a274Sfei feng - Sun Microsystems - Beijing China
7356f9a274Sfei feng - Sun Microsystems - Beijing Chinadef:		$(DEF_DEPS) $(FWOBJ)
7456f9a274Sfei feng - Sun Microsystems - Beijing China
7556f9a274Sfei feng - Sun Microsystems - Beijing Chinaall:		$(ALL_DEPS)
7656f9a274Sfei feng - Sun Microsystems - Beijing China
7756f9a274Sfei feng - Sun Microsystems - Beijing Chinaclean:		$(CLEAN_DEPS)
7856f9a274Sfei feng - Sun Microsystems - Beijing China
7956f9a274Sfei feng - Sun Microsystems - Beijing Chinaclobber:	$(CLOBBER_DEPS)
8056f9a274Sfei feng - Sun Microsystems - Beijing China
8156f9a274Sfei feng - Sun Microsystems - Beijing Chinalint:		$(LINT_DEPS)
8256f9a274Sfei feng - Sun Microsystems - Beijing China
8356f9a274Sfei feng - Sun Microsystems - Beijing Chinamodlintlib:	$(MODLINTLIB_DEPS)
8456f9a274Sfei feng - Sun Microsystems - Beijing China
8556f9a274Sfei feng - Sun Microsystems - Beijing Chinaclean.lint:	$(CLEAN_LINT_DEPS)
8656f9a274Sfei feng - Sun Microsystems - Beijing China
8756f9a274Sfei feng - Sun Microsystems - Beijing Chinainstall:	$(INSTALL_DEPS)
8856f9a274Sfei feng - Sun Microsystems - Beijing China
8956f9a274Sfei feng - Sun Microsystems - Beijing China
9056f9a274Sfei feng - Sun Microsystems - Beijing China# customized section for transforming firmware binary
9156f9a274Sfei feng - Sun Microsystems - Beijing ChinaELFWRAP		= elfwrap
9256f9a274Sfei feng - Sun Microsystems - Beijing ChinaBINSRC		= $(UTSBASE)/common/io/uath/uath_fw
9356f9a274Sfei feng - Sun Microsystems - Beijing ChinaBINDEST		= $(UTSBASE)/intel/uathfw
9456f9a274Sfei feng - Sun Microsystems - Beijing ChinaBINCOPY		= uathbin
9556f9a274Sfei feng - Sun Microsystems - Beijing ChinaORIGIN_SRC	= uathfw.bin
9656f9a274Sfei feng - Sun Microsystems - Beijing China
9756f9a274Sfei feng - Sun Microsystems - Beijing China#get build type, 32/64
9856f9a274Sfei feng - Sun Microsystems - Beijing ChinaWRAPTYPE	= $(CLASS:%=-%)
9956f9a274Sfei feng - Sun Microsystems - Beijing China
10056f9a274Sfei feng - Sun Microsystems - Beijing China#set elfwrap option
10156f9a274Sfei feng - Sun Microsystems - Beijing ChinaWRAPOPT		= $(WRAPTYPE:-32=)
10256f9a274Sfei feng - Sun Microsystems - Beijing China
10356f9a274Sfei feng - Sun Microsystems - Beijing China$(FWOBJ):
10456f9a274Sfei feng - Sun Microsystems - Beijing China	cp $(BINSRC)/$(ORIGIN_SRC) $(BINDEST)/$(BINCOPY)
10556f9a274Sfei feng - Sun Microsystems - Beijing China	$(ELFWRAP) $(WRAPOPT) -o $@ $(BINDEST)/$(BINCOPY)
10656f9a274Sfei feng - Sun Microsystems - Beijing China
107*b6805bf7SGordon RossCLOBBERFILES += $(BINDEST)/$(BINCOPY)
108*b6805bf7SGordon Ross
10956f9a274Sfei feng - Sun Microsystems - Beijing China#
11056f9a274Sfei feng - Sun Microsystems - Beijing China#	Include common targets.
11156f9a274Sfei feng - Sun Microsystems - Beijing China#
11256f9a274Sfei feng - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.targ
11356f9a274Sfei feng - Sun Microsystems - Beijing China
114