|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [patch 04/10] libelf: add to libxc
This patch makes libelf available to the tools, by symlinking the source
files and compiling them into libxc.
Signed-off-by: Gerd Hoffmann <kraxel@xxxxxxx>
---
tools/libxc/Makefile | 15 +++++++++++++++
1 file changed, 15 insertions(+)
Index: build-32-unstable-12621/tools/libxc/Makefile
===================================================================
--- build-32-unstable-12621.orig/tools/libxc/Makefile
+++ build-32-unstable-12621/tools/libxc/Makefile
@@ -29,6 +29,21 @@ GUEST_SRCS-$(CONFIG_IA64) += xc_linux_bu
GUEST_SRCS-$(CONFIG_MIGRATE) += xc_linux_restore.c xc_linux_save.c
GUEST_SRCS-$(CONFIG_HVM) += xc_hvm_build.c
+# symlink libelf from xen/common/libelf/
+LIBELF_SRCS := libelf-tools.c libelf-loader.c
+LIBELF_SRCS += libelf-dominfo.c libelf-relocate.c
+
+libelf-tools.o: libelf-tools.c libelf-private.h
+libelf-loader.o: libelf-loader.c libelf-private.h
+libelf-dominfo.o: libelf-dominfo.c libelf-private.h
+libelf-relocate.o: libelf-relocate.c libelf-private.h
+
+$(LIBELF_SRCS) libelf-private.h:
+ ln -s ../../xen/common/libelf/$@ $@
+
+# add libelf bits to libxc
+GUEST_SRCS-y += $(LIBELF_SRCS)
+
-include $(XEN_TARGET_ARCH)/Makefile
CFLAGS += -Werror -Wmissing-prototypes
--
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [patch 00/10] libelf and the new domain builder, Gerd Hoffmann
- [Xen-devel] [patch 10/10] Support transparant gunzipping in the readnotes utility., Gerd Hoffmann
- [Xen-devel] [patch 07/10] libxc header fixups., Gerd Hoffmann
- [Xen-devel] [patch 06/10] libelf: use for readnotes utility., Gerd Hoffmann
- [Xen-devel] [patch 05/10] libelf: use for hvm builder., Gerd Hoffmann
- [Xen-devel] [patch 04/10] libelf: add to libxc,
Gerd Hoffmann <=
- [Xen-devel] [patch 03/10] libelf: use for x86 dom0 builder., Gerd Hoffmann
- [Xen-devel] [patch 01/10] Generate headers with arch-specific structs., Gerd Hoffmann
- [Xen-devel] [patch 02/10] add libelf: an ELF binary parser library., Gerd Hoffmann
- [Xen-devel] [patch 08/10] libxc domain builder rewrite, core bits., Gerd Hoffmann
- [Xen-devel] [patch 09/10] libxc domain builder rewrite, linux builder, Gerd Hoffmann
|
|
|
|
|