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