summaryrefslogtreecommitdiffstats
path: root/drivers/tc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tc/Makefile')
-rw-r--r--drivers/tc/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/tc/Makefile b/drivers/tc/Makefile
index b1f4c4644..701214ea5 100644
--- a/drivers/tc/Makefile
+++ b/drivers/tc/Makefile
@@ -14,8 +14,20 @@ ALL_SUB_DIRS :=
L_TARGET := tc.a
L_OBJS := tc.o
+# Nasty trick as nobody references tcsyms.o, but we still want it linked.
+# Stolen from pci Makefile
+ifeq ($(CONFIG_MODULES),y)
+O_TARGET = tc_syms.o
+OX_OBJS = tcsyms.o
+O_OBJS = tc.o
+L_OBJS := tc_syms.o
+else
+L_OBJS := tc.o
+endif
+
ifdef CONFIG_ZS
L_OBJS += zs.o
endif
include $(TOPDIR)/Rules.make
+