2867N/A#
2867N/A# CDDL HEADER START
2867N/A#
2867N/A# The contents of this file are subject to the terms of the
2867N/A# Common Development and Distribution License (the "License").
2867N/A# You may not use this file except in compliance with the License.
2867N/A#
2867N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2867N/A# or http://www.opensolaris.org/os/licensing.
2867N/A# See the License for the specific language governing permissions
2867N/A# and limitations under the License.
2867N/A#
2867N/A# When distributing Covered Code, include this CDDL HEADER in each
2867N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2867N/A# If applicable, add the following below this CDDL HEADER, with the
2867N/A# fields enclosed by brackets "[]" replaced with your own identifying
2867N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2867N/A#
2867N/A# CDDL HEADER END
2867N/A#
2867N/A#
2867N/A# uts/sparc/config/Makefile
2867N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2867N/A# Use is subject to license terms.
2867N/A# Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
2867N/A#
2867N/A# This makefile drives the production of the kernel configuration files.
2867N/A#
2867N/A# sparc architecture dependent
2867N/A#
2867N/A
2867N/A#
2867N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
2867N/A#
2867N/AUTSBASE = ../..
2867N/A
2867N/A#
2867N/A# Include common rules.
2867N/A#
2867N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
2867N/A
2867N/A#
2867N/A# Define the module and object file sets.
2867N/A#
2867N/ASRCDIR = $(UTSBASE)/sparc/os
2867N/APATH2INST = path_to_inst
2867N/ACONFIGFILES = name_to_major minor_perm driver_aliases name_to_sysnum \
2867N/A driver_classes dacf.conf $(PATH2INST)
2867N/ASECCONFIG = device_policy priv_names
2867N/AFILEMODE = 644
2867N/AROOTETC = $(ROOT)/etc
2867N/AROOTETCSEC = $(ROOTETC)/security
2867N/A
2867N/ASRCFILES = $(CONFIGFILES:%=$(SRCDIR)/%) $(SECCONFIG:%=$(SRCDIR)/%)
2867N/AROOTCONFIGFILES = $(CONFIGFILES:%=$(ROOTETC)/%) $(SECCONFIG:%=$(ROOTETCSEC)/%)
2867N/A
2867N/A#
2867N/A# Default build targets.
2867N/A#
2867N/A.KEEP_STATE:
2867N/A
2867N/Adef all: $(SRCFILES)
2867N/A
2867N/Ainstall: all $(ROOTCONFIGFILES)
2867N/A
2867N/A#
2867N/A# The ROOTETC directory is made by ../../../Targetdirs
2867N/A# through the rootdirs target in ../../../Makefile.
2867N/A#
2867N/A# etc/path_to_inst has permissions different from the other config files
2867N/A#
2867N/A$(ROOTETC)/$(PATH2INST):= FILEMODE=444
2867N/A
2867N/A$(ROOTETC)/%: $(SRCDIR)/%
2867N/A $(INS.file)
2867N/A
2867N/A$(ROOTETCSEC)/%: $(SRCDIR)/%
2867N/A $(INS.file)
2867N/A
2867N/A$(SRCDIR)/priv_names: $(PRIVS_DEF) $(PRIVS_AWK)
2867N/A $(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pnamesfile=$@
2867N/A
2867N/Aclean lint:
2867N/Aclobber: clobber.targ
2867N/A
2867N/A#
2867N/A# No lints, so keep the clobber and clean targets reasonable.
2867N/A#
2867N/ACLEANLINTFILES = Nothing_to_remove
2867N/ACLEANFILES = Nothing_to_remove
2867N/ACLOBBERFILES = $(SRCDIR)/priv_names
2867N/A
2867N/A#
2867N/A# Include common targets.
2867N/A#
2867N/Ainclude $(UTSBASE)/sparc/Makefile.targ
2867N/A