Makefile revision b6805bf78d2bbbeeaea8909a05623587b42d58b3
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen#
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# CDDL HEADER START
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen#
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# The contents of this file are subject to the terms of the
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# Common Development and Distribution License (the "License").
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# You may not use this file except in compliance with the License.
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen#
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# or http://www.opensolaris.org/os/licensing.
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# See the License for the specific language governing permissions
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# and limitations under the License.
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen#
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# When distributing Covered Code, include this CDDL HEADER in each
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# If applicable, add the following below this CDDL HEADER, with the
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# fields enclosed by brackets "[]" replaced with your own identifying
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# information: Portions Copyright [yyyy] [name of copyright owner]
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen#
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# CDDL HEADER END
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen#
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen#
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# uts/intel/config/Makefile
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# Copyright 2010 Nexenta Systems, Inc. All rights reserved.
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# Use is subject to license terms.
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen#
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# This makefile drives the production of the kernel configuration files.
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen#
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# intel architecture dependent
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen#
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen#
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# Path to the base of the uts directory tree (usually /usr/src/uts).
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen#
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenUTSBASE = ../..
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen#
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# Include common rules.
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen#
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatleninclude $(UTSBASE)/intel/Makefile.intel
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen#
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# Define the module and object file sets.
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen#
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenSRCDIR = $(UTSBASE)/intel/os
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenPATH2INST = path_to_inst
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenCONFIGFILES = name_to_major minor_perm driver_aliases name_to_sysnum \
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen driver_classes dacf.conf $(PATH2INST) mach
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenSECCONFIG = device_policy priv_names
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenBOOTIMAGE = splashimage.xpm
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenALTBOOTIMAGE = solaris.xpm # Temporary, for compatibility
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenBOOTENVRC = bootenv.rc
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenDEVMASTER = master
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenFILEMODE = 644
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenROOTETC = $(ROOT)/etc
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenROOTETCSEC = $(ROOTETC)/security
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenROOTBOOT = $(ROOT)/boot
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenBOOTSOLARIS = $(ROOTBOOT)/solaris
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenBOOTDEVICEDB = $(BOOTSOLARIS)/devicedb
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenSRCFILES = $(CONFIGFILES:%=$(SRCDIR)/%) $(SECCONFIG:%=$(SRCDIR)/%)
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenSRCFILES += $(BOOTIMAGE:%=$(SRCDIR)/%)
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenSRCFILES += $(BOOTENVRC:%=$(SRCDIR)/%)
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenSRCFILES += $(DEVMASTER:%=$(SRCDIR)/%)
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenROOTCONFIGFILES = $(CONFIGFILES:%=$(ROOTETC)/%) $(SECCONFIG:%=$(ROOTETCSEC)/%)
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenROOTCONFIGFILES += $(BOOTIMAGE:%=$(ROOTBOOT)/%)
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenROOTCONFIGFILES += $(BOOTENVRC:%=$(BOOTSOLARIS)/%)
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenROOTCONFIGFILES += $(DEVMASTER:%=$(BOOTDEVICEDB)/%)
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders HatlenROOTALTBOOTIMAGE = $(ALTBOOTIMAGE:%=$(ROOTBOOT)/%)
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen#
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen# Default build targets.
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen#
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen.KEEP_STATE:
b5a3e3418c7a5756d5acc7ffc8b00cfc8f25844bKnut Anders Hatlen
def all: $(SRCFILES)
install: all $(ROOTCONFIGFILES) $(ROOTALTBOOTIMAGE)
#
# The ROOTETC directory is made by ../../../Targetdirs
# through the rootdirs target in ../../../Makefile.
#
# etc/path_to_inst has permissions different from the other config files
#
$(ROOTETC)/$(PATH2INST):= FILEMODE=444
$(ROOTETC)/%: $(SRCDIR)/%
$(INS.file)
$(ROOTETCSEC)/%: $(SRCDIR)/%
$(INS.file)
$(ROOTBOOT):
$(INS) -s -d -m $(DIRMODE) $@
$(ROOTBOOT)/%: $(ROOTBOOT) $(SRCDIR)/%
$(INS.file)
$(ROOTBOOT)/solaris.xpm: $(ROOTBOOT)/splashimage.xpm
$(RM) $@; $(LN) $(ROOTBOOT)/splashimage.xpm $@
$(BOOTSOLARIS):
$(INS) -s -d -m $(DIRMODE) $@
$(BOOTSOLARIS)/%: $(BOOTSOLARIS) $(SRCDIR)/%
$(INS.file)
$(BOOTDEVICEDB):
$(INS) -s -d -m $(DIRMODE) $@
$(BOOTDEVICEDB)/%: $(BOOTDEVICEDB) $(SRCDIR)/%
$(INS.file)
$(SRCDIR)/priv_names: $(PRIVS_DEF) $(PRIVS_AWK)
$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pnamesfile=$@
clean lint:
clobber: clobber.targ
#
# No lints, so keep the clobber and clean targets reasonable.
#
CLEANLINTFILES = Nothing_to_remove
CLEANFILES = Nothing_to_remove
CLOBBERFILES = $(SRCDIR)/priv_names
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ