kernel: remove unused utsname_set_machine()
[unleashed.git] / usr / src / uts / sun4u / serrano / Makefile
blobfa33d287716d143655a01b9e3b4652ca8e94bcbe
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
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.
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]
19 # CDDL HEADER END
23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
28 # This makefile drives the production of the SUNW,UltraSPARC-IIIi+ cpu
29 # module. This module uses the same source files as the Jalapeno module
30 # but some extra code is included by SERRANO #ifdefs
34 # Path to the base of the uts directory tree (usually /usr/src/uts).
36 UTSBASE = ../..
39 # Define the module and object file sets.
41 MODULE = SUNW,UltraSPARC-IIIi+
43 OBJECTS = $(JALAPENO_OBJS:%=$(OBJS_DIR)/%)
44 ROOTMODULE = $(ROOT_PSM_CPU_DIR)/$(MODULE)
45 ROOTSOFTLINKS = $(SOFTLINKS:%=$(ROOT_PSM_CPU_DIR)/%)
47 CPU_DIR = .
48 HERE = ../serrano
51 # Include common rules.
53 include $(UTSBASE)/sun4u/Makefile.sun4u
56 # Override defaults
58 CLEANFILES += $(CPULIB) $(SYM_MOD)
61 # Define targets
63 ALL_TARGET = $(SYM_MOD)
64 INSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS)
66 CFLAGS += -DCHEETAH -DSERRANO -DCPU_IMP_L1_CACHE_PARITY \
67 -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE
68 ASFLAGS += -DCHEETAH -DSERRANO -DCPU_IMP_L1_CACHE_PARITY \
69 -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE
72 # cpu-module-specific flags
74 CPPFLAGS += -DCPU_MODULE -DCHEETAH -DSERRANO -DCPU_IMP_L1_CACHE_PARITY \
75 -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE
76 AS_CPPFLAGS += -DCPU_MODULE -DCHEETAH -DSERRANO -DCPU_IMP_L1_CACHE_PARITY \
77 -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE
80 # Default build targets.
82 .KEEP_STATE:
84 def: $(DEF_DEPS)
86 all: $(ALL_DEPS)
88 clean: $(CLEAN_DEPS)
90 clobber: $(CLOBBER_DEPS)
92 install: $(INSTALL_DEPS)
94 $(CPULIB): $(BINARY)
95 $(BUILD.SO) $(BINARY)
97 $(SYM_MOD): $(UNIX_O) $(CPULIB)
98 @echo "resolving symbols against unix.o"
99 @(cd $(UNIX_DIR); pwd; \
100 CPU_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
102 $(ROOTSOFTLINKS): $(ROOTMODULE)
103 $(RM) $@; $(SYMLINK) $(MODULE) $@
105 # Include common targets.
107 include $(UTSBASE)/sun4u/Makefile.targ
110 # For now, disable these compiler warnings; maintainers should endeavor to
111 # investigate and remove these for maximum coverage. Please do not carry
112 # these forward to new Makefiles.
115 CERRWARN += -Wno-parentheses
116 CERRWARN += -Wno-uninitialized
117 CERRWARN += -Wno-type-limits
118 CERRWARN += -Wno-clobbered