8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / uts / intel / config / Makefile
blob66a8e5ec0276510824d9ad34d59fb5e31a2db502
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/intel/config/Makefile
23 # Copyright 2010 Nexenta Systems, Inc. All rights reserved.
24 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
25 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
26 # Use is subject to license terms.
28 # This makefile drives the production of the kernel configuration files.
30 # intel architecture dependent
34 # Path to the base of the uts directory tree (usually /usr/src/uts).
36 UTSBASE = ../..
39 # Include common rules.
41 include $(UTSBASE)/intel/Makefile.intel
44 # Define the module and object file sets.
46 SRCDIR = $(UTSBASE)/intel/os
47 PATH2INST = path_to_inst
48 CONFIGFILES = name_to_major minor_perm driver_aliases name_to_sysnum \
49 driver_classes dacf.conf $(PATH2INST) mach
50 SECCONFIG = device_policy priv_names
51 BOOTIMAGE = splashimage.xpm
52 ALTBOOTIMAGE = solaris.xpm # Temporary, for compatibility
53 BOOTENVRC = bootenv.rc
54 DEVMASTER = master
55 FILEMODE = 644
56 ROOTETC = $(ROOT)/etc
57 ROOTETCSEC = $(ROOTETC)/security
58 ROOTBOOT = $(ROOT)/boot
59 BOOTSOLARIS = $(ROOTBOOT)/solaris
60 BOOTDEVICEDB = $(BOOTSOLARIS)/devicedb
62 SRCFILES = $(CONFIGFILES:%=$(SRCDIR)/%) $(SECCONFIG:%=$(SRCDIR)/%)
63 SRCFILES += $(BOOTIMAGE:%=$(SRCDIR)/%)
64 SRCFILES += $(BOOTENVRC:%=$(SRCDIR)/%)
65 SRCFILES += $(DEVMASTER:%=$(SRCDIR)/%)
66 ROOTCONFIGFILES = $(CONFIGFILES:%=$(ROOTETC)/%) $(SECCONFIG:%=$(ROOTETCSEC)/%)
67 ROOTCONFIGFILES += $(BOOTIMAGE:%=$(ROOTBOOT)/%)
68 ROOTCONFIGFILES += $(BOOTENVRC:%=$(BOOTSOLARIS)/%)
69 ROOTCONFIGFILES += $(DEVMASTER:%=$(BOOTDEVICEDB)/%)
70 ROOTALTBOOTIMAGE = $(ALTBOOTIMAGE:%=$(ROOTBOOT)/%)
73 # Default build targets.
75 .KEEP_STATE:
77 def all: $(SRCFILES)
79 install: all $(ROOTCONFIGFILES) $(ROOTALTBOOTIMAGE)
82 # The ROOTETC directory is made by ../../../Targetdirs
83 # through the rootdirs target in ../../../Makefile.
85 # etc/path_to_inst has permissions different from the other config files
87 $(ROOTETC)/$(PATH2INST):= FILEMODE=444
89 $(ROOTETC)/%: $(SRCDIR)/%
90 $(INS.file)
92 $(ROOTETCSEC)/%: $(SRCDIR)/%
93 $(INS.file)
95 $(ROOTBOOT):
96 $(INS) -s -d -m $(DIRMODE) $@
98 $(ROOTBOOT)/%: $(ROOTBOOT) $(SRCDIR)/%
99 $(INS.file)
101 $(ROOTBOOT)/solaris.xpm: $(ROOTBOOT)/splashimage.xpm
102 $(RM) $@; $(LN) $(ROOTBOOT)/splashimage.xpm $@
105 $(BOOTSOLARIS):
106 $(INS) -s -d -m $(DIRMODE) $@
108 $(BOOTSOLARIS)/%: $(BOOTSOLARIS) $(SRCDIR)/%
109 $(INS.file)
111 $(BOOTDEVICEDB):
112 $(INS) -s -d -m $(DIRMODE) $@
114 $(BOOTDEVICEDB)/%: $(BOOTDEVICEDB) $(SRCDIR)/%
115 $(INS.file)
117 $(SRCDIR)/priv_names: $(PRIVS_DEF) $(PRIVS_AWK)
118 $(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pnamesfile=$@
120 clean lint:
121 clobber: clobber.targ
124 # No lints, so keep the clobber and clean targets reasonable.
126 CLEANLINTFILES = Nothing_to_remove
127 CLEANFILES = Nothing_to_remove
128 CLOBBERFILES = $(SRCDIR)/priv_names
131 # Include common targets.
133 include $(UTSBASE)/intel/Makefile.targ