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]
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).
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
52 ROOTETCSEC
= $(ROOTETC
)/security
54 SRCFILES
= $(CONFIGFILES
:%=$(SRCDIR
)/%) $(SECCONFIG
:%=$(SRCDIR
)/%)
55 ROOTCONFIGFILES
= $(CONFIGFILES
:%=$(ROOTETC
)/%) $(SECCONFIG
:%=$(ROOTETCSEC
)/%)
58 # Default build targets.
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
)/%
77 $(ROOTETCSEC
)/%: $(SRCDIR
)/%
80 $(SRCDIR
)/priv_names
: $(PRIVS_DEF
) $(PRIVS_AWK
)
81 $(AWK
) -f
$(PRIVS_AWK
) < $(PRIVS_DEF
) -v pnamesfile
=$@
86 CLEANFILES
= Nothing_to_remove
87 CLOBBERFILES
= $(SRCDIR
)/priv_names
90 # Include common targets.
92 include $(UTSBASE
)/sparc
/Makefile.targ