Makefile 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #
  2. # Makefile for the SysKonnect SK-98xx device driver.
  3. #
  4. #
  5. # Standalone driver params
  6. # SKPARAM += -DSK_KERNEL_24
  7. # SKPARAM += -DSK_KERNEL_24_26
  8. # SKPARAM += -DSK_KERNEL_26
  9. # SKPARAM += -DSK_KERNEL_22_24
  10. obj-$(CONFIG_SK98LIN) += sk98lin.o
  11. sk98lin-objs := \
  12. skge.o \
  13. skethtool.o \
  14. skdim.o \
  15. skaddr.o \
  16. skgehwt.o \
  17. skgeinit.o \
  18. skgepnmi.o \
  19. skgesirq.o \
  20. ski2c.o \
  21. sklm80.o \
  22. skqueue.o \
  23. skrlmt.o \
  24. sktimer.o \
  25. skvpd.o \
  26. skxmac2.o
  27. # DBGDEF = \
  28. # -DDEBUG
  29. ifdef DEBUG
  30. DBGDEF += \
  31. -DSK_DEBUG_CHKMOD=0x00000000L \
  32. -DSK_DEBUG_CHKCAT=0x00000000L
  33. endif
  34. # **** possible debug modules for SK_DEBUG_CHKMOD *****************
  35. # SK_DBGMOD_MERR 0x00000001L /* general module error indication */
  36. # SK_DBGMOD_HWM 0x00000002L /* Hardware init module */
  37. # SK_DBGMOD_RLMT 0x00000004L /* RLMT module */
  38. # SK_DBGMOD_VPD 0x00000008L /* VPD module */
  39. # SK_DBGMOD_I2C 0x00000010L /* I2C module */
  40. # SK_DBGMOD_PNMI 0x00000020L /* PNMI module */
  41. # SK_DBGMOD_CSUM 0x00000040L /* CSUM module */
  42. # SK_DBGMOD_ADDR 0x00000080L /* ADDR module */
  43. # SK_DBGMOD_DRV 0x00010000L /* DRV module */
  44. # **** possible debug categories for SK_DEBUG_CHKCAT **************
  45. # *** common modules ***
  46. # SK_DBGCAT_INIT 0x00000001L module/driver initialization
  47. # SK_DBGCAT_CTRL 0x00000002L controlling: add/rmv MCA/MAC and other controls (IOCTL)
  48. # SK_DBGCAT_ERR 0x00000004L error handling paths
  49. # SK_DBGCAT_TX 0x00000008L transmit path
  50. # SK_DBGCAT_RX 0x00000010L receive path
  51. # SK_DBGCAT_IRQ 0x00000020L general IRQ handling
  52. # SK_DBGCAT_QUEUE 0x00000040L any queue management
  53. # SK_DBGCAT_DUMP 0x00000080L large data output e.g. hex dump
  54. # SK_DBGCAT_FATAL 0x00000100L large data output e.g. hex dump
  55. # *** driver (file skge.c) ***
  56. # SK_DBGCAT_DRV_ENTRY 0x00010000 entry points
  57. # SK_DBGCAT_DRV_??? 0x00020000 not used
  58. # SK_DBGCAT_DRV_MCA 0x00040000 multicast
  59. # SK_DBGCAT_DRV_TX_PROGRESS 0x00080000 tx path
  60. # SK_DBGCAT_DRV_RX_PROGRESS 0x00100000 rx path
  61. # SK_DBGCAT_DRV_PROGRESS 0x00200000 general runtime
  62. # SK_DBGCAT_DRV_??? 0x00400000 not used
  63. # SK_DBGCAT_DRV_PROM 0x00800000 promiscuous mode
  64. # SK_DBGCAT_DRV_TX_FRAME 0x01000000 display tx frames
  65. # SK_DBGCAT_DRV_ERROR 0x02000000 error conditions
  66. # SK_DBGCAT_DRV_INT_SRC 0x04000000 interrupts sources
  67. # SK_DBGCAT_DRV_EVENT 0x08000000 driver events
  68. EXTRA_CFLAGS += -Idrivers/net/sk98lin -DSK_DIAG_SUPPORT -DGENESIS -DYUKON $(DBGDEF) $(SKPARAM)
  69. clean:
  70. rm -f core *.o *.a *.s