wdenk | 7152b1d | 2003-09-05 23:19:14 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2003-2006 |
wdenk | 7152b1d | 2003-09-05 23:19:14 +0000 | [diff] [blame] | 3 | # 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 Ziswiler | 7817cb2 | 2007-12-30 03:30:46 +0100 | [diff] [blame] | 23 | # File: drivers/net/sk98lin/Makefile |
wdenk | 7152b1d | 2003-09-05 23:19:14 +0000 | [diff] [blame] | 24 | # |
| 25 | # Makefile for the SysKonnect SK-98xx device driver. |
| 26 | # |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 27 | |
wdenk | b70e7a0 | 2003-09-12 20:09:09 +0000 | [diff] [blame] | 28 | include $(TOPDIR)/config.mk |
wdenk | 7152b1d | 2003-09-05 23:19:14 +0000 | [diff] [blame] | 29 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 30 | LIB := $(obj)libsk98lin.a |
wdenk | 7152b1d | 2003-09-05 23:19:14 +0000 | [diff] [blame] | 31 | |
Grant Likely | f0037c5 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 32 | COBJS-y += skge.o |
| 33 | COBJS-y += skaddr.o |
| 34 | COBJS-y += skgehwt.o |
| 35 | COBJS-y += skgeinit.o |
| 36 | COBJS-y += skgepnmi.o |
| 37 | COBJS-y += skgesirq.o |
| 38 | COBJS-y += ski2c.o |
| 39 | COBJS-y += sklm80.o |
| 40 | COBJS-y += skqueue.o |
| 41 | COBJS-y += skrlmt.o |
| 42 | COBJS-y += sktimer.o |
| 43 | COBJS-y += skvpd.o |
| 44 | COBJS-y += skxmac2.o |
| 45 | COBJS-y += skcsum.o |
| 46 | #COBJS-y += skproc.o |
wdenk | 7152b1d | 2003-09-05 23:19:14 +0000 | [diff] [blame] | 47 | |
Grant Likely | f0037c5 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 48 | COBJS-y += uboot_skb.o |
| 49 | COBJS-y += uboot_drv.o |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 50 | |
Grant Likely | f0037c5 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 51 | COBJS := $(COBJS-y) |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 52 | SRCS := $(COBJS:.o=.c) |
| 53 | OBJS := $(addprefix $(obj),$(COBJS)) |
wdenk | 7152b1d | 2003-09-05 23:19:14 +0000 | [diff] [blame] | 54 | |
| 55 | # DBGDEF = \ |
| 56 | # -DDEBUG |
| 57 | |
| 58 | ifdef DEBUG |
| 59 | DBGDEF += \ |
| 60 | -DSK_DEBUG_CHKMOD=0x00000000L \ |
| 61 | -DSK_DEBUG_CHKCAT=0x00000000L |
| 62 | endif |
| 63 | |
| 64 | |
| 65 | # **** possible debug modules for SK_DEBUG_CHKMOD ***************** |
| 66 | # SK_DBGMOD_MERR 0x00000001L /* general module error indication */ |
| 67 | # SK_DBGMOD_HWM 0x00000002L /* Hardware init module */ |
| 68 | # SK_DBGMOD_RLMT 0x00000004L /* RLMT module */ |
| 69 | # SK_DBGMOD_VPD 0x00000008L /* VPD module */ |
| 70 | # SK_DBGMOD_I2C 0x00000010L /* I2C module */ |
| 71 | # SK_DBGMOD_PNMI 0x00000020L /* PNMI module */ |
| 72 | # SK_DBGMOD_CSUM 0x00000040L /* CSUM module */ |
| 73 | # SK_DBGMOD_ADDR 0x00000080L /* ADDR module */ |
| 74 | # SK_DBGMOD_DRV 0x00010000L /* DRV module */ |
| 75 | |
| 76 | # **** possible debug categories for SK_DEBUG_CHKCAT ************** |
| 77 | # *** common modules *** |
| 78 | # SK_DBGCAT_INIT 0x00000001L module/driver initialization |
| 79 | # SK_DBGCAT_CTRL 0x00000002L controlling: add/rmv MCA/MAC and other controls (IOCTL) |
| 80 | # SK_DBGCAT_ERR 0x00000004L error handling paths |
| 81 | # SK_DBGCAT_TX 0x00000008L transmit path |
| 82 | # SK_DBGCAT_RX 0x00000010L receive path |
| 83 | # SK_DBGCAT_IRQ 0x00000020L general IRQ handling |
| 84 | # SK_DBGCAT_QUEUE 0x00000040L any queue management |
| 85 | # SK_DBGCAT_DUMP 0x00000080L large data output e.g. hex dump |
| 86 | # SK_DBGCAT_FATAL 0x00000100L large data output e.g. hex dump |
| 87 | |
| 88 | # *** driver (file skge.c) *** |
| 89 | # SK_DBGCAT_DRV_ENTRY 0x00010000 entry points |
| 90 | # SK_DBGCAT_DRV_??? 0x00020000 not used |
| 91 | # SK_DBGCAT_DRV_MCA 0x00040000 multicast |
| 92 | # SK_DBGCAT_DRV_TX_PROGRESS 0x00080000 tx path |
| 93 | # SK_DBGCAT_DRV_RX_PROGRESS 0x00100000 rx path |
| 94 | # SK_DBGCAT_DRV_PROGRESS 0x00200000 general runtime |
| 95 | # SK_DBGCAT_DRV_??? 0x00400000 not used |
| 96 | # SK_DBGCAT_DRV_PROM 0x00800000 promiscuous mode |
| 97 | # SK_DBGCAT_DRV_TX_FRAME 0x01000000 display tx frames |
| 98 | # SK_DBGCAT_DRV_ERROR 0x02000000 error conditions |
| 99 | # SK_DBGCAT_DRV_INT_SRC 0x04000000 interrupts sources |
| 100 | # SK_DBGCAT_DRV_EVENT 0x08000000 driver events |
| 101 | |
| 102 | EXTRA_CFLAGS += -I. -DSK_USE_CSUM $(DBGDEF) |
| 103 | |
| 104 | CFLAGS += $(EXTRA_CFLAGS) |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 105 | HOST_CFLAGS += $(EXTRA_CFLAGS) |
wdenk | 7152b1d | 2003-09-05 23:19:14 +0000 | [diff] [blame] | 106 | |
| 107 | |
| 108 | all: $(LIB) |
| 109 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 110 | $(LIB): $(obj).depend $(OBJS) |
Wolfgang Denk | 2b208f5 | 2006-10-09 01:02:05 +0200 | [diff] [blame] | 111 | $(AR) $(ARFLAGS) $@ $(OBJS) |
wdenk | 7152b1d | 2003-09-05 23:19:14 +0000 | [diff] [blame] | 112 | |
| 113 | ######################################################################### |
| 114 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 115 | # defines $(obj).depend target |
| 116 | include $(SRCTREE)/rules.mk |
wdenk | 7152b1d | 2003-09-05 23:19:14 +0000 | [diff] [blame] | 117 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 118 | sinclude $(obj).depend |
wdenk | 7152b1d | 2003-09-05 23:19:14 +0000 | [diff] [blame] | 119 | |
| 120 | ######################################################################### |