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# uts/intel/Makefile 22# 23# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26# ident "%Z%%M% %I% %E% SMI" 27# 28# 29# This makefile drives the production of all implementation architecture 30# independent modules for Intel processors. 31 32UTSBASE = .. 33 34include Makefile.intel 35 36LINT_LIBS = $(LINT_LIB) $(GEN_LINT_LIB) \ 37 $(LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \ 38 $(CLOSED_LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) 39 40# EXPORT DELETE START 41$(CLOSED_BUILD)LINT_LIBS += $(SVVS_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) 42$(CLOSED_BUILD)LINT_CLOSED_XMOD4 = $(CLOSED_XMODS:lsimega=) 43$(CLOSED_BUILD)LINT_CLOSED_XMOD3 = $(LINT_CLOSED_XMOD4:spwr=) 44$(CLOSED_BUILD)LINT_CLOSED_XMOD2 = $(LINT_CLOSED_XMOD3:adpu320=) 45$(CLOSED_BUILD)LINT_CLOSED_XMOD1 = $(LINT_CLOSED_XMOD2:e1000g=) 46$(CLOSED_BUILD)LINT_XMODLIBS = $(LINT_CLOSED_XMOD1:nge=) 47$(CLOSED_BUILD)LINT_LIBS += $(LINT_XMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln) 48 49# 50# dprov is delivered in the SUNWcrtptoint package. 51# 52DRV_KMODS += dprov 53 54# 55# CRYPTO_EK_KMODS modules go in the encryption pack (SUNWcry*) 56# They need to be listed separately since they duplicate global symbols 57# causing the 2nd pass of lint on the kernel to complain. CRYPTO_EK_KMODS 58# should not be listed in the lint target. 59# 60# Don't build these for OpenSolaris, since they will be replaced by 61# binaries that are signed by Sun RE. 62# 63$(CLOSED_BUILD)CRYPTO_EK_KMODS += aes256 64$(CLOSED_BUILD)CRYPTO_EK_KMODS += arcfour2048 65$(CLOSED_BUILD)CRYPTO_EK_KMODS += blowfish448 66 67# EXPORT DELETE END 68 69# 70# 71def := TARGET= def 72all := TARGET= all 73install := TARGET= install 74clean := TARGET= clean 75clobber := TARGET= clobber 76lint := TARGET= lint 77modlintlib := TARGET= modlintlib 78modlist := TARGET= modlist 79modlist := NO_STATE= -K $$MODSTATE$$$$ 80clean.lint := TARGET= clean.lint 81check := TARGET= check 82install_h := TARGET= install_h 83 84.KEEP_STATE: 85 86.PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(SVVS) $(XMODS) \ 87 $(CLOSED_XMODS) config $(LINT_DEPS) 88 89def all install clean clobber modlist: genassym $(KMODS) $(CLOSED_KMODS) \ 90 $(SVVS) $(XMODS) $(CLOSED_XMODS) config 91 92modlintlib clean.lint: $(LINT_KMODS) $(CLOSED_LINT_KMODS) $(SVVS) \ 93 $(XMODS) $(CLOSED_XMODS) 94 95genassym $(KMODS) $(SUBDIRS) config: FRC 96 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) 97 98$(CLOSED_KMODS): FRC 99 cd $(CLOSED)/uts/intel/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET) 100 101$(XMODS): FRC 102 @if [ -f $@/Makefile ]; then \ 103 cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \ 104 else \ 105 true; \ 106 fi 107 108$(SVVS) $(CLOSED_XMODS): FRC 109 @if [ -f $(CLOSED)/uts/intel/$@/Makefile ]; then \ 110 cd $(CLOSED)/uts/intel/$@; pwd; \ 111 $(MAKE) $(NO_STATE) $(TARGET); \ 112 else \ 113 true; \ 114 fi 115 116install_h check: FRC 117 @cd sys; pwd; $(MAKE) $(TARGET) 118 @cd asm; pwd; $(MAKE) $(TARGET) 119 @cd ia32/sys; pwd; $(MAKE) $(TARGET) 120 @cd amd64/sys; pwd; $(MAKE) $(TARGET) 121 122# 123# Work-around to disable acpica global crosscheck lint warnings 124# 125LGREP.intel = grep -v 'intel/io/acpica' 126 127# 128# Full kernel lint target. 129# 130LINT_TARGET = globallint 131 132# workaround for multiply defined errors 133globallint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2 134 135globallint: 136 @-$(ECHO) "\nFULL KERNEL: global crosschecks:" 137 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.intel) | $(LGREP.2) 138 139lint: modlintlib .WAIT $(LINT_DEPS) 140 141# EXPORT DELETE START 142 143EXPORT_SRC: 144 $(RM) Makefile+ 145 sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 146 < Makefile > Makefile+ 147 $(MV) Makefile+ Makefile 148 $(CHMOD) 444 Makefile 149 150# EXPORT DELETE END 151 152include ../Makefile.targ 153