]> xenbits.xensource.com Git - people/liuw/mini-os.git/commitdiff
pv-grub: On x86_64, also build an x86_32 pv-grub xen-3.3.0-branched xen-3.3.0-rc5 xen-3.3.0-rc6 xen-3.3.0-rc7
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 14 Aug 2008 12:46:48 +0000 (13:46 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 14 Aug 2008 12:46:48 +0000 (13:46 +0100)
This requires suffixing obj directories and having grub compiled
outside sources.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Makefile

index 5ef4e03811edaf21e78d1d62d15001577142e504..ec24cba14af5a9edda1ac3d8d0da3b3110c5f405 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -66,8 +66,8 @@ ifeq ($(lwip),y)
 # lwIP library
 LWC    := $(shell find $(LWIPDIR)/ -type f -name '*.c')
 LWC    := $(filter-out %6.c %ip6_addr.c %ethernetif.c, $(LWC))
-LWC    += lwip-arch.c lwip-net.c
 LWO    := $(patsubst %.c,%.o,$(LWC))
+LWO    += $(addprefix $(OBJ_DIR)/,lwip-arch.o lwip-net.o)
 
 $(OBJ_DIR)/lwip.a: $(LWO)
        $(RM) $@
@@ -79,7 +79,7 @@ endif
 OBJS := $(filter-out $(OBJ_DIR)/lwip%.o $(LWO), $(OBJS))
 
 ifeq ($(libc),y)
-APP_LDLIBS += -L$(XEN_ROOT)/stubdom/libxc -whole-archive -lxenguest -lxenctrl -no-whole-archive
+APP_LDLIBS += -L$(XEN_ROOT)/stubdom/libxc-$(XEN_TARGET_ARCH) -whole-archive -lxenguest -lxenctrl -no-whole-archive
 APP_LDLIBS += -lpci
 APP_LDLIBS += -lz
 APP_LDLIBS += -lm