kernel: remove unused utsname_set_machine()
[unleashed.git] / usr / src / uts / sparc / config / Makefile
blobfe5c790334bcd1e764d1f3ba898f63f413557cc8
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
22 # uts/sparc/config/Makefile
23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
27 # This makefile drives the production of the kernel configuration files.
29 # sparc architecture dependent
33 # Path to the base of the uts directory tree (usually /usr/src/uts).
35 UTSBASE = ../..
38 # Include common rules.
40 include $(UTSBASE)/sparc/Makefile.sparc
43 # Define the module and object file sets.
45 SRCDIR = $(UTSBASE)/sparc/os
46 PATH2INST = path_to_inst
47 CONFIGFILES = name_to_major minor_perm driver_aliases name_to_sysnum \
48 driver_classes dacf.conf $(PATH2INST)
49 SECCONFIG = device_policy priv_names
50 FILEMODE = 644
51 ROOTETC = $(ROOT)/etc
52 ROOTETCSEC = $(ROOTETC)/security
54 SRCFILES = $(CONFIGFILES:%=$(SRCDIR)/%) $(SECCONFIG:%=$(SRCDIR)/%)
55 ROOTCONFIGFILES = $(CONFIGFILES:%=$(ROOTETC)/%) $(SECCONFIG:%=$(ROOTETCSEC)/%)
58 # Default build targets.
60 .KEEP_STATE:
62 def all: $(SRCFILES)
64 install: all $(ROOTCONFIGFILES)
67 # The ROOTETC directory is made by ../../../Targetdirs
68 # through the rootdirs target in ../../../Makefile.
70 # etc/path_to_inst has permissions different from the other config files
72 $(ROOTETC)/$(PATH2INST):= FILEMODE=444
74 $(ROOTETC)/%: $(SRCDIR)/%
75 $(INS.file)
77 $(ROOTETCSEC)/%: $(SRCDIR)/%
78 $(INS.file)
80 $(SRCDIR)/priv_names: $(PRIVS_DEF) $(PRIVS_AWK)
81 $(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pnamesfile=$@
83 clean:
84 clobber: clobber.targ
86 CLEANFILES = Nothing_to_remove
87 CLOBBERFILES = $(SRCDIR)/priv_names
90 # Include common targets.
92 include $(UTSBASE)/sparc/Makefile.targ