xref: /titanic_44/usr/src/uts/intel/mwlfw/Makefile (revision b6805bf78d2bbbeeaea8909a05623587b42d58b3)
1d8d81063Sfei feng - Sun Microsystems - Beijing China#
2d8d81063Sfei feng - Sun Microsystems - Beijing China# CDDL HEADER START
3d8d81063Sfei feng - Sun Microsystems - Beijing China#
4d8d81063Sfei feng - Sun Microsystems - Beijing China# The contents of this file are subject to the terms of the
5d8d81063Sfei feng - Sun Microsystems - Beijing China# Common Development and Distribution License (the "License").
6d8d81063Sfei feng - Sun Microsystems - Beijing China# You may not use this file except in compliance with the License.
7d8d81063Sfei feng - Sun Microsystems - Beijing China#
8d8d81063Sfei feng - Sun Microsystems - Beijing China# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9d8d81063Sfei feng - Sun Microsystems - Beijing China# or http://www.opensolaris.org/os/licensing.
10d8d81063Sfei feng - Sun Microsystems - Beijing China# See the License for the specific language governing permissions
11d8d81063Sfei feng - Sun Microsystems - Beijing China# and limitations under the License.
12d8d81063Sfei feng - Sun Microsystems - Beijing China#
13d8d81063Sfei feng - Sun Microsystems - Beijing China# When distributing Covered Code, include this CDDL HEADER in each
14d8d81063Sfei feng - Sun Microsystems - Beijing China# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15d8d81063Sfei feng - Sun Microsystems - Beijing China# If applicable, add the following below this CDDL HEADER, with the
16d8d81063Sfei feng - Sun Microsystems - Beijing China# fields enclosed by brackets "[]" replaced with your own identifying
17d8d81063Sfei feng - Sun Microsystems - Beijing China# information: Portions Copyright [yyyy] [name of copyright owner]
18d8d81063Sfei feng - Sun Microsystems - Beijing China#
19d8d81063Sfei feng - Sun Microsystems - Beijing China# CDDL HEADER END
20d8d81063Sfei feng - Sun Microsystems - Beijing China#
21d8d81063Sfei feng - Sun Microsystems - Beijing China#
22d8d81063Sfei feng - Sun Microsystems - Beijing China# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23d8d81063Sfei feng - Sun Microsystems - Beijing China# Use is subject to license terms.
24d8d81063Sfei feng - Sun Microsystems - Beijing China#
25d8d81063Sfei feng - Sun Microsystems - Beijing China#
26d8d81063Sfei feng - Sun Microsystems - Beijing China#	This makefile drives the production of the mwlfw kernel module.
27d8d81063Sfei feng - Sun Microsystems - Beijing China#
28d8d81063Sfei feng - Sun Microsystems - Beijing China#
29d8d81063Sfei feng - Sun Microsystems - Beijing China#	Path to the base of the uts directory tree (usually /usr/src/uts).
30d8d81063Sfei feng - Sun Microsystems - Beijing China#
31d8d81063Sfei feng - Sun Microsystems - Beijing ChinaUTSBASE	= ../..
32d8d81063Sfei feng - Sun Microsystems - Beijing China
33d8d81063Sfei feng - Sun Microsystems - Beijing China#
34d8d81063Sfei feng - Sun Microsystems - Beijing China#	Define the module and object file sets.
35d8d81063Sfei feng - Sun Microsystems - Beijing China#
36d8d81063Sfei feng - Sun Microsystems - Beijing ChinaMODULE		= mwlfw
37d8d81063Sfei feng - Sun Microsystems - Beijing ChinaOBJECTS		= $(MWLFW_OBJS:%=$(OBJS_DIR)/%)
38d8d81063Sfei feng - Sun Microsystems - Beijing ChinaLINTS		= $(MWLFW_OBJS:%.o=$(LINTS_DIR)/%.ln)
39d8d81063Sfei feng - Sun Microsystems - Beijing ChinaROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
40d8d81063Sfei feng - Sun Microsystems - Beijing China
41d8d81063Sfei feng - Sun Microsystems - Beijing ChinaFWOBJ		= $(OBJS_DIR)/$(MODULE).o
42d8d81063Sfei feng - Sun Microsystems - Beijing China
43d8d81063Sfei feng - Sun Microsystems - Beijing ChinaOBJECTS		+= $(FWOBJ)
44d8d81063Sfei feng - Sun Microsystems - Beijing China
45d8d81063Sfei feng - Sun Microsystems - Beijing China#
46d8d81063Sfei feng - Sun Microsystems - Beijing China#	Include common rules.
47d8d81063Sfei feng - Sun Microsystems - Beijing China#
48d8d81063Sfei feng - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.intel
49d8d81063Sfei feng - Sun Microsystems - Beijing China
50d8d81063Sfei feng - Sun Microsystems - Beijing ChinaLDFLAGS	=
51d8d81063Sfei feng - Sun Microsystems - Beijing China#
52d8d81063Sfei feng - Sun Microsystems - Beijing China#	Define targets
53d8d81063Sfei feng - Sun Microsystems - Beijing China#
54d8d81063Sfei feng - Sun Microsystems - Beijing ChinaALL_TARGET	= $(BINARY)
55d8d81063Sfei feng - Sun Microsystems - Beijing ChinaLINT_TARGET	= $(MODULE).lint
56d8d81063Sfei feng - Sun Microsystems - Beijing ChinaINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
57d8d81063Sfei feng - Sun Microsystems - Beijing China
58d8d81063Sfei feng - Sun Microsystems - Beijing China#
59d8d81063Sfei feng - Sun Microsystems - Beijing China# For now, disable these lint checks; maintainers should endeavor
60d8d81063Sfei feng - Sun Microsystems - Beijing China# to investigate and remove these for maximum lint coverage.
61d8d81063Sfei feng - Sun Microsystems - Beijing China# Please do not carry these forward to new Makefiles.
62d8d81063Sfei feng - Sun Microsystems - Beijing China#
63d8d81063Sfei feng - Sun Microsystems - Beijing ChinaLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
64d8d81063Sfei feng - Sun Microsystems - Beijing ChinaLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
65d8d81063Sfei feng - Sun Microsystems - Beijing ChinaLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
66d8d81063Sfei feng - Sun Microsystems - Beijing ChinaLINTTAGS	+= -erroff=E_STATIC_UNUSED
67d8d81063Sfei feng - Sun Microsystems - Beijing China
68d8d81063Sfei feng - Sun Microsystems - Beijing China#
69d8d81063Sfei feng - Sun Microsystems - Beijing China#	Default build targets.
70d8d81063Sfei feng - Sun Microsystems - Beijing China#
71d8d81063Sfei feng - Sun Microsystems - Beijing China.KEEP_STATE:
72d8d81063Sfei feng - Sun Microsystems - Beijing China
73d8d81063Sfei feng - Sun Microsystems - Beijing Chinadef:		$(DEF_DEPS) $(FWOBJ)
74d8d81063Sfei feng - Sun Microsystems - Beijing China
75d8d81063Sfei feng - Sun Microsystems - Beijing Chinaall:		$(ALL_DEPS)
76d8d81063Sfei feng - Sun Microsystems - Beijing China
77d8d81063Sfei feng - Sun Microsystems - Beijing Chinaclean:		$(CLEAN_DEPS)
78d8d81063Sfei feng - Sun Microsystems - Beijing China
79d8d81063Sfei feng - Sun Microsystems - Beijing Chinaclobber:	$(CLOBBER_DEPS)
80d8d81063Sfei feng - Sun Microsystems - Beijing China
81d8d81063Sfei feng - Sun Microsystems - Beijing Chinalint:		$(LINT_DEPS)
82d8d81063Sfei feng - Sun Microsystems - Beijing China
83d8d81063Sfei feng - Sun Microsystems - Beijing Chinamodlintlib:	$(MODLINTLIB_DEPS)
84d8d81063Sfei feng - Sun Microsystems - Beijing China
85d8d81063Sfei feng - Sun Microsystems - Beijing Chinaclean.lint:	$(CLEAN_LINT_DEPS)
86d8d81063Sfei feng - Sun Microsystems - Beijing China
87d8d81063Sfei feng - Sun Microsystems - Beijing Chinainstall:	$(INSTALL_DEPS)
88d8d81063Sfei feng - Sun Microsystems - Beijing China
89d8d81063Sfei feng - Sun Microsystems - Beijing China
90d8d81063Sfei feng - Sun Microsystems - Beijing China# customized section for transforming firmware binary
91d8d81063Sfei feng - Sun Microsystems - Beijing ChinaELFWRAP		= elfwrap
92d8d81063Sfei feng - Sun Microsystems - Beijing ChinaBINSRC		= $(UTSBASE)/common/io/mwl/mwl_fw
93d8d81063Sfei feng - Sun Microsystems - Beijing ChinaBINDEST		= $(UTSBASE)/intel/mwlfw
94d8d81063Sfei feng - Sun Microsystems - Beijing ChinaFWBINCOPY	= mw88W8363fw
95d8d81063Sfei feng - Sun Microsystems - Beijing ChinaBOOTBINCOPY	= mwlboot
96d8d81063Sfei feng - Sun Microsystems - Beijing ChinaORIGIN_FWBIN	= mw88W8363
97d8d81063Sfei feng - Sun Microsystems - Beijing ChinaORIGIN_BOOTBIN	= mwlboot
98d8d81063Sfei feng - Sun Microsystems - Beijing China
99d8d81063Sfei feng - Sun Microsystems - Beijing China#get build type, 32/64
100d8d81063Sfei feng - Sun Microsystems - Beijing ChinaWRAPTYPE	= $(CLASS:%=-%)
101d8d81063Sfei feng - Sun Microsystems - Beijing China
102d8d81063Sfei feng - Sun Microsystems - Beijing China#set elfwrap option
103d8d81063Sfei feng - Sun Microsystems - Beijing ChinaWRAPOPT		= $(WRAPTYPE:-32=)
104d8d81063Sfei feng - Sun Microsystems - Beijing China
105d8d81063Sfei feng - Sun Microsystems - Beijing China$(FWOBJ):
106d8d81063Sfei feng - Sun Microsystems - Beijing China	cp $(BINSRC)/$(ORIGIN_FWBIN) $(BINDEST)/$(FWBINCOPY)
107d8d81063Sfei feng - Sun Microsystems - Beijing China	cp $(BINSRC)/$(ORIGIN_BOOTBIN) $(BINDEST)/$(BOOTBINCOPY)
108d8d81063Sfei feng - Sun Microsystems - Beijing China	$(ELFWRAP) $(WRAPOPT) -o $@ $(BINDEST)/$(FWBINCOPY) $(BINDEST)/$(BOOTBINCOPY)
109d8d81063Sfei feng - Sun Microsystems - Beijing China
110*b6805bf7SGordon RossCLOBBERFILES	+= $(BINDEST)/$(FWBINCOPY)
111*b6805bf7SGordon RossCLOBBERFILES	+= $(BINDEST)/$(BOOTBINCOPY)
112*b6805bf7SGordon Ross
113d8d81063Sfei feng - Sun Microsystems - Beijing China#
114d8d81063Sfei feng - Sun Microsystems - Beijing China#	Include common targets.
115d8d81063Sfei feng - Sun Microsystems - Beijing China#
116d8d81063Sfei feng - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.targ
117d8d81063Sfei feng - Sun Microsystems - Beijing China
118