summaryrefslogtreecommitdiff
path: root/drivers/net/r8168/Makefile
diff options
context:
space:
mode:
authorMursalin Akon <makon@nvidia.com>2011-09-22 14:13:15 -0700
committerRohan Somvanshi <rsomvanshi@nvidia.com>2011-09-28 04:53:34 -0700
commit89932d307cff80d67572a9b43e5fd1542b92b00e (patch)
tree64ab209e991fbdab872bac8ae83292489c7c25ed /drivers/net/r8168/Makefile
parentdde2b745987527d4226e79b37689ad8e718c644b (diff)
net: r8168: add kernel integrationtegra-l4t-er-2011-09-28
Add proper kernel integration Change-Id: I723563f81b543eba023bc9b59288b28d11aef1ec Signed-off-by: Mursalin Akon <makon@nvidia.com> Reviewed-on: http://git-master/r/54113 Reviewed-by: Allen Martin <amartin@nvidia.com>
Diffstat (limited to 'drivers/net/r8168/Makefile')
-rw-r--r--drivers/net/r8168/Makefile27
1 files changed, 2 insertions, 25 deletions
diff --git a/drivers/net/r8168/Makefile b/drivers/net/r8168/Makefile
index 88c9a5a524eb..e3a91269b859 100644
--- a/drivers/net/r8168/Makefile
+++ b/drivers/net/r8168/Makefile
@@ -30,31 +30,8 @@
# US5,307,459, US5,434,872, US5,732,094, US6,570,884, US6,115,776, and US6,327,625.
################################################################################
-KVER := $(shell uname -r)
-KDIR := /lib/modules/$(KVER)/build
-KMISC := /lib/modules/$(KVER)/kernel/drivers/net/
-KEXT := $(shell echo $(KVER) | sed -ne 's/^2\.[567]\..*/k/p')o
-KFLAG := 2$(shell echo $(KVER) | sed -ne 's/^2\.[4]\..*/4/p')x
-
EXTRA_CFLAGS += -DCONFIG_R8168_NAPI
EXTRA_CFLAGS += -DCONFIG_R8168_VLAN
-modules:
-ifeq ($(KFLAG),24x)
- $(MAKE) -f Makefile_linux24x
-else
- $(MAKE) -C $(KDIR) SUBDIRS=$(PWD)/src modules
- strip --strip-debug r8168.$(KEXT)
-endif
-
-clean:
- rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers Module.markers *.order
-
-
-install:
- install -m 744 -c r8168.$(KEXT) $(KMISC)
-
-ifneq ($(KFLAG),24x)
-obj-m += r8168.o
-r8168-objs := r8168_n.o r8168_asf.o rtl_eeprom.o rtltool.o
-endif#($(KFLAG),24x)
+obj-$(CONFIG_R8168) += r8168.o
+r8168-objs := r8168_n.o r8168_asf.o rtl_eeprom.o rtltool.o