Makefile 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. # for SGlinux builds
  2. -include $(ROOTDIR)/modules/.config
  3. #
  4. # You will need to point this at your Intel ixp425 includes, this portion
  5. # of the Makefile only really works under SGLinux with the appropriate libs
  6. # installed. They can be downloaded from http://www.snapgear.org/
  7. #
  8. ifeq ($(CONFIG_CPU_IXP46X),y)
  9. IXPLATFORM = ixp46X
  10. else
  11. ifeq ($(CONFIG_CPU_IXP43X),y)
  12. IXPLATFORM = ixp43X
  13. else
  14. IXPLATFORM = ixp42X
  15. endif
  16. endif
  17. ifdef CONFIG_IXP400_LIB_2_4
  18. IX_XSCALE_SW = $(ROOTDIR)/modules/ixp425/ixp400-2.4/ixp400_xscale_sw
  19. OSAL_DIR = $(ROOTDIR)/modules/ixp425/ixp400-2.4/ixp_osal
  20. endif
  21. ifdef CONFIG_IXP400_LIB_2_1
  22. IX_XSCALE_SW = $(ROOTDIR)/modules/ixp425/ixp400-2.1/ixp400_xscale_sw
  23. OSAL_DIR = $(ROOTDIR)/modules/ixp425/ixp400-2.1/ixp_osal
  24. endif
  25. ifdef CONFIG_IXP400_LIB_2_0
  26. IX_XSCALE_SW = $(ROOTDIR)/modules/ixp425/ixp400-2.0/ixp400_xscale_sw
  27. OSAL_DIR = $(ROOTDIR)/modules/ixp425/ixp400-2.0/ixp_osal
  28. endif
  29. ifdef IX_XSCALE_SW
  30. ifdef CONFIG_IXP400_LIB_2_4
  31. IXP_CFLAGS = \
  32. -I$(ROOTDIR)/. \
  33. -I$(IX_XSCALE_SW)/src/include \
  34. -I$(OSAL_DIR)/common/include/ \
  35. -I$(OSAL_DIR)/common/include/modules/ \
  36. -I$(OSAL_DIR)/common/include/modules/ddk/ \
  37. -I$(OSAL_DIR)/common/include/modules/bufferMgt/ \
  38. -I$(OSAL_DIR)/common/include/modules/ioMem/ \
  39. -I$(OSAL_DIR)/common/os/linux/include/ \
  40. -I$(OSAL_DIR)/common/os/linux/include/core/ \
  41. -I$(OSAL_DIR)/common/os/linux/include/modules/ \
  42. -I$(OSAL_DIR)/common/os/linux/include/modules/ddk/ \
  43. -I$(OSAL_DIR)/common/os/linux/include/modules/bufferMgt/ \
  44. -I$(OSAL_DIR)/common/os/linux/include/modules/ioMem/ \
  45. -I$(OSAL_DIR)/platforms/$(IXPLATFORM)/include/ \
  46. -I$(OSAL_DIR)/platforms/$(IXPLATFORM)/os/linux/include/ \
  47. -DENABLE_IOMEM -DENABLE_BUFFERMGT -DENABLE_DDK \
  48. -DUSE_IXP4XX_CRYPTO
  49. else
  50. IXP_CFLAGS = \
  51. -I$(ROOTDIR)/. \
  52. -I$(IX_XSCALE_SW)/src/include \
  53. -I$(OSAL_DIR)/ \
  54. -I$(OSAL_DIR)/os/linux/include/ \
  55. -I$(OSAL_DIR)/os/linux/include/modules/ \
  56. -I$(OSAL_DIR)/os/linux/include/modules/ioMem/ \
  57. -I$(OSAL_DIR)/os/linux/include/modules/bufferMgt/ \
  58. -I$(OSAL_DIR)/os/linux/include/core/ \
  59. -I$(OSAL_DIR)/os/linux/include/platforms/ \
  60. -I$(OSAL_DIR)/os/linux/include/platforms/ixp400/ \
  61. -I$(OSAL_DIR)/os/linux/include/platforms/ixp400/ixp425 \
  62. -I$(OSAL_DIR)/os/linux/include/platforms/ixp400/ixp465 \
  63. -I$(OSAL_DIR)/os/linux/include/core/ \
  64. -I$(OSAL_DIR)/include/ \
  65. -I$(OSAL_DIR)/include/modules/ \
  66. -I$(OSAL_DIR)/include/modules/bufferMgt/ \
  67. -I$(OSAL_DIR)/include/modules/ioMem/ \
  68. -I$(OSAL_DIR)/include/platforms/ \
  69. -I$(OSAL_DIR)/include/platforms/ixp400/ \
  70. -DUSE_IXP4XX_CRYPTO
  71. endif
  72. endif
  73. ifdef CONFIG_IXP400_LIB_1_4
  74. IXP_CFLAGS = \
  75. -I$(ROOTDIR)/. \
  76. -I$(ROOTDIR)/modules/ixp425/ixp400-1.4/ixp400_xscale_sw/src/include \
  77. -I$(ROOTDIR)/modules/ixp425/ixp400-1.4/ixp400_xscale_sw/src/linux \
  78. -DUSE_IXP4XX_CRYPTO
  79. endif
  80. ifndef IXPDIR
  81. IXPDIR = ixp-version-is-not-supported
  82. endif
  83. ifeq ($(CONFIG_CPU_IXP46X),y)
  84. IXP_CFLAGS += -D__ixp46X
  85. else
  86. ifeq ($(CONFIG_CPU_IXP43X),y)
  87. IXP_CFLAGS += -D__ixp43X
  88. else
  89. IXP_CFLAGS += -D__ixp42X
  90. endif
  91. endif
  92. obj-$(CONFIG_OCF_IXP4XX) += ixp4xx.o
  93. obj ?= .
  94. EXTRA_CFLAGS += $(IXP_CFLAGS) -I$(obj)/.. -I$(obj)/.
  95. ifdef TOPDIR
  96. -include $(TOPDIR)/Rules.make
  97. endif