xref: /titanic_51/usr/src/uts/sun4u/sys/Makefile (revision 7bebe46c240b554f47faeed19186123896281967)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
529949e86Sstevel# Common Development and Distribution License (the "License").
629949e86Sstevel# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
227c478bd9Sstevel@tonic-gate#ident	"%Z%%M%	%I%	%E% SMI"
237c478bd9Sstevel@tonic-gate#
24*7bebe46cSjc25722# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
257c478bd9Sstevel@tonic-gate# Use is subject to license terms.
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate# uts/sun4u/sys/Makefile
287c478bd9Sstevel@tonic-gate#
297c478bd9Sstevel@tonic-gateUTSBASE	= ../..
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gate#
327c478bd9Sstevel@tonic-gate# include global definitions
337c478bd9Sstevel@tonic-gate#
347c478bd9Sstevel@tonic-gateinclude ../Makefile.sun4u
357c478bd9Sstevel@tonic-gate
367c478bd9Sstevel@tonic-gate#
377c478bd9Sstevel@tonic-gate# Override defaults.
387c478bd9Sstevel@tonic-gate#
397c478bd9Sstevel@tonic-gateFILEMODE	 = 644
407c478bd9Sstevel@tonic-gateGROUP = bin
417c478bd9Sstevel@tonic-gate
427c478bd9Sstevel@tonic-gateSUN4_HDRS=			\
437c478bd9Sstevel@tonic-gate	async.h			\
447c478bd9Sstevel@tonic-gate	clock.h			\
457c478bd9Sstevel@tonic-gate	cmp.h			\
467c478bd9Sstevel@tonic-gate	cpc_ultra.h		\
477c478bd9Sstevel@tonic-gate	cpu_sgnblk_defs.h 	\
487c478bd9Sstevel@tonic-gate	ddi_subrdefs.h		\
497c478bd9Sstevel@tonic-gate	dvma.h			\
507c478bd9Sstevel@tonic-gate	eeprom.h		\
516dfee483Stsien	errclassify.h		\
527c478bd9Sstevel@tonic-gate	fcode.h			\
53b65731f1Skini	fc_plat.h		\
547c478bd9Sstevel@tonic-gate	idprom.h		\
557c478bd9Sstevel@tonic-gate	intr.h			\
567c478bd9Sstevel@tonic-gate	intreg.h		\
577c478bd9Sstevel@tonic-gate	ivintr.h		\
587c478bd9Sstevel@tonic-gate	memlist_plat.h  	\
597c478bd9Sstevel@tonic-gate	memnode.h		\
607c478bd9Sstevel@tonic-gate	nexusdebug.h		\
617c478bd9Sstevel@tonic-gate	prom_debug.h		\
627c478bd9Sstevel@tonic-gate	scb.h			\
637c478bd9Sstevel@tonic-gate	sun4asi.h		\
647c478bd9Sstevel@tonic-gate	tod.h			\
657c478bd9Sstevel@tonic-gate	trapstat.h		\
667c478bd9Sstevel@tonic-gate	vis.h			\
677c478bd9Sstevel@tonic-gate	vm_machparam.h		\
687c478bd9Sstevel@tonic-gate	x_call.h		\
697c478bd9Sstevel@tonic-gate	xc_impl.h		\
707c478bd9Sstevel@tonic-gate	zsmach.h
717c478bd9Sstevel@tonic-gate
72fb9f9b97Skupfer$(CLOSED_BUILD)CLOSED_SUN4_HDRS=	\
73fb9f9b97Skupfer	memtestio.h
74fb9f9b97Skupfer
757c478bd9Sstevel@tonic-gateHDRS=	\
767c478bd9Sstevel@tonic-gate	cheetahregs.h		\
777c478bd9Sstevel@tonic-gate	cpr_impl.h		\
7825cf1a30Sjl139090	cpu_impl.h		\
797c478bd9Sstevel@tonic-gate	ecc_kstat.h		\
8029949e86Sstevel	envctrl.h		\
8129949e86Sstevel	envctrl_gen.h		\
8229949e86Sstevel	envctrl_ue250.h		\
8329949e86Sstevel	envctrl_ue450.h		\
847c478bd9Sstevel@tonic-gate	gpio_87317.h		\
857c478bd9Sstevel@tonic-gate	iocache.h		\
867c478bd9Sstevel@tonic-gate	iommu.h			\
877c478bd9Sstevel@tonic-gate	machasi.h		\
887c478bd9Sstevel@tonic-gate	machclock.h		\
897c478bd9Sstevel@tonic-gate	machcpuvar.h		\
907c478bd9Sstevel@tonic-gate	machparam.h		\
917c478bd9Sstevel@tonic-gate	machsystm.h		\
927c478bd9Sstevel@tonic-gate	machthread.h		\
93*7bebe46cSjc25722	mem_cache.h		\
947c478bd9Sstevel@tonic-gate	mmu.h			\
9525cf1a30Sjl139090	opl_module.h		\
967c478bd9Sstevel@tonic-gate	prom_plat.h		\
977c478bd9Sstevel@tonic-gate	pte.h			\
987c478bd9Sstevel@tonic-gate	sbd_ioctl.h		\
997c478bd9Sstevel@tonic-gate	spitregs.h		\
1007c478bd9Sstevel@tonic-gate	starfire.h		\
1017c478bd9Sstevel@tonic-gate	sysioerr.h		\
1027c478bd9Sstevel@tonic-gate	sysiosbus.h		\
1037c478bd9Sstevel@tonic-gate	todmostek.h		\
104a83cadceSkm84432	traptrace.h
1057c478bd9Sstevel@tonic-gate
106fb9f9b97Skupfer$(CLOSED_BUILD)CLOSED_HDRS=	\
107fb9f9b97Skupfer	memtestio_ch.h		\
108fb9f9b97Skupfer	memtestio_chp.h		\
109fb9f9b97Skupfer	memtestio_ja.h		\
110fb9f9b97Skupfer	memtestio_jg.h		\
11125cf1a30Sjl139090	memtestio_oc.h		\
112fb9f9b97Skupfer	memtestio_pn.h		\
113fb9f9b97Skupfer	memtestio_sf.h		\
114fb9f9b97Skupfer	memtestio_sr.h		\
115fb9f9b97Skupfer	memtestio_u.h
116fb9f9b97Skupfer
117fb9f9b97Skupfer$(CLOSED_BUILD)CLOSED_I2CHDRS =	clients/scmi2c.h
118fb9f9b97Skupfer
1197c478bd9Sstevel@tonic-gateI2CHDRS =	clients/max1617.h misc/i2c_svc.h clients/i2c_client.h	\
120fb9f9b97Skupfer		clients/hpc3130.h clients/lm75.h	\
121fb9f9b97Skupfer		clients/pcf8591.h clients/ssc050.h $(CLOSED_I2CHDRS)
122fb9f9b97Skupfer
1237c478bd9Sstevel@tonic-gateI2C_DIRS=	clients misc
1247c478bd9Sstevel@tonic-gateUSR_PSM_ISYS_I2C_ROOT=	$(USR_PSM_ISYS_DIR)/i2c
1257c478bd9Sstevel@tonic-gateUSR_PSM_ISYS_I2C_DIRS=	$(USR_PSM_ISYS_I2C_ROOT) \
1267c478bd9Sstevel@tonic-gate			$(I2C_DIRS:%=$(USR_PSM_ISYS_I2C_ROOT)/%)
1277c478bd9Sstevel@tonic-gate
1287c478bd9Sstevel@tonic-gateROOTI2CHDRS=		$(I2CHDRS:%=$(USR_PSM_ISYS_I2C_ROOT)/%)
1297c478bd9Sstevel@tonic-gate
1307c478bd9Sstevel@tonic-gateMONHDRS=
1317c478bd9Sstevel@tonic-gate#MONHDRS=	eeprom.h    idprom.h    keyboard.h  password.h
1327c478bd9Sstevel@tonic-gate
1337c478bd9Sstevel@tonic-gateUSR_PSM_MON_DIR=	$(USR_PSM_ISYS_DIR)/mon
1347c478bd9Sstevel@tonic-gate
1357c478bd9Sstevel@tonic-gateROOTHDRS=		$(HDRS:%=$(USR_PSM_ISYS_DIR)/%)
136fb9f9b97Skupfer$(CLOSED_BUILD)ROOTHDRS += $(CLOSED_HDRS:%=$(USR_PSM_ISYS_DIR)/%)
137fb9f9b97Skupfer
1387c478bd9Sstevel@tonic-gateSUN4_ROOTHDRS=		$(SUN4_HDRS:%=$(USR_PSM_ISYS_DIR)/%)
139fb9f9b97Skupfer$(CLOSED_BUILD)SUN4_ROOTHDRS += $(CLOSED_SUN4_HDRS:%=$(USR_PSM_ISYS_DIR)/%)
1407c478bd9Sstevel@tonic-gate
1417c478bd9Sstevel@tonic-gateROOTMONHDRS=		$(MONHDRS:%=$(USR_PSM_MON_DIR)/%)
1427c478bd9Sstevel@tonic-gate
1437c478bd9Sstevel@tonic-gateROOTDIR=		$(ROOT)/usr/share/src
1447c478bd9Sstevel@tonic-gateROOTDIRS=		$(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM)
1457c478bd9Sstevel@tonic-gate
1467c478bd9Sstevel@tonic-gateROOTLINK=		$(ROOTDIR)/uts/$(PLATFORM)/sys
1477c478bd9Sstevel@tonic-gateLINKDEST=		../../../../platform/$(PLATFORM)/include/sys
1487c478bd9Sstevel@tonic-gate
1497c478bd9Sstevel@tonic-gateCHECKHDRS=		$(HDRS:%.h=%.check) \
1507c478bd9Sstevel@tonic-gate			$(MONHDRS:%.h=mon/%.check) \
1517c478bd9Sstevel@tonic-gate			$(SUN4_HDRS:%.h=%.cmncheck)
1527c478bd9Sstevel@tonic-gate
153fb9f9b97Skupfer$(CLOSED_BUILD)CHECKHDRS += $(CLOSED_HDRS:%.h=$(CLOSED)/uts/sun4u/sys/%.check)
154fb9f9b97Skupfer$(CLOSED_BUILD)CHECKHDRS += \
155fb9f9b97Skupfer		$(CLOSED_I2CHDRS:%.h=$(CLOSED)/uts/sun4u/sys/i2c/%.check)
156fb9f9b97Skupfer
1577c478bd9Sstevel@tonic-gate.KEEP_STATE:
1587c478bd9Sstevel@tonic-gate
1597c478bd9Sstevel@tonic-gate.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(ROOTMONHDRS) $(SUN4_ROOTHDRS)
1607c478bd9Sstevel@tonic-gate
1615c1d0199Sgd78059install_h: $(ROOTDIRS) $(USR_PSM_ISYS_I2C_DIRS) .WAIT \
1627c478bd9Sstevel@tonic-gate		$(ROOTHDRS) $(ROOTI2CHDRS) \
1635c1d0199Sgd78059		$(ROOTMONHDRS) \
1647c478bd9Sstevel@tonic-gate		$(SUN4_ROOTHDRS) $(ROOTLINK)
1657c478bd9Sstevel@tonic-gate
1667c478bd9Sstevel@tonic-gatecheck:	$(CHECKHDRS)
1677c478bd9Sstevel@tonic-gate
1687c478bd9Sstevel@tonic-gate#
1697c478bd9Sstevel@tonic-gate# install rules
1707c478bd9Sstevel@tonic-gate#
1717c478bd9Sstevel@tonic-gate$(USR_PSM_MON_DIR):	$(USR_PSM_ISYS_DIR)
1727c478bd9Sstevel@tonic-gate	$(INS.dir.root.bin)
1737c478bd9Sstevel@tonic-gate
1747c478bd9Sstevel@tonic-gate$(USR_PSM_ISYS_I2C_DIRS):
1757c478bd9Sstevel@tonic-gate	$(INS.dir.root.bin)
1767c478bd9Sstevel@tonic-gate
177fb9f9b97Skupfer$(USR_PSM_ISYS_DIR)/%:	$(CLOSED)/uts/sun4u/sys/% $(USR_PSM_ISYS_DIR)
178fb9f9b97Skupfer	$(INS.file)
179fb9f9b97Skupfer
180fb9f9b97Skupfer$(USR_PSM_ISYS_DIR)/%:	$(CLOSED)/uts/sun4/sys/% $(USR_PSM_ISYS_DIR)
181fb9f9b97Skupfer	$(INS.file)
182fb9f9b97Skupfer
1837c478bd9Sstevel@tonic-gate$(USR_PSM_ISYS_DIR)/%:	../../sfmmu/sys/% $(USR_PSM_ISYS_DIR)
1847c478bd9Sstevel@tonic-gate	$(INS.file)
1857c478bd9Sstevel@tonic-gate
1867c478bd9Sstevel@tonic-gate$(USR_PSM_ISYS_DIR)/%:	../../sun4/sys/% $(USR_PSM_ISYS_DIR)
1877c478bd9Sstevel@tonic-gate	$(INS.file)
1887c478bd9Sstevel@tonic-gate
1897c478bd9Sstevel@tonic-gate$(USR_PSM_MON_DIR)/%:	mon/% $(USR_PSM_MON_DIR)
1907c478bd9Sstevel@tonic-gate	$(INS.file)
1917c478bd9Sstevel@tonic-gate
1927c478bd9Sstevel@tonic-gate$(ROOTDIRS):
1937c478bd9Sstevel@tonic-gate	$(INS.dir.root.bin)
1947c478bd9Sstevel@tonic-gate
1957c478bd9Sstevel@tonic-gate# -r because this used to be a directory and is now a link.
1967c478bd9Sstevel@tonic-gate$(ROOTLINK):	$(ROOTDIRS)
1977c478bd9Sstevel@tonic-gate	-$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@ $(CHOWNLINK) $(CHGRPLINK)
1987c478bd9Sstevel@tonic-gate
1997c478bd9Sstevel@tonic-gatemon/%.check:	mon/%.h
2007c478bd9Sstevel@tonic-gate	$(DOT_H_CHECK)
2017c478bd9Sstevel@tonic-gate
2027c478bd9Sstevel@tonic-gate%.check:	../../sfmmu/sys/%.h
2037c478bd9Sstevel@tonic-gate	$(DOT_H_CHECK)
2047c478bd9Sstevel@tonic-gate%.cmncheck:	../../sun4/sys/%.h
2057c478bd9Sstevel@tonic-gate	$(DOT_H_CHECK)
2067c478bd9Sstevel@tonic-gate
2077c478bd9Sstevel@tonic-gateFRC:
2087c478bd9Sstevel@tonic-gate
2097c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ
210