summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/files/drivers/net/rtl819x/rtl865x
diff options
context:
space:
mode:
authorRoman Yeryomin <roman@advem.lv>2012-09-13 00:40:35 +0300
committerRoman Yeryomin <roman@advem.lv>2012-12-03 00:13:21 +0200
commit5deb3317cb51ac52de922bb55f8492624018906d (patch)
treec2fbe6346699d9bb0f2100490c3029519bb8fde8 /target/linux/realtek/files/drivers/net/rtl819x/rtl865x
parent0239d37124f9184b478a42de8a7fa1bc85a6a6fe (diff)
Add realtek target files
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'target/linux/realtek/files/drivers/net/rtl819x/rtl865x')
-rw-r--r--target/linux/realtek/files/drivers/net/rtl819x/rtl865x/Makefile85
1 files changed, 85 insertions, 0 deletions
diff --git a/target/linux/realtek/files/drivers/net/rtl819x/rtl865x/Makefile b/target/linux/realtek/files/drivers/net/rtl819x/rtl865x/Makefile
new file mode 100644
index 000000000..4f510a664
--- /dev/null
+++ b/target/linux/realtek/files/drivers/net/rtl819x/rtl865x/Makefile
@@ -0,0 +1,85 @@
+#
+# Makefile for the Tulip ethernet driver
+#
+# Note! Dependencies are done automagically by 'make dep', which also
+# removes any old dependencies. DON'T put your own dependencies here
+# unless it's something special (ie not a .c file).
+#
+# Note 2! The CFLAGS definitions are now in the main makefile...
+
+
+obj-y := ../common/built-in.o
+subdir-y := ../common
+
+obj-y += ../AsicDriver/built-in.o
+subdir-y += ../AsicDriver
+
+L4_SUPPORT=
+ifdef CONFIG_RTL_8198
+L4_SUPPORT=1
+endif
+
+ifdef CONFIG_RTL_8196CT
+L4_SUPPORT=1
+endif
+
+ifdef CONFIG_RTL_8198T
+L4_SUPPORT=1
+endif
+
+ifdef CONFIG_RTL_LAYERED_DRIVER
+ ifdef CONFIG_RTL_LAYERED_DRIVER_L2
+ obj-y += ../l2Driver/built-in.o
+ subdir-y += ../l2Driver
+ else
+ ifdef CONFIG_RTL_STP
+ obj-y += ../l2Driver/built-in.o
+ subdir-y += ../l2Driver
+ endif
+ endif
+else
+ obj-y += ../l2Driver/built-in.o
+ subdir-y += ../l2Driver
+endif
+
+ifdef CONFIG_RTL_LAYERED_DRIVER
+ ifdef CONFIG_RTL_LAYERED_DRIVER_L3
+ obj-y += ../l3Driver/built-in.o
+ subdir-y += ../l3Driver
+ else
+ ifdef CONFIG_RTL_HARDWARE_MULTICAST
+ obj-y += ../l3Driver/built-in.o
+ subdir-y += ../l3Driver
+ endif
+ endif
+else
+ obj-y += ../l3Driver/built-in.o
+ subdir-y += ../l3Driver
+endif
+
+ifdef CONFIG_RTL_LAYERED_DRIVER
+ ifeq ($(L4_SUPPORT), 1)
+ ifdef CONFIG_RTL_LAYERED_DRIVER_L4
+ obj-y += ../l4Driver/built-in.o
+ subdir-y += ../l4Driver
+ endif
+ endif
+else
+ obj-y += ../l4Driver/built-in.o
+ subdir-y += ../l4Driver
+endif
+
+ifdef CONFIG_RTL_IGMP_SNOOPING
+obj-y += ../igmpsnooping/built-in.o
+subdir-y += ../igmpsnooping
+endif
+
+ifdef CONFIG_8198_PORT5_RGMII
+ obj-y += ../RTL8370_RTL8367_API/built-in.o
+ subdir-y += ../RTL8370_RTL8367_API
+endif
+
+EXTRA_CFLAGS += -O1 -DRTL_TBLDRV -D__linux__ -mno-memcpy -DRTL865X_OVER_KERNEL -DRTL865X_OVER_LINUX -Werror
+
+EXTRA_AFLAGS += $(EXTRA_CFLAGS)
+