summaryrefslogtreecommitdiff
path: root/usr/src/uts/sun4u/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/sun4u/Makefile')
-rw-r--r--usr/src/uts/sun4u/Makefile71
1 files changed, 56 insertions, 15 deletions
diff --git a/usr/src/uts/sun4u/Makefile b/usr/src/uts/sun4u/Makefile
index a795c6cfde..0c849ab7d2 100644
--- a/usr/src/uts/sun4u/Makefile
+++ b/usr/src/uts/sun4u/Makefile
@@ -20,7 +20,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
@@ -49,6 +49,7 @@ SPARC_LINTS =
#
LINT_LIBS = $(LINT_LIB) \
$(LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
+ $(CLOSED_LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
$(SPARC_LINTS:%=$(SPARC_LIB_DIR)/llib-l%.ln)
# EXPORT DELETE START
@@ -58,8 +59,11 @@ LINT_LIBS = $(LINT_LIB) \
# causing the 2nd pass of lint on the kernel to complain. CRYPTO_EK_KMODS
# should not be listed in the lint target.
#
-CRYPTO_EK_KMODS += aes256
-CRYPTO_EK_KMODS += arcfour2048
+# Don't build these for OpenSolaris, since they will be replaced by
+# binaries that are signed by Sun RE.
+#
+$(CLOSED_BUILD)CRYPTO_EK_KMODS += aes256
+$(CLOSED_BUILD)CRYPTO_EK_KMODS += arcfour2048
# EXPORT DELETE END
@@ -72,38 +76,71 @@ clobber := TARGET= clobber
lint := TARGET= lint
lintlib := TARGET= lintlib
modlintlib := TARGET= modlintlib
+modlist := TARGET= modlist
+modlist modlist.sparc := NO_STATE= -K $$MODSTATE$$$$
clean.lint := TARGET= clean.lint
check := TARGET= check
.KEEP_STATE:
-.PARALLEL: $(KMODS) $(XMODS)
+.PARALLEL: $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) \
+ $(IMPLEMENTATIONS) $(CLOSED_IMPLEMENTATIONS) \
+ modlist modlist.sparc
# Override for CPU_KMODS... they cannot be built
# in parallel
.NO_PARALLEL: $(CPU_KMODS)
-def all clean clobber clean.lint: genassym unix .WAIT $(KMODS) $(XMODS) \
- $(IMPLEMENTATIONS)
+def all clean clobber clean.lint: genassym unix .WAIT \
+ $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) \
+ $(IMPLEMENTATIONS) $(CLOSED_IMPLEMENTATIONS)
+
+# list the modules under sun4u.
+modlist: unix $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) \
+ $(IMPLEMENTATIONS:.WAIT=) $(CLOSED_IMPLEMENTATIONS)
+
+# list the modules for Install -k sun4u.
+modlist.karch: modlist modlist.sparc
-install: install_platforms genassym unix .WAIT $(KMODS) $(XMODS) \
- $(IMPLEMENTATIONS)
+modlist.sparc:
+ @cd $(SRC)/uts/sparc; pwd; $(MAKE) $(NO_STATE) modlist
+
+install: install_platforms genassym unix .WAIT $(KMODS) $(CLOSED_KMODS) \
+ $(XMODS) $(CLOSED_XMODS) $(IMPLEMENTATIONS) $(CLOSED_IMPLEMENTATIONS)
lintlib: unix
-modlintlib: $(LINT_KMODS)
+modlintlib: $(LINT_KMODS) $(CLOSED_LINT_KMODS)
+
+genassym unix $(KMODS): FRC
+ @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
+
+$(IMPLEMENTATIONS): FRC
+ @cd $@; pwd; THISIMPL=$@ $(MAKE) $(NO_STATE) $(TARGET)
-genassym unix $(KMODS) $(IMPLEMENTATIONS): FRC
- @cd $@; pwd; $(MAKE) $(TARGET)
+$(CLOSED_IMPLEMENTATIONS): FRC
+ cd $(CLOSED)/uts/sun4u/$@; pwd; \
+ THISIMPL=$@ $(MAKE) $(NO_STATE) $(TARGET); \
$(XMODS): FRC
@if [ -f $@/Makefile ]; then \
- cd $@; pwd; $(MAKE) $(TARGET); \
+ cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
else \
true; \
fi
-install_h check: install_platforms $(IMPLEMENTATIONS) FRC
+$(CLOSED_XMODS): FRC
+ @if [ -f $(CLOSED)/uts/sun4u/$@/Makefile ]; then \
+ cd $(CLOSED)/uts/sun4u/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
+ else \
+ true; \
+ fi
+
+$(CLOSED_KMODS): FRC
+ cd $(CLOSED)/uts/sun4u/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
+
+install_h check: install_platforms $(IMPLEMENTATIONS) \
+ $(CLOSED_IMPLEMENTATIONS) FRC
@cd sys; pwd; $(MAKE) $(TARGET)
@cd vm; pwd; $(MAKE) $(TARGET)
@@ -172,7 +209,7 @@ globallint:
@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
lint: lintlib .WAIT modlintlib .WAIT $(SPARC_LINTS) $(LINT_DEPS) \
- $(IMPLEMENTATIONS) $(CPU_KMODS)
+ $(IMPLEMENTATIONS) $(CLOSED_IMPLEMENTATIONS) $(CPU_KMODS)
# EXPORT DELETE START
@@ -191,7 +228,11 @@ include ../Makefile.targ
# Cross-reference customization: build a cross-reference over all of the
# sun4u-related directories.
#
-XRDIRS = ../sun4u ../sun4 ../sfmmu ../sparc ../sun ../common
+SHARED_XRDIRS = ../sun4u ../sun4 ../sfmmu ../sparc ../sun ../common
+CLOSED_XRDIRS = $(SHARED_XRDIRS:../%=../% ../../../closed/uts/%)
+XRDIRS = $(SHARED_XRDIRS)
+$(CLOSED_BUILD)XRDIRS = $(CLOSED_XRDIRS:../../../closed/uts/sfmmu=)
+
XRPRUNE = i86pc
cscope.out tags: FRC