2006-06-19 22:59:53 +03:00
|
|
|
#
|
|
|
|
# Makefile for the Broadcom wl driver
|
|
|
|
#
|
|
|
|
# Copyright 2004, Broadcom Corporation
|
|
|
|
# All Rights Reserved.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
|
|
|
|
# KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
|
|
|
|
# SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
|
|
# FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
|
|
|
|
#
|
|
|
|
# $Id: Makefile,v 1.2 2005/03/29 03:32:18 mbm Exp $
|
|
|
|
|
|
|
|
EXTRA_CFLAGS += -I$(TOPDIR)/arch/mips/bcm947xx/include -DBCMDRIVER
|
|
|
|
|
2006-07-24 10:10:13 +03:00
|
|
|
O_TARGET := wl$(MOD_NAME).o
|
2006-06-19 22:59:53 +03:00
|
|
|
|
2006-06-20 00:11:35 +03:00
|
|
|
obj-y := wl_mod$(MOD_NAME).o
|
2006-06-19 22:59:53 +03:00
|
|
|
obj-y += bcmutils.o hnddma.o linux_osl.o
|
|
|
|
|
|
|
|
obj-m := $(O_TARGET)
|
|
|
|
|
2006-06-20 00:11:35 +03:00
|
|
|
wl_mod$(MOD_NAME).o: wl_apsta$(MOD_NAME).o
|
2006-06-19 22:59:53 +03:00
|
|
|
sed -e 's,eth%d,wl%d\x00,g' < $< > $@
|
|
|
|
|
2006-07-24 10:10:13 +03:00
|
|
|
wl$(MOD_NAME).o.patch: wl$(MOD_NAME).o
|
|
|
|
$(OBJDUMP) -d $< | perl patchtable.pl > $@
|
2006-06-19 22:59:53 +03:00
|
|
|
|
2006-07-24 10:10:13 +03:00
|
|
|
modules: wl$(MOD_NAME).o.patch
|
2006-06-19 22:59:53 +03:00
|
|
|
|
|
|
|
include $(TOPDIR)/Rules.make
|