4be39ac606cc80de5b28e745a94b099557387ff7vboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# CDDL HEADER START
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# The contents of this file are subject to the terms of the
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Common Development and Distribution License (the "License").
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# You may not use this file except in compliance with the License.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e64031e20c39650a7bc902a3e1aba613b9415deevboxsync# or http://www.opensolaris.org/os/licensing.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# See the License for the specific language governing permissions
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# and limitations under the License.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# When distributing Covered Code, include this CDDL HEADER in each
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# If applicable, add the following below this CDDL HEADER, with the
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# CDDL HEADER END
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Use is subject to license terms.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# This file makes the atheros driver for an intel system
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# intel architecture dependent
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncUTSBASE = ../..
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Define the module and object file sets.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncMODULE = ath
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncOBJECTS = $(ATH_OBJS:%=$(OBJS_DIR)/%) $(OBJS_DIR)/hal.o
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncLINTS = $(LINTS_DIR)/ath_aux.ln \
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync $(LINTS_DIR)/ath_main.ln \
3f001a14123f18f268775568f603105a7ed246b8vboxsync $(LINTS_DIR)/ath_osdep.ln \
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync $(LINTS_DIR)/ath_rate.ln
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Include common rules.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncinclude $(UTSBASE)/intel/Makefile.intel
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Define targets
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncALL_TARGET = $(BINARY)
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncLINT_TARGET = $(MODULE).lint
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Driver depends on GLDv3 & wifi kernel support module.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncLDFLAGS += -dy -Nmisc/mac -Nmisc/net80211
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncCERRWARN += -_gcc=-Wno-type-limits
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncCERRWARN += -_gcc=-Wno-unused-variable
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncCERRWARN += -_gcc=-Wno-empty-body
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Default build targets.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync.KEEP_STATE:
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncdef: $(DEF_DEPS)
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncall: $(ALL_DEPS)
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncclean: $(CLEAN_DEPS)
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncclobber: $(CLOBBER_DEPS)
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsynclint: $(LINT_DEPS)
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncmodlintlib: $(MODLINTLIB_DEPS)
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncclean.lint: $(CLEAN_LINT_DEPS)
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncinstall: $(INSTALL_DEPS)
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Include common targets.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncinclude $(UTSBASE)/intel/Makefile.targ
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# If you have any special case that general
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Makefile rules don't serve for you, just do
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# it yourself.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# The amd64 version of this object has the .eh_frame section tagged
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# as SHT_PROGBITS, while the ABI requires SHT_AMD64_UNWIND. The Solaris
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# ld enforces this, so use elfedit to bring the object in line with
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# this requirement.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync#
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncATHEROS_HAL=$(UTSBASE)/common/io/ath/hal_x86_$(CLASS).o.uu
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync$(OBJS_DIR)/hal.o: $(ATHEROS_HAL)
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync uudecode -o $@ $(ATHEROS_HAL)
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync if [ `elfedit -r -e 'ehdr:e_machine' $@` = EM_AMD64 ]; \
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync then elfedit -e 'shdr:sh_type .eh_frame SHT_AMD64_UNWIND' $@; fi
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync