Makefile revision bf56214c0556fa6864189c826d39dbe156bb22a0
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
18920d790825d96ca3943aa2dcb6eb80dc611c5fTinderbox User#
18920d790825d96ca3943aa2dcb6eb80dc611c5fTinderbox User# The contents of this file are subject to the terms of the
e9e4257668ff6c4e583b0c0db2508650b0b677b8Tinderbox User# Common Development and Distribution License (the "License").
e9e4257668ff6c4e583b0c0db2508650b0b677b8Tinderbox User# You may not use this file except in compliance with the License.
c57668a2fbbe558c1bd21652813616f2f517c469Tinderbox User#
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1f4c645185bd8fc70048e0a69eee46193a284e5cTinderbox User# or http://www.opensolaris.org/os/licensing.
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# See the License for the specific language governing permissions
8de3f14f1c300c3e1ed99084cc03485b42c92bf1Tinderbox User# and limitations under the License.
950d203b64f512b85fcc093ee1e9e3e531a1aea3Tinderbox User#
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# If applicable, add the following below this CDDL HEADER, with the
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews#
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews#ident "%Z%%M% %I% %E% SMI"
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# Use is subject to license terms.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# uts/sparc/Makefile
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# This makefile drives the production of all implementation architecture
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# independent modules for the SPARC processor. (For those unsure, this
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# means the module will run on all SPARC processor based machines
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# running SunOS.)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserUTSBASE = ..
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox Userinclude Makefile.sparc
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserLINT_KMODLIBS = $(LINT_KMODS:e1000g=)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsLINT_LIBS = $(LINT_LIB) $(GEN_LINT_LIB) \
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User $(LINT_KMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User$(CLOSED_BUILD)LINT_LIBS += $(CLOSED_LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# EXPORT DELETE START
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox User$(CLOSED_BUILD)LINT_LIBS += $(SVVS_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox UserLINT_LIBS += $(LINT_XMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt$(CLOSED_BUILD)LINT_LIBS += $(CLOSED_XMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
16f6050f29b6b0422cee858e609f65e474e70ef2Tinderbox UserDRV_KMODS += dprov
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt#
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox User# CRYPTO_EK_KMODS modules go in the encryption pack (SUNWcry*)
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox User# They need to be listed separately since they duplicate global symbols
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# causing the 2nd pass of lint on the kernel to complain. CRYPTO_EK_KMODS
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User# should not be listed in the lint target.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Don't build these for OpenSolaris, since they will be replaced by
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# binaries that are signed by Sun RE.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater$(CLOSED_BUILD)CRYPTO_EK_KMODS += aes256
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews$(CLOSED_BUILD)CRYPTO_EK_KMODS += arcfour2048
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews$(CLOSED_BUILD)CRYPTO_EK_KMODS += blowfish448
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# EXPORT DELETE END
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
16f6050f29b6b0422cee858e609f65e474e70ef2Tinderbox Userdef := TARGET= def
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsall := TARGET= all
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterinstall := TARGET= install
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsclean := TARGET= clean
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrewsclobber := TARGET= clobber
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewslint := TARGET= lint
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsmodlintlib := TARGET= modlintlib
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsmodlist := TARGET= modlist
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsmodlist := NO_STATE= -K $$MODSTATE$$$$
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox Userclean.lint := TARGET= clean.lint
2ae159b376dac23870d8005563c585acf85a4b5aEvan Huntcheck := TARGET= check
2ae159b376dac23870d8005563c585acf85a4b5aEvan Huntinstall_h := TARGET= install_h
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt
95637507c3d47481fbf0a8a8c750a57f944f677fMark Andrews.KEEP_STATE:
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt.PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(SVVS) $(XMODS) \
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt $(CLOSED_XMODS) config $(LINT_DEPS)
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt
2ae159b376dac23870d8005563c585acf85a4b5aEvan Huntdef all install clean clobber modlist: $(KMODS) $(CLOSED_KMODS) $(SVVS) \
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt $(XMODS) $(CLOSED_XMODS) config
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt
7cc0a5d21ef046bfd630c4769943d896a7d7472cTinderbox Usermodlintlib clean.lint: $(LINT_KMODS) $(CLOSED_LINT_KMODS) $(SVVS) \
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews $(XMODS) $(CLOSED_XMODS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
950d203b64f512b85fcc093ee1e9e3e531a1aea3Tinderbox User$(KMODS) config: FRC
27739dd25026283c24645c8a1044b95ef9eb5ac6Tinderbox User @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
18920d790825d96ca3943aa2dcb6eb80dc611c5fTinderbox User$(CLOSED_KMODS): FRC
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews cd $(CLOSED)/uts/sparc/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
7a6494cfb6cc7d3f67af07359561e05e6bb8c0edTinderbox User
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox User$(XMODS): FRC
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews @if [ -f $@/Makefile ]; then \
18920d790825d96ca3943aa2dcb6eb80dc611c5fTinderbox User cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews else \
7a6494cfb6cc7d3f67af07359561e05e6bb8c0edTinderbox User true; \
77932ac533c711eca5cd86de4e7eca8d91102b43Tinderbox User fi
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User$(SVVS) $(CLOSED_XMODS): FRC
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson @if [ -f $(CLOSED)/uts/sparc/$@/Makefile ]; then \
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User cd $(CLOSED)/uts/sparc/$@; pwd; \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews $(MAKE) $(NO_STATE) $(TARGET); \
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User else \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews true; \
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User fi
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsinstall_h check: FRC
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User @cd asm; pwd; $(MAKE) $(TARGET)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews @cd sys; pwd; $(MAKE) $(TARGET)
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User @cd v7/sys; pwd; $(MAKE) $(TARGET)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson @cd v9/sys; pwd; $(MAKE) $(TARGET)
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# Full kernel lint target.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserLINT_TARGET = globallint
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox Usergloballint:
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews @-$(ECHO) "\nFULL KERNEL: global crosschecks:"
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
28a5dd720187fddb16055a0f64b63a7b66f29f64Mark Andrewslint: modlintlib .WAIT $(LINT_DEPS)
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews# EXPORT DELETE START
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox UserEXPORT_SRC:
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews $(RM) Makefile+
fd972434c29fc1169d66594e4cc7697d33036c2bTinderbox User sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
37d8e0a4455876fe1e4cca511076cc2c5ab9eedeTinderbox User < Makefile > Makefile+
37d8e0a4455876fe1e4cca511076cc2c5ab9eedeTinderbox User $(MV) Makefile+ Makefile
fd972434c29fc1169d66594e4cc7697d33036c2bTinderbox User $(CHMOD) 444 Makefile
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# EXPORT DELETE END
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinclude ../Makefile.targ
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews