Print this page
10077 usr/src/uts/ Makefile changes for smatch
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/i86xpv/isa/Makefile
+++ new/usr/src/uts/i86xpv/isa/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
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
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
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
22 22 #
23 23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 -# Copyright 2016 Joyent, Inc.
26 +# Copyright (c) 2018, Joyent, Inc.
27 27 #
28 28 # This makefile drives the production of the ISA nexus driver
29 29 #
30 30 # i86xpv implementation architecture dependent
31 31 #
32 32
33 33 #
34 34 # Path to the base of the uts directory tree (usually /usr/src/uts).
35 35 #
36 36 UTSBASE = ../..
37 37
38 38 #
39 39 # Define the module and object file sets.
40 40 #
41 41 MODULE = isa
42 42 OBJECTS = $(ISANEXUS_OBJS:%=$(OBJS_DIR)/%)
43 43 LINTS = $(ISANEXUS_OBJS:%.o=$(LINTS_DIR)/%.ln)
44 44 ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
45 45 INC_PATH += -I$(UTSBASE)/i86pc/sys/acpi
46 46
47 47 #
48 48 # Include common rules.
49 49 #
50 50 include $(UTSBASE)/i86xpv/Makefile.i86xpv
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
51 51
52 52 #
53 53 # Define targets
54 54 #
55 55 ALL_TARGET = $(BINARY)
56 56 LINT_TARGET = $(MODULE).lint
57 57 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
58 58
59 59 $(OBJS_DIR)/isa.o := CERRWARN += -_gcc=-Wno-unused-function
60 60
61 +# needs work
62 +$(OBJS_DIR)/i8237A.o := SMOFF += indenting
63 +
61 64 #
62 65 # lint pass one enforcement
63 66 #
64 67 CFLAGS += $(CCVERBOSE)
65 68
66 69 #
67 70 # Dependency
68 71 LDFLAGS += -dy -Nmisc/acpica -Nmisc/busra -Nmisc/pci_autoconfig
69 72
70 73 #
71 74 # Define our version of dma_engine and i8237A interfaces
72 75 #
73 76 $(OBJECTS) $(LINTS) := CPPFLAGS += -Di_dmae_init=$(MODULE)_i_dmae_init
74 77 $(OBJECTS) $(LINTS) := CPPFLAGS += -Di_dmae_acquire=$(MODULE)_i_dmae_acquire
75 78 $(OBJECTS) $(LINTS) := CPPFLAGS += -Di_dmae_free=$(MODULE)_i_dmae_free
76 79 $(OBJECTS) $(LINTS) := CPPFLAGS += -Di_dmae_get_best_mode=$(MODULE)_i_dmae_get_best_mode
77 80 $(OBJECTS) $(LINTS) := CPPFLAGS += -D_dmae_nxcookie=$(MODULE)__dmae_nxcookie
78 81 $(OBJECTS) $(LINTS) := CPPFLAGS += -Di_dmae_prog=$(MODULE)_i_dmae_prog
79 82 $(OBJECTS) $(LINTS) := CPPFLAGS += -Di_dmae_swsetup=$(MODULE)_i_dmae_swsetup
80 83 $(OBJECTS) $(LINTS) := CPPFLAGS += -Di_dmae_swsetup=$(MODULE)_i_dmae_swsetup
81 84 $(OBJECTS) $(LINTS) := CPPFLAGS += -Di_dmae_swstart=$(MODULE)_i_dmae_swstart
82 85 $(OBJECTS) $(LINTS) := CPPFLAGS += -Di_dmae_stop=$(MODULE)_i_dmae_stop
83 86 $(OBJECTS) $(LINTS) := CPPFLAGS += -Di_dmae_enable=$(MODULE)_i_dmae_enable
84 87 $(OBJECTS) $(LINTS) := CPPFLAGS += -Di_dmae_disable=$(MODULE)_i_dmae_disable
85 88 $(OBJECTS) $(LINTS) := CPPFLAGS += -Di_dmae_get_chan_stat=$(MODULE)_i_dmae_get_chan_stat
86 89 $(OBJECTS) $(LINTS) := CPPFLAGS += -Dd37A_init=$(MODULE)_d37A_init
87 90 $(OBJECTS) $(LINTS) := CPPFLAGS += -Dd37A_dma_valid=$(MODULE)_d37A_dma_valid
88 91 $(OBJECTS) $(LINTS) := CPPFLAGS += -Dd37A_dma_release=$(MODULE)_d37A_dma_release
89 92 $(OBJECTS) $(LINTS) := CPPFLAGS += -Dd37A_dma_disable=$(MODULE)_d37A_dma_disable
90 93 $(OBJECTS) $(LINTS) := CPPFLAGS += -Dd37A_dma_enable=$(MODULE)_d37A_dma_enable
91 94 $(OBJECTS) $(LINTS) := CPPFLAGS += -Dd37A_get_best_mode=$(MODULE)_d37A_get_best_mode
92 95 $(OBJECTS) $(LINTS) := CPPFLAGS += -Dd37A_intr=$(MODULE)_d37A_intr
93 96 $(OBJECTS) $(LINTS) := CPPFLAGS += -DdEISA_setchain=$(MODULE)_dEISA_setchain
94 97 $(OBJECTS) $(LINTS) := CPPFLAGS += -Dd37A_prog_chan=$(MODULE)_d37A_prog_chan
95 98 $(OBJECTS) $(LINTS) := CPPFLAGS += -Dd37A_dma_swsetup=$(MODULE)_d37A_dma_swsetup
96 99 $(OBJECTS) $(LINTS) := CPPFLAGS += -Dd37A_dma_swstart=$(MODULE)_d37A_dma_swstart
97 100 $(OBJECTS) $(LINTS) := CPPFLAGS += -Dd37A_dma_stop=$(MODULE)_d37A_dma_stop
98 101 $(OBJECTS) $(LINTS) := CPPFLAGS += -Dd37A_get_chan_stat=$(MODULE)_d37A_get_chan_stat
99 102 $(OBJECTS) $(LINTS) := CPPFLAGS += -Dd37A_set_mode=$(MODULE)_d37A_set_mode
100 103 $(OBJECTS) $(LINTS) := CPPFLAGS += -Dd37A_write_addr=$(MODULE)_d37A_write_addr
101 104 $(OBJECTS) $(LINTS) := CPPFLAGS += -Dd37A_read_addr=$(MODULE)_d37A_read_addr
102 105 $(OBJECTS) $(LINTS) := CPPFLAGS += -Dd37A_write_count=$(MODULE)_d37A_write_count
103 106 $(OBJECTS) $(LINTS) := CPPFLAGS += -Dd37A_read_count=$(MODULE)_d37A_read_count
104 107
105 108 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
106 109 CERRWARN += -_gcc=-Wno-unused-variable
107 110
108 111 #
109 112 # Default build targets.
110 113 #
111 114 .KEEP_STATE:
112 115
113 116 def: $(DEF_DEPS)
114 117
115 118 all: $(ALL_DEPS)
116 119
117 120 clean: $(CLEAN_DEPS)
118 121
119 122 clobber: $(CLOBBER_DEPS)
120 123
121 124 lint: $(LINT_DEPS)
122 125
123 126 modlintlib: $(MODLINTLIB_DEPS)
124 127
125 128 clean.lint: $(CLEAN_LINT_DEPS)
126 129
127 130 install: $(INSTALL_DEPS)
128 131
129 132 #
130 133 # Include common targets.
131 134 #
132 135 include $(UTSBASE)/i86xpv/Makefile.targ
↓ open down ↓ |
62 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX