xref: /illumos-gate/usr/src/uts/sun4u/lw8/Makefile (revision 0aaef2f5)
1#
2# CDDL HEADER START
3#
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.
7#
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.
12#
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]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#	This makefile drives the production of the sun4u lw8 platform
27#	module.
28#
29#	sun4u implementation architecture dependent
30#
31
32#
33#	Path to the base of the uts directory tree (usually /usr/src/uts).
34#
35UTSBASE = ../..
36
37#
38#	Include common rules.
39#
40include $(UTSBASE)/sun4u/lw8/Makefile.lw8
41
42def		:=	TARGET= def
43all		:=	TARGET= all
44install		:=	TARGET= install
45install_h	:=	TARGET= install_h
46clean		:=	TARGET= clean
47clobber		:=	TARGET= clobber
48modlist		:=	TARGET= modlist
49modlist		:=	NO_STATE= -K $$MODSTATE$$$$
50check		:=	TARGET= check
51
52#
53#	Default build targets.
54#
55.KEEP_STATE:
56
57def all clean clobber modlist: $(LW8_KMODS)
58
59IMPLEMENTED_PLATFORM	= SUNW,Netra-T12
60LINKS2DESTDIR	= ../../SUNW,Sun-Fire/kernel
61LINKS3DESTDIR	= ../../../../SUNW,Sun-Fire/kernel/drv/sparcv9
62LINKS4DESTDIR	= ../../../../SUNW,Sun-Fire/kernel/misc/sparcv9
63LW8_LINKS_2     = SUNW,Netra-T12/kernel/cpu
64LW8_LINKS_2	+= SUNW,Netra-T12/kernel/sparcv9
65LW8_LINKS_3	= SUNW,Netra-T12/kernel/drv/sparcv9/sgcn
66LW8_LINKS_3	+= SUNW,Netra-T12/kernel/drv/sparcv9/sgsbbc
67LW8_LINKS_3	+= SUNW,Netra-T12/kernel/drv/sparcv9/ssm
68LW8_LINKS_4	= SUNW,Netra-T12/kernel/misc/sparcv9/sbdp
69LW8_PLAT_LINKS_2  = $(LW8_LINKS_2:%=$(ROOT_PLAT_DIR)/%)
70LW8_PLAT_LINKS_3  = $(LW8_LINKS_3:%=$(ROOT_PLAT_DIR)/%)
71LW8_PLAT_LINKS_4  = $(LW8_LINKS_4:%=$(ROOT_PLAT_DIR)/%)
72
73install:	$(ROOT_LW8_DIR) $(USR_LW8_DIR) \
74		$(USR_LW8_INC_DIR) \
75		$(USR_LW8_SBIN_DIR) \
76		$(USR_LW8_LIB_DIR) \
77		.WAIT $(LW8_KMODS) \
78		$(LW8_PLAT_LINKS_2) \
79		$(LW8_PLAT_LINKS_3) \
80		$(LW8_PLAT_LINKS_4) \
81		$(LW8_CRYPTO_LINKS)
82
83$(LW8_KMODS): FRC
84	@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
85
86install_h check:	FRC
87	@cd sys; pwd; $(MAKE) $(TARGET)
88
89$(LW8_PLAT_LINKS_2): $(ROOT_LW8_MOD_DIR)
90	$(RM) $@; $(SYMLINK) $(LINKS2DESTDIR)/$(@F) $@
91
92$(LW8_PLAT_LINKS_3): $(ROOT_LW8_DRV_DIR_64)
93	$(RM) $@; $(SYMLINK) $(LINKS3DESTDIR)/$(@F) $@
94
95$(LW8_PLAT_LINKS_4): $(ROOT_LW8_DRV_DIR_64)
96	$(RM) $@; $(SYMLINK) $(LINKS4DESTDIR)/$(@F) $@
97
98$(LW8_CRYPTO_LINKS): $(ROOT_LW8_CRYPTO_DIR_64)
99	-$(RM) $(ROOT_LW8_CRYPTO_DIR_64)/$@;
100	$(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_LW8_CRYPTO_DIR_64)/$@
101
102#
103#
104#	Include common targets.
105#
106include $(UTSBASE)/sun4u/lw8/Makefile.targ
107