ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# CDDL HEADER START
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# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# See the License for the specific language governing permissions
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# and limitations under the License.
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# CDDL HEADER END
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Use is subject to license terms.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# This file makes the atheros driver for an intel system
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# intel architecture dependent
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Define the module and object file sets.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncOBJECTS = $(ATH_OBJS:%=$(OBJS_DIR)/%) $(OBJS_DIR)/hal.o
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Include common rules.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Define targets
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Driver depends on GLDv3 & wifi kernel support module.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Default build targets.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Include common targets.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# If you have any special case that general
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# Makefile rules don't serve for you, just do
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync# it yourself.
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.
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsyncATHEROS_HAL=$(UTSBASE)/common/io/ath/hal_x86_$(CLASS).o.uu
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync if [ `elfedit -r -e 'ehdr:e_machine' $@` = EM_AMD64 ]; \
ad13c20995d0a1aafbfbd35b2d698ef2ff5fbeefvboxsync then elfedit -e 'shdr:sh_type .eh_frame SHT_AMD64_UNWIND' $@; fi