]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: build rbtree.o from source
authorAmerigo Wang <amwang@redhat.com>
Thu, 19 May 2011 06:36:28 +0000 (14:36 +0800)
committerPekka Enberg <penberg@kernel.org>
Thu, 19 May 2011 19:11:19 +0000 (22:11 +0300)
Don't link the rbtree.o from kernel object tree, build
rbtree.o from source by ourselves.

Acked-by: Ingo Molnar <mingo@elte.hu>
Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: WANG Cong <amwang@redhat.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/Makefile

index 30f0f61bb62971d68f5943803462b35671620421..8cfa9a2bebd06a179d6ac1e8ad924a5427a06c38 100644 (file)
@@ -45,9 +45,10 @@ OBJS    += disk/blk.o
 OBJS    += mptable.o
 OBJS    += threadpool.o
 OBJS    += irq.o
-OBJS    += ../../lib/rbtree.o
+OBJS    += rbtree.o
 OBJS    += util/rbtree-interval.o
 
+
 FLAGS_BFD=$(CFLAGS) -lbfd
 has_bfd := $(call try-cc,$(SOURCE_BFD),$(FLAGS_BFD))
 ifeq ($(has_bfd),y)
@@ -123,6 +124,8 @@ kvm-help.d: $(KVM_INCLUDE)/common-cmds.h
 
 $(OBJS):
 
+rbtree.o: ../../lib/rbtree.c
+       $(Q) $(CC) -c $(CFLAGS) $< -o $@
 %.o: %.c
        $(E) "  CC      " $@
        $(Q) $(CC) -c $(CFLAGS) $< -o $@