author | Venkatakrishnan Rajagopalan <Venkatakrishnan.Rajagopalan@Sun.COM> |
Mon, 29 Jun 2009 02:56:22 -0700 | |
changeset 9985 | f0a94a205b15 |
parent 5766 | 5bbd09315100 |
child 11534 | 9e690526d933 |
permissions | -rw-r--r-- |
0 | 1 |
# |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
3066
2a2af34f0642
6470037 remove global disable of some potentially useful lint warnings from the kernel lint build
jg
parents:
0
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
2a2af34f0642
6470037 remove global disable of some potentially useful lint warnings from the kernel lint build
jg
parents:
0
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
0 | 7 |
# |
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 |
# or http://www.opensolaris.org/os/licensing. |
|
10 |
# See the License for the specific language governing permissions |
|
11 |
# and limitations under the License. |
|
12 |
# |
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
20 |
# |
|
21 |
# |
|
9985
f0a94a205b15
6845344 IBD driver should attach if PKEY is Valid with fullmembership bit set
Venkatakrishnan Rajagopalan <Venkatakrishnan.Rajagopalan@Sun.COM>
parents:
5766
diff
changeset
|
22 |
# Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
0 | 23 |
# Use is subject to license terms. |
24 |
# |
|
25 |
# |
|
26 |
||
27 |
# |
|
28 |
# Path to the base of the uts directory tree (usually /usr/src/uts). |
|
29 |
# |
|
30 |
UTSBASE = ../.. |
|
31 |
||
32 |
# |
|
33 |
# Define the module and object file sets. |
|
34 |
# |
|
35 |
MODULE = ibd |
|
36 |
OBJECTS = $(IBD_OBJS:%=$(OBJS_DIR)/%) |
|
37 |
LINTS = $(IBD_OBJS:%.o=$(LINTS_DIR)/%.ln) |
|
38 |
ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) |
|
5766 | 39 |
LDFLAGS += -dy -Nmisc/mac -Nmisc/ibtl -Nmisc/ibcm -Nmisc/ibmf |
3138 | 40 |
WARLOCK_OUT = $(IBD_OBJS:%.o=%.ll) |
41 |
WARLOCK_OK = $(MODULE).ok |
|
42 |
WLCMD_DIR = $(UTSBASE)/common/io/warlock |
|
0 | 43 |
# |
44 |
# Include common rules. |
|
45 |
# |
|
46 |
include $(UTSBASE)/intel/Makefile.intel |
|
47 |
||
48 |
# |
|
49 |
# Define targets |
|
50 |
# |
|
51 |
ALL_TARGET = $(BINARY) |
|
52 |
LINT_TARGET = $(MODULE).lint |
|
53 |
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) |
|
54 |
||
55 |
# |
|
3066
2a2af34f0642
6470037 remove global disable of some potentially useful lint warnings from the kernel lint build
jg
parents:
0
diff
changeset
|
56 |
# For now, disable these lint checks; maintainers should endeavor |
2a2af34f0642
6470037 remove global disable of some potentially useful lint warnings from the kernel lint build
jg
parents:
0
diff
changeset
|
57 |
# to investigate and remove these for maximum lint coverage. |
2a2af34f0642
6470037 remove global disable of some potentially useful lint warnings from the kernel lint build
jg
parents:
0
diff
changeset
|
58 |
# Please do not carry these forward to new Makefiles. |
2a2af34f0642
6470037 remove global disable of some potentially useful lint warnings from the kernel lint build
jg
parents:
0
diff
changeset
|
59 |
# |
2a2af34f0642
6470037 remove global disable of some potentially useful lint warnings from the kernel lint build
jg
parents:
0
diff
changeset
|
60 |
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN |
2a2af34f0642
6470037 remove global disable of some potentially useful lint warnings from the kernel lint build
jg
parents:
0
diff
changeset
|
61 |
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW |
2a2af34f0642
6470037 remove global disable of some potentially useful lint warnings from the kernel lint build
jg
parents:
0
diff
changeset
|
62 |
|
2a2af34f0642
6470037 remove global disable of some potentially useful lint warnings from the kernel lint build
jg
parents:
0
diff
changeset
|
63 |
# |
0 | 64 |
# Default build targets. |
65 |
# |
|
66 |
.KEEP_STATE: |
|
67 |
||
68 |
def: $(DEF_DEPS) |
|
69 |
||
70 |
all: $(ALL_DEPS) |
|
71 |
||
72 |
clean: $(CLEAN_DEPS) |
|
3138 | 73 |
$(RM) $(WARLOCK_OUT) $(WARLOCK_OK) |
0 | 74 |
|
75 |
clobber: $(CLOBBER_DEPS) |
|
3138 | 76 |
$(RM) $(WARLOCK_OUT) $(WARLOCK_OK) |
0 | 77 |
|
78 |
lint: $(LINT_DEPS) |
|
79 |
||
80 |
modlintlib: $(MODLINTLIB_DEPS) |
|
81 |
||
82 |
clean.lint: $(CLEAN_LINT_DEPS) |
|
83 |
||
84 |
install: $(INSTALL_DEPS) |
|
85 |
||
86 |
# |
|
87 |
# Include common targets. |
|
88 |
# |
|
89 |
include $(UTSBASE)/intel/Makefile.targ |
|
90 |
||
3138 | 91 |
# |
92 |
# Defines for local commands. |
|
93 |
# |
|
94 |
WARLOCK = warlock |
|
95 |
WLCC = wlcc |
|
96 |
TOUCH = touch |
|
97 |
TEST = test |
|
98 |
||
99 |
warlock: $(WARLOCK_OK) |
|
100 |
||
4604 | 101 |
$(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/ibd.wlcmd warlock_ddi.files |
3138 | 102 |
$(WARLOCK) -c $(WLCMD_DIR)/ibd.wlcmd $(WARLOCK_OUT) \ |
103 |
-l ../warlock/ddi_dki_impl.ll |
|
104 |
$(TOUCH) $@ |
|
105 |
||
106 |
%.ll: $(UTSBASE)/common/io/ib/clients/ibd/%.c \ |
|
107 |
$(UTSBASE)/common/sys/ib/clients/ibd/ibd.h |
|
108 |
$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $< |
|
4604 | 109 |
|
3138 | 110 |
warlock_ddi.files: |
111 |
@cd ../warlock; pwd; $(MAKE) warlock |