summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/patches-2.6.30/9993-Makefile-vmlinux-path.patch
blob: 3b91c97172fe583e3fd8d799c41ed06e8c951904 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/Makefile	2009-10-05 18:38:08.000000000 +0300
+++ b/Makefile	2013-09-13 18:04:16.832665819 +0300
@@ -696,7 +696,11 @@
 vmlinux-init := $(head-y) $(init-y)
 vmlinux-main := $(core-y) $(libs-y) $(drivers-y) $(net-y)
 vmlinux-all  := $(vmlinux-init) $(vmlinux-main)
+ifneq ($(CONFIG_RTL_819X),)
+vmlinux-lds  := arch/$(SRCARCH)/bsp/vmlinux.lds
+else
 vmlinux-lds  := arch/$(SRCARCH)/kernel/vmlinux.lds
+endif
 export KBUILD_VMLINUX_OBJS := $(vmlinux-all)
 
 # Rule to link vmlinux - also used during CONFIG_KALLSYMS