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