blob: 4a3ead3eff2035a71d6e30818d72a5def8b48ae0 [file] [log] [blame]
wdenk7152b1d2003-09-05 23:19:14 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2003-2006
wdenk7152b1d2003-09-05 23:19:14 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# See file CREDITS for list of people who contributed to this
6# project.
7#
8# This program is free software; you can redistribute it and/or
9# modify it under the terms of the GNU General Public License as
10# published by the Free Software Foundation; either version 2 of
11# the License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21# MA 02111-1307 USA
22#
Marcel Ziswiler7817cb22007-12-30 03:30:46 +010023# File: drivers/net/sk98lin/Makefile
wdenk7152b1d2003-09-05 23:19:14 +000024#
25# Makefile for the SysKonnect SK-98xx device driver.
26#
Marian Balakowiczf9328632006-09-01 19:49:50 +020027
wdenkb70e7a02003-09-12 20:09:09 +000028include $(TOPDIR)/config.mk
wdenk7152b1d2003-09-05 23:19:14 +000029
Marian Balakowiczf9328632006-09-01 19:49:50 +020030LIB := $(obj)libsk98lin.a
wdenk7152b1d2003-09-05 23:19:14 +000031
Ben Warren8379f422008-07-12 00:08:45 -070032COBJS-$(CONFIG_SK98) += skge.o skaddr.o skgehwt.o skgeinit.o skgepnmi.o \
33 skgesirq.o ski2c.o sklm80.o skqueue.o skrlmt.o sktimer.o \
34 skvpd.o skxmac2.o skcsum.o
Grant Likelyf0037c52007-09-24 09:05:30 -060035#COBJS-y += skproc.o
wdenk7152b1d2003-09-05 23:19:14 +000036
Ben Warren8379f422008-07-12 00:08:45 -070037COBJS-$(CONFIG_SK98) += uboot_skb.o uboot_drv.o
Marian Balakowiczf9328632006-09-01 19:49:50 +020038
Grant Likelyf0037c52007-09-24 09:05:30 -060039COBJS := $(COBJS-y)
Marian Balakowiczf9328632006-09-01 19:49:50 +020040SRCS := $(COBJS:.o=.c)
41OBJS := $(addprefix $(obj),$(COBJS))
wdenk7152b1d2003-09-05 23:19:14 +000042
43# DBGDEF = \
44# -DDEBUG
45
46ifdef DEBUG
47DBGDEF += \
48-DSK_DEBUG_CHKMOD=0x00000000L \
49-DSK_DEBUG_CHKCAT=0x00000000L
50endif
51
52
53# **** possible debug modules for SK_DEBUG_CHKMOD *****************
54# SK_DBGMOD_MERR 0x00000001L /* general module error indication */
55# SK_DBGMOD_HWM 0x00000002L /* Hardware init module */
56# SK_DBGMOD_RLMT 0x00000004L /* RLMT module */
57# SK_DBGMOD_VPD 0x00000008L /* VPD module */
58# SK_DBGMOD_I2C 0x00000010L /* I2C module */
59# SK_DBGMOD_PNMI 0x00000020L /* PNMI module */
60# SK_DBGMOD_CSUM 0x00000040L /* CSUM module */
61# SK_DBGMOD_ADDR 0x00000080L /* ADDR module */
62# SK_DBGMOD_DRV 0x00010000L /* DRV module */
63
64# **** possible debug categories for SK_DEBUG_CHKCAT **************
65# *** common modules ***
66# SK_DBGCAT_INIT 0x00000001L module/driver initialization
67# SK_DBGCAT_CTRL 0x00000002L controlling: add/rmv MCA/MAC and other controls (IOCTL)
68# SK_DBGCAT_ERR 0x00000004L error handling paths
69# SK_DBGCAT_TX 0x00000008L transmit path
70# SK_DBGCAT_RX 0x00000010L receive path
71# SK_DBGCAT_IRQ 0x00000020L general IRQ handling
72# SK_DBGCAT_QUEUE 0x00000040L any queue management
73# SK_DBGCAT_DUMP 0x00000080L large data output e.g. hex dump
74# SK_DBGCAT_FATAL 0x00000100L large data output e.g. hex dump
75
76# *** driver (file skge.c) ***
77# SK_DBGCAT_DRV_ENTRY 0x00010000 entry points
78# SK_DBGCAT_DRV_??? 0x00020000 not used
79# SK_DBGCAT_DRV_MCA 0x00040000 multicast
80# SK_DBGCAT_DRV_TX_PROGRESS 0x00080000 tx path
81# SK_DBGCAT_DRV_RX_PROGRESS 0x00100000 rx path
82# SK_DBGCAT_DRV_PROGRESS 0x00200000 general runtime
83# SK_DBGCAT_DRV_??? 0x00400000 not used
84# SK_DBGCAT_DRV_PROM 0x00800000 promiscuous mode
85# SK_DBGCAT_DRV_TX_FRAME 0x01000000 display tx frames
86# SK_DBGCAT_DRV_ERROR 0x02000000 error conditions
87# SK_DBGCAT_DRV_INT_SRC 0x04000000 interrupts sources
88# SK_DBGCAT_DRV_EVENT 0x08000000 driver events
89
90EXTRA_CFLAGS += -I. -DSK_USE_CSUM $(DBGDEF)
91
92CFLAGS += $(EXTRA_CFLAGS)
Mike Frysinger9aef7382009-07-19 15:17:03 -040093HOSTCFLAGS += $(EXTRA_CFLAGS)
wdenk7152b1d2003-09-05 23:19:14 +000094
95
96all: $(LIB)
97
Marian Balakowiczf9328632006-09-01 19:49:50 +020098$(LIB): $(obj).depend $(OBJS)
Wolfgang Denk2b208f52006-10-09 01:02:05 +020099 $(AR) $(ARFLAGS) $@ $(OBJS)
wdenk7152b1d2003-09-05 23:19:14 +0000100
101#########################################################################
102
Marian Balakowiczf9328632006-09-01 19:49:50 +0200103# defines $(obj).depend target
104include $(SRCTREE)/rules.mk
wdenk7152b1d2003-09-05 23:19:14 +0000105
Marian Balakowiczf9328632006-09-01 19:49:50 +0200106sinclude $(obj).depend
wdenk7152b1d2003-09-05 23:19:14 +0000107
108#########################################################################