diff options
author | Roman Yeryomin <roman@advem.lv> | 2012-09-13 00:40:35 +0300 |
---|---|---|
committer | Roman Yeryomin <roman@advem.lv> | 2012-12-03 00:13:21 +0200 |
commit | 5deb3317cb51ac52de922bb55f8492624018906d (patch) | |
tree | c2fbe6346699d9bb0f2100490c3029519bb8fde8 /target/linux/realtek/files/drivers/net/rtl819x/Makefile | |
parent | 0239d37124f9184b478a42de8a7fa1bc85a6a6fe (diff) |
Add realtek target files
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'target/linux/realtek/files/drivers/net/rtl819x/Makefile')
-rw-r--r-- | target/linux/realtek/files/drivers/net/rtl819x/Makefile | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/target/linux/realtek/files/drivers/net/rtl819x/Makefile b/target/linux/realtek/files/drivers/net/rtl819x/Makefile new file mode 100644 index 000000000..584a16397 --- /dev/null +++ b/target/linux/realtek/files/drivers/net/rtl819x/Makefile @@ -0,0 +1,72 @@ +# +# Makefile for the 865x High Performance +# +# 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... +# Note 3! Pay attention to the important comments line(21-25 and 42-46)!!!!! + +#obj-y := mmap.o + +DIR_RTLASIC = $(TOPDIR)/drivers/net/rtl819x/ +EXTRA_CFLAGS += -DCONFIG_RTL865X_MODULE_INTERNAL + +#obj-y := rtl_glue.o +#Add mips16 Support +ifdef CONFIG_RTL865X_KERNEL_MIPS16_LAYERDRIVER + #CFLAGS_rtl865xc_swNic.o = -mips16 + #CFLAGS_rtl_nic.o = -mips16 + #CFLAGS_romeper.o = -mips16 +endif + +# +# The following configuration is used for 865xC model code only. +# In fact, we will port more and more driver files from 865xB to 865xC. +# +obj-y += rtl865xc_swNic.o +obj-y += rtl_nic.o +obj-$(CONFIG_RTL_PROC_DEBUG) += rtl865x_proc_debug.o +obj-$(CONFIG_RTL865X_ROMEPERF) += romeperf.o + +#===>Attention: the following line define subdir with type ":=",not "+=", so to be +# sure that the other addition to subdir should not be placed before this line,or +# the addition would be layed over!! +# + +obj-y += rtl865x/built-in.o +subdir-y += rtl865x + +EXTRA_CFLAGS += -DRTL865X_OVER_KERNEL -DRTL865X_OVER_LINUX -D__KERNEL__ -Wno-implicit -Werror + +#EXTRA_CFLAGS += -DCONFIG_RTL865X_IGMP_SNOOPING + +ifeq ($(CONFIG_MESH_ENABLE),y) + EXTRA_CFLAGS += -DCONFIG_RTK_MESH #-DMESH_USE_METRICOP + ifeq ($(CONFIG_11S_TEST_MODE),y) + EXTRA_CFLAGS += -D_11s_TEST_MODE_ + endif +endif + +#######################################################################################################_CFLAGS +# +# FAST EXTERNAL DEVICES related files +# +# Fast path for external device process +# +######################################################################################################## + +EXTRA_CFLAGS += -I$(TOPDIR)/include +EXTRA_CFLAGS += -I$(TOPDIR)/arch/rlx/bsp +EXTRA_CFLAGS += -I$(DIR_RTLASIC) +EXTRA_CFLAGS += -I$(DIR_BOARD) +EXTRA_CFLAGS += -D__KERNEL__ +EXTRA_CFLAGS += -DEXPORT_SYMTAB +ifeq ($(CONFIG_RTL865X_MODULE_ROMEDRV),y) +EXTRA_CFLAGS += -G 0 +EXTRA_CFLAGS += -DMODULE +EXTRA_CFLAGS += -mlong-calls +endif #$(CONFIG_RTL865X_MODULE_ROMEDRV)!=y + +EXTRA_AFLAGS += $(EXTRA_CFLAGS) |