14bb7efa7SGarrett D'Amore# 24bb7efa7SGarrett D'Amore# CDDL HEADER START 34bb7efa7SGarrett D'Amore# 44bb7efa7SGarrett D'Amore# The contents of this file are subject to the terms of the 54bb7efa7SGarrett D'Amore# Common Development and Distribution License (the "License"). 64bb7efa7SGarrett D'Amore# You may not use this file except in compliance with the License. 74bb7efa7SGarrett D'Amore# 84bb7efa7SGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 94bb7efa7SGarrett D'Amore# or http://www.opensolaris.org/os/licensing. 104bb7efa7SGarrett D'Amore# See the License for the specific language governing permissions 114bb7efa7SGarrett D'Amore# and limitations under the License. 124bb7efa7SGarrett D'Amore# 134bb7efa7SGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each 144bb7efa7SGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 154bb7efa7SGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the 164bb7efa7SGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying 174bb7efa7SGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner] 184bb7efa7SGarrett D'Amore# 194bb7efa7SGarrett D'Amore# CDDL HEADER END 204bb7efa7SGarrett D'Amore# 214bb7efa7SGarrett D'Amore 224bb7efa7SGarrett D'Amore# 233f7d54a6SGarrett D'Amore# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. 244bb7efa7SGarrett D'Amore# 25*b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 26*b6b206fcSJohn Levon 274bb7efa7SGarrett D'Amore 284bb7efa7SGarrett D'Amore# 294bb7efa7SGarrett D'Amore# uts/intel/sda/Makefile 304bb7efa7SGarrett D'Amore# 314bb7efa7SGarrett D'Amore# This makefile drives the production of the sda "misc" 324bb7efa7SGarrett D'Amore# kernel module. 334bb7efa7SGarrett D'Amore# 344bb7efa7SGarrett D'Amore# intel architecture dependent 354bb7efa7SGarrett D'Amore# 364bb7efa7SGarrett D'Amore 374bb7efa7SGarrett D'Amore# 384bb7efa7SGarrett D'Amore# Path to the base of the uts directory tree (usually /usr/src/uts). 394bb7efa7SGarrett D'Amore# 404bb7efa7SGarrett D'AmoreUTSBASE = ../.. 414bb7efa7SGarrett D'Amore 424bb7efa7SGarrett D'Amore# 434bb7efa7SGarrett D'Amore# Define the module and object file sets. 444bb7efa7SGarrett D'Amore# 454bb7efa7SGarrett D'AmoreMODULE = sda 464bb7efa7SGarrett D'AmoreOBJECTS = $(SDA_OBJS:%=$(OBJS_DIR)/%) 474bb7efa7SGarrett D'AmoreLINTS = $(SDA_OBJS:%.o=$(LINTS_DIR)/%.ln) 484bb7efa7SGarrett D'AmoreROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 494bb7efa7SGarrett D'Amore 504bb7efa7SGarrett D'Amore# 514bb7efa7SGarrett D'Amore# Include common rules. 524bb7efa7SGarrett D'Amore# 534bb7efa7SGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel 544bb7efa7SGarrett D'Amore 554bb7efa7SGarrett D'Amore# 564bb7efa7SGarrett D'Amore# Define targets 574bb7efa7SGarrett D'Amore# 584bb7efa7SGarrett D'AmoreALL_TARGET = $(BINARY) 594bb7efa7SGarrett D'AmoreLINT_TARGET = $(MODULE).lint 604bb7efa7SGarrett D'AmoreINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 614bb7efa7SGarrett D'Amore 624bb7efa7SGarrett D'Amore# 634bb7efa7SGarrett D'Amore# Overrides. 644bb7efa7SGarrett D'Amore# 654bb7efa7SGarrett D'AmoreDEBUG_FLGS = 664bb7efa7SGarrett D'AmoreDEBUG_DEFS += $(DEBUG_FLGS) 674bb7efa7SGarrett D'Amore 684bb7efa7SGarrett D'Amore# 694bb7efa7SGarrett D'Amore# lint pass one enforcement 704bb7efa7SGarrett D'Amore# 714bb7efa7SGarrett D'AmoreCFLAGS += $(CCVERBOSE) 724bb7efa7SGarrett D'Amore 734bb7efa7SGarrett D'Amore# 743f7d54a6SGarrett D'Amore# dependency on blkdev module, scope limiting mapfile 754bb7efa7SGarrett D'Amore# Note that we have to allow CTFMERGE to use fuzzy matching 764bb7efa7SGarrett D'Amore# 774bb7efa7SGarrett D'AmoreMAPFILE = $(UTSBASE)/common/io/sdcard/impl/mapfile 783f7d54a6SGarrett D'AmoreLDFLAGS += -dy -Ndrv/blkdev -B reduce -M $(MAPFILE) 794bb7efa7SGarrett D'AmoreCTFMRGFLAGS += -f 804bb7efa7SGarrett D'Amore 81*b6b206fcSJohn Levon# needs work 82*b6b206fcSJohn LevonSMOFF += all_func_returns 83*b6b206fcSJohn Levon 844bb7efa7SGarrett D'Amore# 854bb7efa7SGarrett D'Amore# Default build targets. 864bb7efa7SGarrett D'Amore# 874bb7efa7SGarrett D'Amore.KEEP_STATE: 884bb7efa7SGarrett D'Amore 894bb7efa7SGarrett D'Amoredef: $(DEF_DEPS) 904bb7efa7SGarrett D'Amore 914bb7efa7SGarrett D'Amoreall: $(ALL_DEPS) 924bb7efa7SGarrett D'Amore 934bb7efa7SGarrett D'Amoreclean: $(CLEAN_DEPS) 944bb7efa7SGarrett D'Amore 954bb7efa7SGarrett D'Amoreclobber: $(CLOBBER_DEPS) 964bb7efa7SGarrett D'Amore 974bb7efa7SGarrett D'Amorelint: $(LINT_DEPS) 984bb7efa7SGarrett D'Amore 994bb7efa7SGarrett D'Amoremodlintlib: $(MODLINTLIB_DEPS) 1004bb7efa7SGarrett D'Amore 1014bb7efa7SGarrett D'Amoreclean.lint: $(CLEAN_LINT_DEPS) 1024bb7efa7SGarrett D'Amore 1034bb7efa7SGarrett D'Amoreinstall: $(INSTALL_DEPS) 1044bb7efa7SGarrett D'Amore 1054bb7efa7SGarrett D'Amore# 1064bb7efa7SGarrett D'Amore# Include common targets. 1074bb7efa7SGarrett D'Amore# 1084bb7efa7SGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ 109