Print this page
10077 usr/src/uts/ Makefile changes for smatch
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/tpm/Makefile
+++ new/usr/src/uts/intel/tpm/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 22 # Use is subject to license terms.
23 23 #
24 -# This makefile drives the production of the TPM driver kernel
25 -# module.
26 -#
24 +# Copyright (c) 2018, Joyent, Inc.
27 25
28 26 UTSBASE = $(SRC)/uts
29 27
30 28 #
31 29 # Define the module and object file sets.
32 30 #
33 31 MODULE = tpm
34 32 OBJECTS = $(TPM_OBJS:%=$(OBJS_DIR)/%)
35 33 LINTS = $(TPM_OBJS:%.o=$(LINTS_DIR)/%.ln)
36 34 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
37 35
38 36 #
39 37 # Include common rules.
40 38 #
41 39 # For now, TPM only delivers on x86/64 platforms, so only build
42 40 # with the Intel rules.
43 41 #
44 42 include $(UTSBASE)/intel/Makefile.intel
45 43
46 44 #
47 45 # Define targets
48 46 #
49 47 ALL_TARGET = $(BINARY)
50 48 LINT_TARGET = $(MODULE).lint
51 49 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
52 50
53 51 #
54 52 # Dependency
55 53 #
56 54 LDFLAGS += -dy
57 55
↓ open down ↓ |
21 lines elided |
↑ open up ↑ |
58 56 CFLAGS += -xCC
59 57
60 58 # This is for everything except /usr/include/tss/
61 59 CPPFLAGS += -I$(ROOT)/usr/include
62 60
63 61 # This is for /usr/include/tss/, which is not built in the ON consolidation
64 62 CPPFLAGS += -I$(ADJUNCT_PROTO)/usr/include
65 63
66 64 CERRWARN += -_gcc=-Wno-parentheses
67 65
66 +# needs work
67 +$(OBJS_DIR)/tpm.o := SMOFF += index_overflow
68 +
68 69 #
69 70 # Default build targets.
70 71 #
71 72 .KEEP_STATE:
72 73
73 74 def: $(DEF_DEPS)
74 75
75 76 all: $(ALL_DEPS)
76 77
77 78 clean: $(CLEAN_DEPS)
78 79
79 80 clobber: $(CLOBBER_DEPS)
80 81
81 82 lint: $(LINT_DEPS)
82 83
83 84 modlintlib: $(MODLINTLIB_DEPS)
84 85
85 86 clean.lint: $(CLEAN_LINT_DEPS)
86 87
87 88 install: $(INSTALL_DEPS)
88 89
89 90 include $(UTSBASE)/intel/Makefile.targ
90 91
91 92 $(OBJECTS): $(OBJS_DIR)
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX